CTFE Status 2

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 20 09:31:15 PDT 2017


On Tue, Jun 20, 2017 at 12:07:00PM +0000, Stefan Koch via Digitalmars-d wrote:
> On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote:
> > [ ... ]
> 
> limited Support for 32bit floating point ops [+, -, *, /, %] has just
> landed in newCTFE.

Awesome!!!!!


> float fmadd(float a, float b, float c)
> {
>     return b + a * c;
> }
> 
> pragma(msg, fmadd(6.7, 8.9, 1.3)/* == 17.61f*/);
> pragma(msg, fmadd(6.7, 8.9, -1.3)/* == 19.00f*/);

Awesome stuff.  Can't wait to get my hands on the newCTFE engine for my
math code!


T

-- 
Written on the window of a clothing store: No shirt, no shoes, no service.


More information about the Digitalmars-d mailing list