From 37d43f49f4e26b7df912adcb8894e52544533bef Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 5 Mar 2008 22:14:13 +0000 Subject: Greyscale library: Assembler optimised update function for SH1 (Archos recorders, Ondios), giving ~50% speedup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16532 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/grey_draw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/plugins/lib/grey_draw.c') diff --git a/apps/plugins/lib/grey_draw.c b/apps/plugins/lib/grey_draw.c index 6df5556..7b24ba4 100644 --- a/apps/plugins/lib/grey_draw.c +++ b/apps/plugins/lib/grey_draw.c @@ -635,8 +635,9 @@ void grey_ub_gray_bitmap_part(const unsigned char *src, int src_x, int src_y, + (~yc & _GREY_BMASK); #endif /* LCD_PIXELFORMAT */ -#if (LCD_PIXELFORMAT == VERTICAL_PACKING) && (LCD_DEPTH == 2) \ - && defined(CPU_COLDFIRE) +#if (LCD_PIXELFORMAT == VERTICAL_PACKING) && \ + ((LCD_DEPTH == 2) && defined(CPU_COLDFIRE) \ + || (LCD_DEPTH == 1) && (CONFIG_CPU == SH7034)) _grey_line1(width, dst + idx, src, _grey_info.gvalue); #else unsigned char *dst_row = dst + idx; -- cgit v1.1