blob: f27bfa24e21dc0d8b1632c9ed6bd839c8eeaff51 [file] [log] [blame]
#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);
}