"Xinok"  wrote in message news:[email protected]...

I'm wondering if there's any added benefit to implementing these as intrinsic functions instead? In this way, implementing them in CTFE should be trivial and the extra knowledge given to the compiler could enable extra optimizations that wouldn't be possible otherwise. For example, the compiler understands multiplication and division so, in certain cases, it can replace these operations with bit-shifting which is faster.

I was just about to suggest this. Another easy way might be to just add get/set mantissa/exponent intrinsics and use those in the ctfe versions.

Reply via email to