clang 19.0.0git
Macros | Functions
lzcntintrin.h File Reference

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.
 

Functions

static __inline__ unsigned int __DEFAULT_FN_ATTRS __lzcnt32 (unsigned int __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.
 

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.