Check and signal for any NaN. \param x first half-precision value to check \param y second half-precision value to check \retval true if either \a x or \a y is NaN \retval false else \exception FE_INVALID if \a x or \a y is NaN
| 677 | /// \retval false else |
| 678 | /// \exception FE_INVALID if \a x or \a y is NaN |
| 679 | inline HALF_CONSTEXPR_NOERR bool compsignal(unsigned int x, unsigned int y) |
| 680 | { |
| 681 | #if HALF_ERRHANDLING |
| 682 | raise(FE_INVALID, (x&0x7FFF)>0x7C00 || (y&0x7FFF)>0x7C00); |
| 683 | #endif |
| 684 | return (x&0x7FFF) > 0x7C00 || (y&0x7FFF) > 0x7C00; |
| 685 | } |
| 686 | |
| 687 | /// Signal and silence signaling NaN. |
| 688 | /// \param nan half-precision NaN value |
no test coverage detected