clang 22.0.0git
lzcntintrin.h File Reference

Go to the source code of this file.

Macros

#define __DEFAULT_FN_ATTRS   __attribute__((__always_inline__, __nodebug__))
#define __lzcnt16(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__))

Definition at line 25 of file lzcntintrin.h.

◆ __lzcnt16

#define __lzcnt16 ( X)
Value:
__builtin_ia32_lzcnt_u16((unsigned short)(X))
#define X(type, name)
Definition Value.h:97

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 39 of file lzcntintrin.h.

Function Documentation

◆ __lzcnt32()

__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 54 of file lzcntintrin.h.

◆ _lzcnt_u32()

__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 70 of file lzcntintrin.h.