Movement against float.init being nan
Bastiaan Veelo
Bastiaan at Veelo.net
Thu Aug 25 21:50:06 UTC 2022
On Thursday, 25 August 2022 at 18:11:11 UTC, max haughton wrote:
> One of the nice things about UDAs and so on is that you can use
> them to opt into specific optimizations LLVM can do without
> opting into the blatantly dangerous ones.
>
> http://johanengelen.github.io/ldc/2016/10/11/Math-performance-LDC.html
Yes, that is the only responsible way to use this power. The
individual flags are these:
https://llvm.org/docs/LangRef.html#fast-math-flags to be used
with this UDA:
https://wiki.dlang.org/LDC-specific_language_changes#.40.28ldc.attributes.llvmFastMathFlag.28.22flag.22.29.29.
Examples can be seen in Mir:
http://mir-core.libmir.org/mir_math_common.html
— Bastiaan.
More information about the Digitalmars-d
mailing list