Lines Matching refs:x
242 uintptr_t x; in zend_jit_hash() local
244 x = (uintptr_t)ptr >> 3; in zend_jit_hash()
246 x = ((x >> 16) ^ x) * 0x45d9f3b; in zend_jit_hash()
247 x = ((x >> 16) ^ x) * 0x45d9f3b; in zend_jit_hash()
248 x = (x >> 16) ^ x; in zend_jit_hash()
250 x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9; in zend_jit_hash()
251 x = (x ^ (x >> 27)) * 0x94d049bb133111eb; in zend_jit_hash()
252 x = x ^ (x >> 31); in zend_jit_hash()
254 return x; in zend_jit_hash()
794 static zend_always_inline bool zend_long_is_power_of_two(zend_long x) in zend_long_is_power_of_two() argument
796 return (x > 0) && !(x & (x - 1)); in zend_long_is_power_of_two()
799 static zend_always_inline uint32_t zend_long_floor_log2(zend_long x) in zend_long_floor_log2() argument
801 ZEND_ASSERT(zend_long_is_power_of_two(x)); in zend_long_floor_log2()
802 return zend_ulong_ntz(x); in zend_long_floor_log2()
806 static zend_always_inline uint32_t ones32(uint32_t x) in ones32() argument
808 x -= ((x >> 1) & 0x55555555); in ones32()
809 x = (((x >> 2) & 0x33333333) + (x & 0x33333333)); in ones32()
810 x = (((x >> 4) + x) & 0x0f0f0f0f); in ones32()
811 x += (x >> 8); in ones32()
812 x += (x >> 16); in ones32()
813 return x & 0x0000003f; in ones32()
816 static zend_always_inline uint32_t floor_log2(uint32_t x) in floor_log2() argument
818 ZEND_ASSERT(x != 0); in floor_log2()
819 x |= (x >> 1); in floor_log2()
820 x |= (x >> 2); in floor_log2()
821 x |= (x >> 4); in floor_log2()
822 x |= (x >> 8); in floor_log2()
823 x |= (x >> 16); in floor_log2()
824 return ones32(x) - 1; in floor_log2()
827 static zend_always_inline bool is_power_of_two(uint32_t x) in is_power_of_two() argument
829 return !(x & (x - 1)) && x != 0; in is_power_of_two()