指令集(sse)中PACKAGE 和 SCALAR 关系
来源:互联网 发布:热血江湖网络不稳定 编辑:程序博客网 时间:2024/06/02 10:21
转自:http://stackoverflow.com/questions/16218665/simd-and-difference-between-packed-and-scalar-double-precision
In SSE, the 128 bits registers can be represented as 4 elements of 32 bits.
SSE defines two types of operations; scalar and packed. Scalar operation only operates on the least-significant data element (bit 0~31), and packed operation computes all four elements in parallel.
_mm_cmpeq_sd
would only compare the least-significant data element (first 32 bits) of the two operands while _mm_cmpeq_ps
would compare each group of 32 bits in parallel.
If you're using 64 bits double, you could pack the double by pair to make use of the 128 bits space. That way, _mm_cmpeq_ps
would be able to make two comparaison of 4 double in parallel.
If you want to make only one comparison at a time, you can use _mm_cmpeq_pd
to compare two 64 bits double.
Note that _mm_cmpeq_pd
is SSE2 while _mm_cmpeq_ps
is SSE.
- 指令集(sse)中PACKAGE 和 SCALAR 关系
- SSE指令集
- SSE指令集
- SSE指令集入门
- SSE指令集入门
- SSE指令集
- SSE指令集入门
- 关于SSE指令集
- SSE指令集简记
- SSE指令集入门
- SSE加速指令集
- 在视频格式转换中使用MMX和SSE指令集提高性能
- 在视频格式转换中使用MMX和SSE指令集提高性能
- 在视频格式转换中使用MMX和SSE指令集提高性能
- 在视频格式转换中使用MMX和SSE指令集提高性能
- 在C/C++代码中使用SSE等指令集的指令(3)SSE指令集基础
- 在C/C++代码中使用SSE等指令集的指令(4)SSE指令集Intrinsic函数使用
- 在C/C++代码中使用SSE等指令集的指令(3)SSE指令集基础
- ORA-12154: TNS: 无法解析指定的连接标识符 的解决方法
- tomcat项目使用nginx中的图片和文件下载
- 高性能消息系统——Kafka
- Android数据的四种存储方式
- 用vim格式化代码
- 指令集(sse)中PACKAGE 和 SCALAR 关系
- WPF学习第四集-系统的学习XAML语法
- 坐标
- android dp 与 px 的换算
- WPF 之 Binding深入探讨
- A child who is lost in his life
- qq的iOS面试题目
- Android中处理崩溃异常
- WEB技术人员应该知道的10件事