Integer Arithmetic Related

Intrinsic Description
int abs(int) Returns the absolute value of an integer.
long labs(long) Returns the absolute value of a long integer.
unsigned long _lrotl(unsigned long value, int shift) Rotates bits left for an unsigned long integer.
unsigned long _lrotr(unsigned long value, int shift) Rotates bits right for an unsigned long integer.
unsigned int __rotl(unsigned int value, int shift) Rotates bits left for an unsigned integer.
unsigned int __rotr(unsigned int value, int shift) Rotates bits right for an unsigned integer.

Note

Passing a constant shift value in the rotate intrinsics results in higher performance.