1.1 diff -r 20fda1ec5f17 -r bfc6aaa089b0 bitblt.h 1.2 --- a/bitblt.h Sun Aug 25 13:22:42 2002 +0000 1.3 +++ b/bitblt.h Mon Aug 26 05:43:49 2002 +0000 1.4 @@ -20,12 +20,11 @@ 1.5 return (r->max.y - r->min.y); 1.6 } 1.7 1.8 -/* 1.9 - * Despite the following two definitions, there are still some places 1.10 - * in the code that depend on words having 32 bits. 1.11 - */ 1.12 -#define BITS_PER_WORD 32 1.13 + 1.14 typedef u32 word_type; 1.15 +#define BITS_PER_WORD (8 * sizeof (word_type)) 1.16 +#define ALL_ONES (~ 0U) 1.17 + 1.18 1.19 typedef struct Bitmap 1.20 { 1.21 @@ -67,3 +66,6 @@ 1.22 1.23 void rot_90 (Bitmap *src); /* transpose + flip_h */ 1.24 void rot_270 (Bitmap *src); /* transpose + flip_v */ 1.25 + 1.26 + 1.27 +void reverse_bits (u8 *p, int byte_count);