Jens Axboe | 51aa2da | 2013-01-21 10:55:02 -0700 | [diff] [blame] | 1 | #ifndef FIO_HWEIGHT_H |
2 | #define FIO_HWEIGHT_H | ||||
3 | |||||
4 | #include <inttypes.h> | ||||
5 | |||||
6 | unsigned int hweight8(uint8_t w); | ||||
7 | unsigned int hweight32(uint32_t w); | ||||
Jens Axboe | def823d | 2013-01-21 12:28:23 -0700 | [diff] [blame] | 8 | unsigned int hweight64(uint64_t w); |
Jens Axboe | 51aa2da | 2013-01-21 10:55:02 -0700 | [diff] [blame] | 9 | |
10 | #endif |