We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312ef7e commit fc1ad57Copy full SHA for fc1ad57
1 file changed
include/ginkgo/core/base/half.hpp
@@ -430,6 +430,9 @@ class alignas(std::uint16_t) half {
430
return conv::shift_sign(data_);
431
}
432
433
+ // all significant (including implicitly leading 1) will be
434
+ // moved after representation field more than one digit (less
435
+ // than half) such that it will rounding to zero.
436
const auto explicit_significand =
437
(data_ & f32_traits::significand_mask) |
438
(1 << f32_traits::significand_bits);
0 commit comments