search for: revbits

Displaying 1 result from an estimated 1 matches for "revbits".

Did you mean: revbits8
2006 Oct 20
1
CIDR prefix with a non-multiple of 8
...skipping the conversion on big endian arches but I am unaware of how to check that within the samba code base.) --- access.c.orig 2006-10-19 18:44:42.000000000 -0400 +++ access.c 2006-10-20 17:30:16.000000000 -0400 @@ -17,6 +17,32 @@ #define ALLONES ((uint32)0xFFFFFFFF) +/* revbits8 - reverse the bits within a byte */ +static short revbits8(short a) +{ + short b = 0; + + printf("revbits8: reversing %d\n", a); + b = ( ((a & 0x80) >> 7) + (((a & 0x40) >> 6) << 1) + + (((a & 0x20) >> 5) <...