revert: "fix: add correct static_cast for fputil::getpload for bfloat16"
This reverts commit 8ea93545572ba5a69d468e21d00b2be69d4c857c.
This commit is contained in:
parent
70e4463400
commit
5ad41c59bf
@ -354,10 +354,7 @@ LIBC_INLINE cpp::enable_if_t<cpp::is_floating_point_v<T>, T> getpayload(T x) {
|
||||
|
||||
return static_cast<T>(payload_dfloat);
|
||||
} else {
|
||||
if constexpr (cpp::is_same_v<T, bfloat16>)
|
||||
return T(static_cast<int>(payload));
|
||||
else
|
||||
return static_cast<T>(payload);
|
||||
return static_cast<T>(payload);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user