I'm trying to perform a left circular shift (rol) under AMD64.
What is the equivalent intrinsic like the one provided by MSVC (_rotl64)?
I'm trying to perform a left circular shift (rol) under AMD64.
What is the equivalent intrinsic like the one provided by MSVC (_rotl64)?
#include <stdint.h>
inline uint64_t rotl64 ( uint64_t x, int8_t r )
{
return (x << r) | (x >> (64 - r));
}