diff options
author | vvvv <[email protected]> | 2025-10-06 11:26:09 +0300 |
---|---|---|
committer | vvvv <[email protected]> | 2025-10-06 11:53:26 +0300 |
commit | 60f45e69a4d7dbc6131208e16c45faf35aa5a985 (patch) | |
tree | 4daa45b52c295a178c7620e4c93921465fcf7950 /yql/essentials/utils/fp_bits.h | |
parent | 1bded1a65a7e6e9171418f3e1c691d390125b64e (diff) |
YQL-20086 utils
init
commit_hash:54feccd520ebd0ab23612bc0cb830914dff9d0e8
Diffstat (limited to 'yql/essentials/utils/fp_bits.h')
-rw-r--r-- | yql/essentials/utils/fp_bits.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/yql/essentials/utils/fp_bits.h b/yql/essentials/utils/fp_bits.h index ffce6e161b4..9d2a812544d 100644 --- a/yql/essentials/utils/fp_bits.h +++ b/yql/essentials/utils/fp_bits.h @@ -98,13 +98,13 @@ struct TCanonizeFpBitsImpl<T, false> { using TNumTraits = std::numeric_limits<T>; const T value = *(T*)buffer; switch (std::fpclassify(value)) { - case FP_NAN: - static_assert(TNumTraits::has_quiet_NaN, "no QNAN"); - *(T*)buffer = TNumTraits::quiet_NaN(); - break; - case FP_ZERO: - *(T*)buffer = T(0); - break; + case FP_NAN: + static_assert(TNumTraits::has_quiet_NaN, "no QNAN"); + *(T*)buffer = TNumTraits::quiet_NaN(); + break; + case FP_ZERO: + *(T*)buffer = T(0); + break; } } }; @@ -119,4 +119,4 @@ void CanonizeFpBits(void* buffer) { return TCanonizeFpBitsImpl<T, TFpTraits<T>::Supported>::Do(buffer); } -} +} // namespace NYql |