clang  12.0.0git
Macros | Functions
lzcntintrin.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __DEFAULT_FN_ATTRS   __attribute__((__always_inline__, __nodebug__, __target__("lzcnt")))
 
#define __lzcnt16(X)   __builtin_ia32_lzcnt_u16((unsigned short)(X))
 Counts the number of leading zero bits in the operand. More...
 

Functions

static __inline__ unsigned int __DEFAULT_FN_ATTRS __lzcnt32 (unsigned int __X)
 Counts the number of leading zero bits in the operand. More...
 
static __inline__ unsigned int __DEFAULT_FN_ATTRS _lzcnt_u32 (unsigned int __X)
 Counts the number of leading zero bits in the operand. More...
 

Macro Definition Documentation

◆ __DEFAULT_FN_ATTRS

#define __DEFAULT_FN_ATTRS   __attribute__((__always_inline__, __nodebug__, __target__("lzcnt")))

Definition at line 18 of file lzcntintrin.h.

◆ __lzcnt16

#define __lzcnt16 (   X)    __builtin_ia32_lzcnt_u16((unsigned short)(X))

Counts the number of leading zero bits in the operand.

This intrinsic corresponds to the LZCNT instruction.

Parameters
__XAn unsigned 16-bit integer whose leading zeros are to be counted.
Returns
An unsigned 16-bit integer containing the number of leading zero bits in the operand.

Definition at line 31 of file lzcntintrin.h.

Function Documentation

◆ __lzcnt32()

static __inline__ unsigned int __DEFAULT_FN_ATTRS __lzcnt32 ( unsigned int  __X)
static

Counts the number of leading zero bits in the operand.

This intrinsic corresponds to the LZCNT instruction.

Parameters
__XAn unsigned 32-bit integer whose leading zeros are to be counted.
Returns
An unsigned 32-bit integer containing the number of leading zero bits in the operand.
See also
_lzcnt_u32

Definition at line 46 of file lzcntintrin.h.

◆ _lzcnt_u32()

static __inline__ unsigned int __DEFAULT_FN_ATTRS _lzcnt_u32 ( unsigned int  __X)
static

Counts the number of leading zero bits in the operand.

This intrinsic corresponds to the LZCNT instruction.

Parameters
__XAn unsigned 32-bit integer whose leading zeros are to be counted.
Returns
An unsigned 32-bit integer containing the number of leading zero bits in the operand.
See also
__lzcnt32

Definition at line 63 of file lzcntintrin.h.