CTFE Status 2

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 20 05:07:00 PDT 2017


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.

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*/);



More information about the Digitalmars-d mailing list