Logo Search packages:      
Sourcecode: mingw-w64 version File versions

_rotr64.c

#include <_mingw.h>

unsigned __int64 __cdecl _rotr64 (unsigned __int64 _val, int _Shift);

unsigned __int64 __cdecl _rotr64 (unsigned __int64 _val, int _Shift)
{
  /* Make sure we don't rotate over scalar width.  */
  _Shift &= 63;
  if (!_Shift)
    return _val;
  return (_val << (64 - _Shift)) | (_val >> _Shift);
}


Generated by  Doxygen 1.6.0   Back to index