add phobos module std.halffloat ?

Walter Bright newshound2 at digitalmars.com
Wed Dec 19 13:12:09 PST 2012


On 12/19/2012 2:22 AM, ponce wrote:
> On Wednesday, 19 December 2012 at 07:30:54 UTC, Walter Bright
> wrote:
>> https://github.com/D-Programming-Language/phobos/pull/1018/files
>
>
> If that ever helps, I implemented this fast conversion
> ftp://www.fox-toolkit.org/pub/fasthalffloatconversion.pdf for a
> half wrapper here:
> https://github.com/p0nce/gfm/blob/master/math/half.d
> It's woefully untested though.
>
> In 3D graphics efficiently converting float to half can speed up
> vertex submission.

Thanks, I read the paper. It looks interesting. I did notice, however, that it 
does not appear to do IEEE rounding correctly (unless I misunderstood the code), 
nor does it have any hooks for detection of Inexact, Underflow and Overflow.

These come into play when converting a float to a half.


More information about the Digitalmars-d mailing list