[Issue 3749] cannot evaluate yl2x (log) and exp functions at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 7 14:57:11 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=3749


Iain Buclaw <ibuclaw at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at ubuntu.com


--- Comment #11 from Iain Buclaw <ibuclaw at ubuntu.com> 2014-01-07 14:56:54 PST ---
(In reply to comment #10)
> What's the state of this?
> Having log/exp functions at compile time would be very useful, e.g. to
> pregenerate scientific tables.

std.math now has pure generic implementations.

One of the main problems holding CTFE support back is that there is no
straightforward way to do math operations such as isNaN, isInfinity, signbit,
frexp which require access (and for some, manipulation) of the bits in float
types.

GDC has the ability to convert float <-> array already in place, but its not in
use because CTFE doesn't allow it.

Saying that, DMD has a problem that GDC doesn't - it uses the IASM
implementations of std.math functions that can't be evaluated at compile time.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list