portability: don't assume 8-bit bytes.

That is, use CHAR_BIT and UCHAR_MAX instead of 8 and 0xff.
* src/Sbitset.h (Sbitset__nbytes): Here.
(Sbitset__byteAddress): Here.
(Sbitset__bit_mask): Here.
(Sbitset__last_byte_mask): Here.
(Sbitset__ones): Here.
(SBITSET__FOR_EACH): Here.
(cherry picked from commit 175620d3c6)
This commit is contained in:
Joel E. Denny
2009-10-16 19:20:43 -04:00
parent a70596de95
commit 61747047da
2 changed files with 22 additions and 7 deletions

View File

@@ -1,3 +1,14 @@
2009-10-16 Joel E. Denny <jdenny@clemson.edu>
portability: don't assume 8-bit bytes.
That is, use CHAR_BIT and UCHAR_MAX instead of 8 and 0xff.
* src/Sbitset.h (Sbitset__nbytes): Here.
(Sbitset__byteAddress): Here.
(Sbitset__bit_mask): Here.
(Sbitset__last_byte_mask): Here.
(Sbitset__ones): Here.
(SBITSET__FOR_EACH): Here.
2009-10-11 Joel E. Denny <jdenny@clemson.edu>
portability: use va_start and va_end in the same function.