Searched defs:IsPowerOfTwo (Results 1 – 8 of 8) sorted by relevance
297 struct IsPowerOfTwo { struct298 static const bool value = !(N & (N - 1));
27 constexpr inline bool IsPowerOfTwo(T value) { in IsPowerOfTwo() function
136 constexpr inline bool IsPowerOfTwo(T value) { in IsPowerOfTwo() function
449 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
13168 #define IsPowerOfTwo(X) (((X)&((X)-1))==0) macro