_lrotr
raw OCR
Rotates an unsigned long integer value to the right.
Defined in header <stdlib.h>
Syntax
#include <stdHb.h>
unsigned long _lrotr(unsigned long val, int count);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ | ■ |
Remarks
_lrotr rotates the given val to the right count bits; val is an unsigned long.
Return value
_lrotr returns the value of val right-rotated cownf bits.
See also
_lrotl_rotl_rotr#include<stdlib.h>ttinclude<stdio.h>intmain{unsignedlongresult;unsignedlongvalue=100;result=_lrotr;printfC'Thevalue%lurotatedrightonebitis:%lu\n"valueresult);return0;
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Extraction notes
- heading `Irotr` read as `_lrotr`
- header `stdHb.h` read as `stdlib.h`
Stable link: /3.1/stdlib.h/_lrotr/
· short form /3.1/_lrotr/