相关疑难解决方法(0)

x86 SIMD内在函数的头文件

哪些头文件为不同的x86 SIMD指令集扩展(MMX,SSE,AVX,...)提供内在函数?似乎不可能在网上找到这样的清单.如我错了请纠正我.

x86 sse simd header-files intrinsics

121
推荐指数
5
解决办法
5万
查看次数

C++内在未声明

我正在学习使用内在函数而不是asm-inlining.昨天,他们正在工作,但我今天总是得到错误.一无所获.

#include <iostream>
#include <intrin.h> // immintrin.h, smmintrin.h ... tried all, never worked

using namespace std;

    int main()
    {
        _m256_zeroupper(); // __mm256_zeroupper(); does not work too
        _mm128 x; // __mm128 x; does not work too
        _mm256 y; // __mm256 y; does not work too
        _m256_zeroupper(); // __mm256_zeroupper();  does not work too
        cout << "Hello world!" << endl;
        return 0;
    }
Run Code Online (Sandbox Code Playgroud)

这是错误.我尝试了不同内在函数的所有头文件,但错误是相同的.还重新安装了gcc但没有奏效.

我哪里错了?我需要添加什么来实际声明这些内部变量和函数?

C:\indirmeDenemesi\hello_intrin\main.cpp||In function 'int main()':|
C:\indirmeDenemesi\hello_intrin\main.cpp|8|error: '_mm256_zeroupper' was not declared in this scope|
C:\indirmeDenemesi\hello_intrin\main.cpp|9|error: '_mm128' was not declared in …
Run Code Online (Sandbox Code Playgroud)

c++ gcc compiler-errors intrinsics

0
推荐指数
1
解决办法
4824
查看次数

标签 统计

intrinsics ×2

c++ ×1

compiler-errors ×1

gcc ×1

header-files ×1

simd ×1

sse ×1

x86 ×1