mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
MathUtil: Convert Clamp into a constexpr function
This commit is contained in:
@ -53,8 +53,8 @@ template<typename SType> SType ScaleAndClamp(double ps, u32 stScale)
|
||||
float convPS = (float)ps * m_quantizeTable[stScale];
|
||||
float min = (float)std::numeric_limits<SType>::min();
|
||||
float max = (float)std::numeric_limits<SType>::max();
|
||||
MathUtil::Clamp(&convPS, min, max);
|
||||
return (SType)convPS;
|
||||
|
||||
return (SType)MathUtil::Clamp(convPS, min, max);
|
||||
}
|
||||
|
||||
template<typename T> static T ReadUnpaired(u32 addr);
|
||||
|
Reference in New Issue
Block a user