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")))
35 __lzcnt16(
unsigned short __X)
37 return __X ? __builtin_clzs(__X) : 16;
41 __lzcnt32(
unsigned int __X)
43 return __X ? __builtin_clz(__X) : 32;
47 _lzcnt_u32(
unsigned int __X)
49 return __X ? __builtin_clz(__X) : 32;
54 __lzcnt64(
unsigned long long __X)
56 return __X ? __builtin_clzll(__X) : 64;
60 _lzcnt_u64(
unsigned long long __X)
62 return __X ? __builtin_clzll(__X) : 64;
66 #undef __DEFAULT_FN_ATTRS
#define __DEFAULT_FN_ATTRS
Definition: lzcntintrin.h:32