Changeset 882 for trunk/src/half.h


Ignore:
Timestamp:
Aug 30, 2011, 7:19:08 PM (9 years ago)
Author:
sam
Message:

core: reactivate half denormals for the PS3.

We know we will not have denormal floats on the PS3, but we should still
create denormal halves in case the other end (maybe the GPU?) knows how
to handle them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/half.h

    r879 r882  
    5252
    5353    /* Cast to other types */
    54     operator float() const;
    55     inline operator int() const { return (int)(float)*this; }
     54    inline operator float() const { return tofloat(*this); }
     55    inline operator int() const { return (int)tofloat(*this); }
     56
     57    static float tofloat(half h);
    5658
    5759    /* Array conversions */
Note: See TracChangeset for help on using the changeset viewer.