clang  6.0.0svn
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")))
 

Functions

static __inline__ unsigned short __DEFAULT_FN_ATTRS __lzcnt16 (unsigned short __X)
 Counts the number of leading zero bits in the operand. More...
 
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 32 of file lzcntintrin.h.

Referenced by __lzcnt16(), __lzcnt32(), and _lzcnt_u32().

Function Documentation

◆ __lzcnt16()

static __inline__ unsigned short __DEFAULT_FN_ATTRS __lzcnt16 ( unsigned short  __X)
static

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

References __DEFAULT_FN_ATTRS.

◆ __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.

Definition at line 61 of file lzcntintrin.h.

References __DEFAULT_FN_ATTRS.

◆ _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.

Definition at line 77 of file lzcntintrin.h.

References __DEFAULT_FN_ATTRS.