Raise pole error and return infinity. \param sign half-precision value with sign bit only \return half-precision infinity with sign of \a sign \exception FE_DIVBYZERO
| 753 | /// \return half-precision infinity with sign of \a sign |
| 754 | /// \exception FE_DIVBYZERO |
| 755 | inline HALF_CONSTEXPR_NOERR unsigned int pole(unsigned int sign = 0) |
| 756 | { |
| 757 | #if HALF_ERRHANDLING |
| 758 | raise(FE_DIVBYZERO); |
| 759 | #endif |
| 760 | return sign | 0x7C00; |
| 761 | } |
| 762 | |
| 763 | /// Check value for underflow. |
| 764 | /// \param arg non-zero half-precision value to check |