From 3d58249f61401dc2a2957531fe278a575384fd3c Mon Sep 17 00:00:00 2001 From: Glenn Kennard Date: Mon, 3 Oct 2005 19:36:34 +0200 Subject: small optimizations Optimize some common image code paths. --- apps/unix/ximage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/unix/ximage.c') diff --git a/apps/unix/ximage.c b/apps/unix/ximage.c index 22e04a41..b37cf544 100644 --- a/apps/unix/ximage.c +++ b/apps/unix/ximage.c @@ -440,8 +440,8 @@ static void ximage_convert_argb8888(PARAMS) { int x, y; - unsigned *s = (unsigned *)src; - unsigned *d = (unsigned *)dst; + unsigned * restrict s = (unsigned * restrict )src; + unsigned * restrict d = (unsigned * restrict )dst; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { d[x] = s[x]; -- cgit v1.2.3