24 #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H 25 #error "Never use <lzcntintrin.h> directly; include <x86intrin.h> instead." 28 #ifndef __LZCNTINTRIN_H 29 #define __LZCNTINTRIN_H 32 #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("lzcnt"))) 47 return __X ? __builtin_clzs(__X) : 16;
63 return __X ? __builtin_clz(__X) : 32;
79 return __X ? __builtin_clz(__X) : 32;
94 __lzcnt64(
unsigned long long __X)
96 return __X ? __builtin_clzll(__X) : 64;
110 _lzcnt_u64(
unsigned long long __X)
112 return __X ? __builtin_clzll(__X) : 64;
116 #undef __DEFAULT_FN_ATTRS static __inline__ unsigned short __DEFAULT_FN_ATTRS __lzcnt16(unsigned short __X)
Counts the number of leading zero bits in the operand.
static __inline__ unsigned int __DEFAULT_FN_ATTRS _lzcnt_u32(unsigned int __X)
Counts the number of leading zero bits in the operand.
static __inline__ unsigned int __DEFAULT_FN_ATTRS __lzcnt32(unsigned int __X)
Counts the number of leading zero bits in the operand.
#define __DEFAULT_FN_ATTRS