Implementing Half Floats in D

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Tue Jan 29 14:48:39 PST 2013


On 01/29/2013 11:27 PM, Iain Buclaw wrote:
> I'm sure this was mentioned before, but what does halffloat have over
> std.numeric.CustomFloat?

"These formats are for storage only; all operations on them are performed by 
first implicitly extracting them to real first."

... whereas HalfFloat extracts to float, and so should be faster, which is 
probably one of the main goals here.

But since std.numeric was mentioned, why not add HalfFloat there rather than its 
own separate module?


More information about the Digitalmars-d mailing list