CTFE Status 2

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 7 23:22:56 PDT 2017


On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote:
> [ ... ]

Hi Guys,

It's been a while since my last post.
I have now prepared the interpreter to support
float <=> double casts
as well as float <=> long
double <=> long
(int*) <=> (float*) // reinterpret
(long*) <=> (double*) //reinterpret

However is is not yet hooked up to newCTFE.
As I need to think about the interface.

Either I can go with a Cast and BitCast function
(which are prone to strange behavior, if they used with the 
lowered IR)
Or
Add the more explicit
F32ToF64, F64To32,
F32ToSI, SIToF32, UIToF32,
F64ToSI, SIToF64, UIToF64,

Which adds 8 calls to the IR-API and looks unsightly.




More information about the Digitalmars-d mailing list