mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
meh
This commit is contained in:
parent
2c393d35f0
commit
98c174edc4
520 changed files with 74815 additions and 58942 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "VideoCommon/BPMemory.h"
|
||||
|
||||
#include "Common/BitUtils.h"
|
||||
#include <bit>
|
||||
|
||||
// BP state
|
||||
// STATE_TO_SAVE
|
||||
|
@ -50,14 +50,14 @@ float FogParam0::FloatValue() const
|
|||
{
|
||||
// scale mantissa from 11 to 23 bits
|
||||
const u32 integral = (sign << 31) | (exp << 23) | (mant << 12);
|
||||
return Common::BitCast<float>(integral);
|
||||
return std::bit_cast<float>(integral);
|
||||
}
|
||||
|
||||
float FogParam3::FloatValue() const
|
||||
{
|
||||
// scale mantissa from 11 to 23 bits
|
||||
const u32 integral = (c_sign << 31) | (c_exp << 23) | (c_mant << 12);
|
||||
return Common::BitCast<float>(integral);
|
||||
return std::bit_cast<float>(integral);
|
||||
}
|
||||
|
||||
float FogParams::GetA() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue