April 09, 2018 Re: Benchmarking sigmoid function between C and D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On Saturday, 7 April 2018 at 21:53:23 UTC, Guillaume Piolat wrote: > Have you tried LLVM intrinsics? say llvm_exp While LLVM does have math intrinsics, they seem to boil down to C runtime calls in many/most cases. I.e., on Linux x86_64, `llvm_exp(real)` simply maps to the C function `expl()` and thus yields the same assembly as using `core.stdc.tgmath.exp(real)`: https://run.dlang.io/is/kjtM1n |
Copyright © 1999-2021 by the D Language Foundation