mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 09:18:40 +12:00
Simplify f16 type
This commit is contained in:
parent
4cfa9b11f3
commit
360c4d1554
2 changed files with 3 additions and 4 deletions
|
@ -573,10 +573,9 @@ constexpr inline struct umax_helper
|
|||
using f32 = float;
|
||||
using f64 = double;
|
||||
|
||||
union alignas(2) f16
|
||||
struct f16
|
||||
{
|
||||
u16 _u16;
|
||||
u8 _u8[2];
|
||||
|
||||
explicit f16(u16 raw)
|
||||
{
|
||||
|
@ -595,8 +594,6 @@ union alignas(2) f16
|
|||
}
|
||||
};
|
||||
|
||||
CHECK_SIZE_ALIGN(f16, 2, 2);
|
||||
|
||||
template <typename T, typename = std::enable_if_t<std::is_integral<T>::value && std::is_unsigned<T>::value>>
|
||||
constexpr T align(T value, ullong align)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue