上证所装载到整数__m128 [英] SSE loading ints into __m128

查看:176
本文介绍了上证所装载到整数__m128的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是海湾合作委员会的内在装载4 整数 __ M128 和8个整数为 __m256 (对齐/不对齐的)?什么无符号整数

What are the gcc's intrinsic for loading 4 ints into __m128 and 8 ints into __m256 (aligned/unaligned)? What about unsigned ints?

推荐答案

使用Intel的SSE intrnisics,你要找的是:

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


  • _mm_load_si128()

  • _mm_loadu_si128()

  • _mm256_load_si256()

  • _mm256_loadu_si256()

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

文件:

有符号或无符号之间没有区别。你需要将指针转换为 __ m128i * __ m256i *

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

请注意,这些都是Intel的SSE内部函数,将在海湾合作委员会的工作,锵,MSVC和ICC。照片海合会内部函数只工作在,那么,海湾合作委员会AFAIK。

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.

这篇关于上证所装载到整数__m128的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆