@brief Set an infinite `float` value based on the given signedness. @param f The output `float` value holder. @param sign Whether the infinite value should be positive or negative.
| 5220 | /// @param f The output `float` value holder. |
| 5221 | /// @param sign Whether the infinite value should be positive or negative. |
| 5222 | inline void set_infinity(float& f, const float sign) noexcept { |
| 5223 | f = std::numeric_limits<float>::infinity() * sign; |
| 5224 | } |
| 5225 | |
| 5226 | /// @brief Set an infinite `double` value based on the given signedness. |
| 5227 | /// @param f The output `double` value holder. |