jjzjj

intel-syntax

全部标签

c++ - Intel (windows) c++ 编译器并将其库实现更改为 gcc。可能吗?

不确定这是不是该问的地方,但这里是来自page在英特尔网站上,它指出:TheIntelC++CompilerforWindowsusestheMicrosoftVisualC++headerfiles,librariesandlinker.Microsoftcontrolstheheaderfilesthatdefinethenamespace.ContactMicrosoft'stechnicalsupportinreferencetoMicrosoft'sconformancetotheC++standardonthisissue...link是否有英特尔(或其他)指南将库从vis

c++ - gcc8.2 和 (intel) icc19.0.1 之间的 constexpr 差异

以下代码在gcc8.2上编译但在icc19.0.1上编译失败:#includetemplateconstexprsize_tf(std::tupleconst&){return0;}templatesize_tg(Tuple&&t){staticsize_tconstexprv=f(t);returnv;}size_th(){std::tupletuple;returng(tuple);}我从icc收到的错误是:error:expressionmusthaveaconstantvaluestaticsize_tconstexprv=f(t);^note:thevalueofparame

c++ - 友元函数默认模板 : Intel ICPC warning

我有以下测试代码://friendfunction.h#includetemplateclassMyClass{templatefriendinlineconstMyClassmyFunction(constT1&x,constMyClass&y);};template::value>::type>inlineconstMyClassmyFunction(constT0&x,constMyClass&y){std::cout(y);}//friendfunction.cpp#include"friendfunction.h"intmain(intargc,char*argv[]){My

c++ - C : x86 Intel Intrinsics usage of _mm_log2_ps() -> error: incompatible type 'int' ?

我正在尝试将log2应用于__m128变量。像这样:#includeintmain(void){__m128two_v={2.0,2.0,2.0,2.0};__m128log2_v=_mm_log2_ps(two_v);//log_2:=log(2)return0;}尝试编译会返回此错误:error:initializing'__m128'withanexpressionofincompatibletype'int'__m128log2_v=_mm_log2_ps(two_v);//log_2:=log(2)^~~~~~~~~~~~~~~~~~~我该如何解决?

C++ 2011 : good syntax to initialize an array in a constructor?

这里我有一个示例类:templateclassMyClass{public:MyClass();~MyClass();protected:T_data[SIZE];};templateMyClass::MyClass()://_data()OR_data({})OR_data{}OR...{;}在默认构造函数中将整个数组初始化为0的正确C++2011语法是什么?非常感谢。 最佳答案 统一初始化语法运行良好:MyClass():_data{}{} 关于C++2011:goodsyntaxt

c++ - 错误 C2143 : syntax error : missing ';' before '__stdcall"

我在创建COMDLL时遇到了一些问题。我的IClassFactory实现如下所示:include#include#include"AddObj.h"#include"AddObjFactory.h"HRESULT__stdcallCAddFactory::CreateInstance(IUnknown*pUnknownOuter,constIID&iid,void**ppv){if(pUnknownOuter){returnCLASS_E_NOAGGREGATION;}CAddObj*pObject=newCAddObj();if(pObject==NULL){returnE_OUTO

c++ - 2 个数组/图像相乘的多线程性能 - Intel IPP

我正在使用IntelIPP对2个图像(数组)进行乘法运算。我使用的是IntelComposer2015Update6附带的IntelIPP8.2。我创建了一个简单的函数来乘以太大的图像(整个项目已附上,见下文)。我想看看使用英特尔IPP多线程库的好处。这是简单的项目(我还附上了VisualStudio的完整项目):#include"ippi.h"#include"ippcore.h"#include"ipps.h"#include"ippcv.h"#include"ippcc.h"#include"ippvm.h"#include#includeusingnamespacestd;co

Android中下载 HAXM 报错 Intel® HAXM installation failed,如何解决?

最近在搭建Flutter环境,但是在AndroidStudio中安装VirtualDevice时,出现了一个问题Intel®HAXMinstallationfailed.ToinstallIntel®HAXMfollowtheinstructionsfoundat:https://github.com/intel/haxm/wiki/Installation-Instructions-on-Windows一直提示HAXM下载失败。网上查了各种办法,我来说一下我的解决步骤,适合新手小白去解决。此次显示设备:Window10操作系统+AndroidStudio1.验证虚拟化支持我这里失败的主要原因

c++ - intel pin RTN_InsertCall 多个函数参数

我正在尝试使用英特尔引脚获取函数的参数值。使用示例ManualExamples/malloctrace.cpp,单参数函数就足够简单了。但是,当我尝试使用多个参数获取参数值时,我遇到了麻烦。例如。trycatch以下函数的参数值:voidfuncA(inta,intb,intc){printf("Actual:%i%i%i\n",a,b,c);}使用以下密码VOIDfuncHandler(CHAR*name,inta,intb,intc){printf("Pin:%s%i%i%i\n",name,a,b,c);}VOIDImage(IMGimg,VOID*v){RTNfuncRtn=R

C++ : syntax for passing iterator to a function?

我正在制作一个类,它是一种容器,我想制作一个可以采用“第一个”和“最后一个”迭代器的构造函数,如std::vector和其他标准容器。正确的语法是什么?(我想要一个模板函数,它可以接受任何可用的第一个/最后一个迭代器类型(就像我认为的标准库)。非常感谢!举个例子,我想要这样的东西:templateMyClass(...first,...last)但是……是什么?非常感谢。关于第一个答案:我想要一个将迭代器作为参数的特定构造函数(因为我已经有了将值和指针作为参数的构造函数)编辑:这样可以吗?templateMyClass(std::iteratorfirst,std::iteratorl