如何指导C++编译器自动使用SIMD说明?
假设我有一个基于C ++标准的通用C ++代码。 该代码旨在在Windows 64位和Linux 64位上运行。
我们可以指示编译器自动使用内在吗?即我不想编写任何可用的说明。我想要的是编译器自动使用任何固有信息,如果适用于我的普通C ++代码。 如果可以的话,那么如何在Windows和Linux上的Visual Studio进行操作?
Let's say I have a generic c++ code based on c++ standard.
This code is meant to run on windows 64 bit and Linux 64 bit.
Can we direct the compiler to make use of intrinsics automatically? i.e. I don't want to write any instructions available. What I want is to compiler automatically use any intrinsics if available for my normal c++ code.
If this is possible, then how to do it for Visual studio in windows and on Linux?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论