gpt4 book ai didi

c++ - 如何使用 SSE 指令?

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:31:00 26 4
gpt4 key购买 nike

我在 ubuntu linux 系统上使用 SSE 有一些问题。

msdn(sse4) 上的示例源代码在linux上使用sse4.1运行

gcc -o test test.c -msse4.1

然后是错误信息:

error: request for member 'm128i_u16' in something not a structure or union

如何使用此示例代码?或者任何示例代码都可以使用?

最佳答案

代码示例的标题是“Microsoft Specific”。这意味着这些函数特定于 c++ 的 Microsoft 实现,并且不是跨平台的。 Here are some Intel-specific guides to SSE instructions. Here is gcc documentation concerning command-line flags for specific assembly optimizations, including SSE.祝你好运,SSE 可能有点毛茸茸。

关于c++ - 如何使用 SSE 指令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9356280/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com