[Issue 18630] std.math must CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 30 08:54:20 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18630
Simen Kjaeraas <simen.kjaras at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simen.kjaras at gmail.com
--- Comment #3 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
(In reply to Eduard Staniloiu from comment #2)
> Maybe you can replace the static ctor with this idiom
> https://p0nce.github.io/d-idioms/#Precomputed-tables-at-compile-time-through-
> CTFE
That's exactly what he's trying to do. In 2.083.0, the following functions in
std.math are still not CTFE-able:
nextPow2
truncPow2
asin
atan2
expi
lround
lrint
rndtol
quantize
frexp
ilogb
scalbn
Getting there, though - in 2.081.1, the list was about twice as big.
--
More information about the Digitalmars-d-bugs
mailing list