2

我的编译器很响,我不知道如何在 armv8 中打开清零模式,谁能告诉我?我找到了一些这样的标志-fdenormal-fp-math=[values],但它不起作用。

4

1 回答 1

0

这取决于 clang 版本,例如,我有 clang 3.8 并收到以下错误clang: error: unknown argument: '-fdenormal-fp-math=preserve-sign',但随后安装了 clang 5.0 并且它工作得很好。

clang++-5.0 hello.cpp -fdenormal-fp-math=preserve-sign

值为:

  • ieee
  • 保留标志
  • 和正零

希望能帮助到你。

于 2018-04-03T17:30:34.640 回答