Changeset 874 for trunk/src/half.h


Ignore:
Timestamp:
Aug 29, 2011, 2:20:50 AM (9 years ago)
Author:
sam
Message:

core: rename half::isnan() etc. to half::is_nan() because "isnan" can be
a C macro on some systems (Android NDK, PS3...).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/half.h

    r873 r874  
    3333    }
    3434
    35     inline int isnan() const
     35    inline int is_nan() const
    3636    {
    3737        return ((bits & 0x7c00u) == 0x7c00u) && (bits & 0x03ffu);
    3838    }
    3939
    40     inline int isfinite() const
     40    inline int is_finite() const
    4141    {
    4242        return (bits & 0x7c00u) != 0x7c00u;
    4343    }
    4444
    45     inline int isinf() const
     45    inline int is_inf() const
    4646    {
    4747        return (uint16_t)(bits << 1) == (0x7c00u << 1);
    4848    }
    4949
    50     inline int isnormal() const
     50    inline int is_normal() const
    5151    {
    52         return (isfinite() && (bits & 0x7c00u)) || ((bits & 0x7fffu) == 0);
     52        return (is_finite() && (bits & 0x7c00u)) || ((bits & 0x7fffu) == 0);
    5353    }
    5454
Note: See TracChangeset for help on using the changeset viewer.