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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 28 13:01:50 PST 2010


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #3 from Don <clugdbug at yahoo.com.au> 2010-01-28 13:01:46 PST ---
(In reply to comment #2)
> A patch has just been submitted fairly recently for if(__ctfe).  Once that's
> released, people (myself included) will start submitting patches to make
> compile-time versions of most of std.math.  Most of the runtime implementations
> use assembly language somewhere for efficiency, or call the C standard lib
> implementations.  We'll have to write more naive compile-time versions of these
> functions.

if(__ctfe) is in the next release. yl2x() probably should have built-in
support, though. Since it's an intrinsic, if (__ctfe) won't work for it.

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


More information about the Digitalmars-d-bugs mailing list