mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01:00
x64FPURoundMode: Make a look-up table static
Since it's only a look-up table, this doesn't need to be recreated every time the function is called.
This commit is contained in:
parent
c73cac3ee9
commit
e57201eb71
@ -18,7 +18,7 @@ namespace FPURoundMode
|
||||
void SetRoundMode(int mode)
|
||||
{
|
||||
// Convert PowerPC to native rounding mode.
|
||||
const int rounding_mode_lut[] = {
|
||||
static const int rounding_mode_lut[] = {
|
||||
FE_TONEAREST,
|
||||
FE_TOWARDZERO,
|
||||
FE_UPWARD,
|
||||
|
Loading…
x
Reference in New Issue
Block a user