blob: 61ce7c3202b005b4e1c17476863549b5b981f02c [file] [log] [blame]
#include <_mingw.h>
unsigned __int64 __cdecl _rotl64 (unsigned __int64 _val, int _Shift);
unsigned __int64 __cdecl _rotl64 (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);
}