Home
last modified time | relevance | path

Searched refs:NUM_BITS (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/base/
Datomicops_unittest.cc82 #define NUM_BITS(T) (sizeof(T) * 8) macro
102 (NUM_BITS(AtomicType) - 2)) + 11; in TestCompareAndSwap()
125 (NUM_BITS(AtomicType) - 2)) + 11; in TestAtomicExchange()
142 (NUM_BITS(AtomicType) - 1)); in TestAtomicIncrementBounds()
152 test_val = static_cast<uint64_t>(1) << (NUM_BITS(AtomicType) / 2); in TestAtomicIncrementBounds()
/external/stressapptest/src/
Dfindmask.c49 #define NUM_BITS 32 macro
62 for (mask = num; mask < (1ULL << (NUM_BITS + 1)); mask += NUM_THREADS) { in thread_func()
/external/llvm-project/llvm/include/llvm/ADT/
DWaymarking.h122 NUM_BITS = NumBits, enumerator
125 MARK_SIZE = NUM_BITS - 1,
/external/python/cpython3/Modules/_ctypes/
Dcfield.c432 #define NUM_BITS(x) ((x) >> 16) macro
435 #define BIT_MASK(type, size) (((((type)1 << (NUM_BITS(size) - 1)) - 1) << 1) + 1)
441 if (NUM_BITS(size)) { \
442 v <<= (sizeof(v)*8 - LOW_BIT(size) - NUM_BITS(size)); \
443 v >>= (sizeof(v)*8 - NUM_BITS(size)); \
448 (NUM_BITS(size) ? \
/external/python/cpython2/Modules/_ctypes/
Dcfield.c442 #define NUM_BITS(x) ((x) >> 16) macro
445 #define BIT_MASK(type, size) (((((type)1 << (NUM_BITS(size) - 1)) - 1) << 1) + 1)
451 if (NUM_BITS(size)) { \
452 v <<= (sizeof(v)*8 - LOW_BIT(size) - NUM_BITS(size)); \
453 v >>= (sizeof(v)*8 - NUM_BITS(size)); \
458 (NUM_BITS(size) ? \