H A D | bitops.h | 44 #define BF32_DECODE(x, low, len) P2PHASE((x) >> (low), 1U << (len)) argument 45 #define BF64_DECODE(x, low, len) P2PHASE((x) >> (low), 1ULL << (len)) argument 46 #define BF32_ENCODE(x, low, len) (P2PHASE((x), 1U << (len)) << (low)) argument 47 #define BF64_ENCODE(x, low, len) (P2PHASE((x), 1ULL << (len)) << (low)) argument 49 #define BF32_GET(x, low, len) BF32_DECODE(x, low, len) argument 50 #define BF64_GET(x, low, len) BF64_DECODE(x, low, len) argument 52 #define BF32_SET(x, low, len, val) do { \ argument 54 ASSERT3U(low + len, <=, 32); \ 55 (x) ^= BF32_ENCODE((x >> low) ^ (val), low, len); \ 58 #define BF64_SET(x, low, len, val) do { \ argument [all …]
|