Changeset 874 for trunk/src/half.h
 Timestamp:
 Aug 29, 2011, 2:20:50 AM (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/half.h
r873 r874 33 33 } 34 34 35 inline int is nan() const35 inline int is_nan() const 36 36 { 37 37 return ((bits & 0x7c00u) == 0x7c00u) && (bits & 0x03ffu); 38 38 } 39 39 40 inline int is finite() const40 inline int is_finite() const 41 41 { 42 42 return (bits & 0x7c00u) != 0x7c00u; 43 43 } 44 44 45 inline int is inf() const45 inline int is_inf() const 46 46 { 47 47 return (uint16_t)(bits << 1) == (0x7c00u << 1); 48 48 } 49 49 50 inline int is normal() const50 inline int is_normal() const 51 51 { 52 return (is finite() && (bits & 0x7c00u))  ((bits & 0x7fffu) == 0);52 return (is_finite() && (bits & 0x7c00u))  ((bits & 0x7fffu) == 0); 53 53 } 54 54
Note: See TracChangeset
for help on using the changeset viewer.