bitblt.h

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