Borland C++ reference

_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

DOSUNIXWindowsANSI CC++ 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>
  • int
  • main
  • {
  • unsigned
  • long
  • result;
  • unsigned
  • long
  • value
  • =
  • 100;
  • result
  • =
  • _lrotr;
  • printfC'The
  • value
  • %lu
  • rotated
  • right
  • one
  • bit
  • is:
  • %lu\n"
  • value
  • result);
  • return
  • 0;

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`