Searched defs:IsPowerOfTwo (Results 1 – 14 of 14) sorted by relevance
167 struct IsPowerOfTwo { struct168 static const bool value = !(N & (N - 1));
27 constexpr inline bool IsPowerOfTwo(T value) { in IsPowerOfTwo() function
29 constexpr inline bool IsPowerOfTwo(T value) { in IsPowerOfTwo() function
33 bool IsPowerOfTwo(size_t v) { in IsPowerOfTwo() function
85 constexpr bool IsPowerOfTwo(size_t v) { in IsPowerOfTwo() function
40 bool IsPowerOfTwo(size_t v) { in IsPowerOfTwo() function
156 static int IsPowerOfTwo( cl_ulong x ){ return 0 == (x & (x-1)); } in IsPowerOfTwo() function
140 constexpr inline bool IsPowerOfTwo(T value) { in IsPowerOfTwo() function
45 bool IsPowerOfTwo(uint32_t v) { return v && !(v & (v - 1)); } in IsPowerOfTwo() function
476 inline bool IsPowerOfTwo(T x) { in IsPowerOfTwo() function
440 INLINE bool IsPowerOfTwo(uptr x) { in IsPowerOfTwo() function
3155 auto IsPowerOfTwo = [](ConstantSDNode *C) { in visitSDIVLike() local
14128 #define IsPowerOfTwo(X) (((X)&((X)-1))==0) macro