Share via


Integer Intrinsic Functions

Integer intrinsic functions implement integer operations that do not have corresponding C operators. Some of these functions have always been part of the Microsoft C Run-Time Library for Windows CE, and the intrinsic versions perform the same operation as the run-time versions. For more information, see Microsoft C Run-Time Library for Windows CE .NET.

The following table shows the intrinsic functions for integer operations.

Intrinsic function Description
abs
labs
_abs64
Takes the absolute value.
_rotl
_lrotl
_rotl64
Rotates bits left.
_rotr
_lrotr
_rotr64
Rotates bits right.
_byteswap_ushort
_byteswap_ulong
_byteswap_uint64
Reverses bytes.
_MulUnsignedHigh
_MulHigh
Returns the high-order 32 bits result of multiplying the two arguments together.
_CountLeadingZeros
_CountLeadingZeros64
These return the number of contiguous zero bits starting with the most significant bit. The return value is in the range [0..32] or [0..64], respectively.
_CountLeadingOnes
_CountLeadingOnes64
Returns the number of contiguous one bits starting with the most significant bit. The return value is in the range [0..32] or [0..64], respectively.
_CountLeadingSigns
_CountLeadingSigns64
Returns the number of contiguous bits that match the sign bit, starting with the next most significant bit. The return value is in the range [0..31] or [0..63], respectively.
_CountOneBits
_CountOneBits64
Returns the number of one bits in the argument. The return value is in the range [0..32] or [0..64], respectively.

See Also

Common Intrinsic Functions | Floating-Point Intrinsic Functions | String and Block Intrinsic Functions | System Intrinsic Functions | Microprocessor-specific Intrinsic Functions

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.