Home
last modified time | relevance | path

Searched refs:NUM_BITS (Results 1 – 3 of 3) 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/python/cpython2/Modules/_ctypes/
Dcfield.c434 #define NUM_BITS(x) ((x) >> 16) macro
437 #define BIT_MASK(type, size) (((((type)1 << (NUM_BITS(size) - 1)) - 1) << 1) + 1)
443 if (NUM_BITS(size)) { \
444 v <<= (sizeof(v)*8 - LOW_BIT(size) - NUM_BITS(size)); \
445 v >>= (sizeof(v)*8 - NUM_BITS(size)); \
450 (NUM_BITS(size) ? \