misc.h | misc.h | |||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
/* | /* | |||
* BITMAP.H | * BITMAP.H | |||
*/ | */ | |||
#define __HXbitmap_bpq(type) \ | #define __HXbitmap_bpq(type) \ | |||
(sizeof(type) * CHAR_BIT) | (sizeof(type) * CHAR_BIT) | |||
#define HXbitmap_size(type, bits) \ | #define HXbitmap_size(type, bits) \ | |||
((bits + __HXbitmap_bpq(type) - 1) / __HXbitmap_bpq(type)) | ((bits + __HXbitmap_bpq(type) - 1) / __HXbitmap_bpq(type)) | |||
#define __HXbitmap_quant(map, bit) \ | #define __HXbitmap_quant(map, bit) \ | |||
((map)[bit / __HXbitmap_bpq(*(map))]) | ((map)[bit / __HXbitmap_bpq(*(map))]) | |||
#define HXbitmap_set(map, bit) \ | #define HXbitmap_set(map, bit) \ | |||
((void)(__HXbitmap_quant(map, bit) |= (1 << (bit % __HXbitmap_bpq(ma p))))) | ((void)(__HXbitmap_quant(map, bit) |= (1ULL << (bit % __HXbitmap_bpq (*(map)))))) | |||
#define HXbitmap_clear(map, bit) \ | #define HXbitmap_clear(map, bit) \ | |||
((void)(__HXbitmap_quant(map, bit) &= ~(1 << (bit % __HXbitmap_bpq(m ap))))) | ((void)(__HXbitmap_quant(map, bit) &= ~(1ULL << (bit % __HXbitmap_bp q(*(map)))))) | |||
#define HXbitmap_test(map, bit) \ | #define HXbitmap_test(map, bit) \ | |||
((bool)(__HXbitmap_quant(map, bit) & (1 << (bit % __HXbitmap_bpq(map ))))) | ((bool)(__HXbitmap_quant(map, bit) & (1ULL << (bit % __HXbitmap_bpq( *(map)))))) | |||
struct stat; | struct stat; | |||
struct timespec; | struct timespec; | |||
struct timeval; | struct timeval; | |||
/* | /* | |||
* DIR.C | * DIR.C | |||
*/ | */ | |||
enum { | enum { | |||
HXF_UID = 1 << 0, | HXF_UID = 1 << 0, | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||