RDRAND and RDSEED intrinsics GCC and Intel C++

后端 未结 2 1188
甜味超标
甜味超标 2020-12-18 11:40

Does Intel C++ compiler and/or GCC support the following intrinsics, like MSVC does since 2012 / 2013?

int _rdrand16_step(uint16_t*);
int _rdrand32_step(         


        
2条回答
  •  遥遥无期
    2020-12-18 12:37

    Both GCC and Intel compiler support them. GCC support was introduced at the end of 2010. They require the header .

    GCC support has been present since at least version 4.6, but there doesn't seem to be any specific compile-time constant - you can just check __GNUC_MAJOR__ > 4 || (__GNUC_MAJOR__ == 4 && __GNUC_MINOR__ >= 6).

提交回复
热议问题