mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
Make the intrinsics more readable
This commit is contained in:
parent
210187cf77
commit
80db9de173
75 changed files with 12444 additions and 21493 deletions
20
third_party/intel/lzcntintrin.internal.h
vendored
20
third_party/intel/lzcntintrin.internal.h
vendored
|
@ -11,34 +11,24 @@
|
|||
#define __DISABLE_LZCNT__
|
||||
#endif /* __LZCNT__ */
|
||||
|
||||
extern __inline unsigned short
|
||||
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||||
__lzcnt16(unsigned short __X) {
|
||||
__funline unsigned short __lzcnt16(unsigned short __X) {
|
||||
return __builtin_ia32_lzcnt_u16(__X);
|
||||
}
|
||||
|
||||
extern __inline unsigned int
|
||||
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||||
__lzcnt32(unsigned int __X) {
|
||||
__funline unsigned int __lzcnt32(unsigned int __X) {
|
||||
return __builtin_ia32_lzcnt_u32(__X);
|
||||
}
|
||||
|
||||
extern __inline unsigned int
|
||||
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||||
_lzcnt_u32(unsigned int __X) {
|
||||
__funline unsigned int _lzcnt_u32(unsigned int __X) {
|
||||
return __builtin_ia32_lzcnt_u32(__X);
|
||||
}
|
||||
|
||||
#ifdef __x86_64__
|
||||
extern __inline unsigned long long
|
||||
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||||
__lzcnt64(unsigned long long __X) {
|
||||
__funline unsigned long long __lzcnt64(unsigned long long __X) {
|
||||
return __builtin_ia32_lzcnt_u64(__X);
|
||||
}
|
||||
|
||||
extern __inline unsigned long long
|
||||
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||||
_lzcnt_u64(unsigned long long __X) {
|
||||
__funline unsigned long long _lzcnt_u64(unsigned long long __X) {
|
||||
return __builtin_ia32_lzcnt_u64(__X);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue