SSE loading ints into __m128

不羁的心 提交于 2019-12-01 09:24:53
Mysticial

Using Intel's SSE intrnisics, the ones you're looking for are:

  • _mm_load_si128()
  • _mm_loadu_si128()
  • _mm256_load_si256()
  • _mm256_loadu_si256()

Documentation:

There's no distinction between signed or unsigned. You'll need to cast the pointer to __m128i* or __m256i*.


Note that these are Intel's SSE intrinsics and will work in GCC, Clang, MSVC, and ICC.
The GCC intrinsics work only in, well, GCC AFAIK of.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!