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:
Lioncash 2015-03-19 09:07:33 -04:00
parent c73cac3ee9
commit e57201eb71

View File

@ -18,7 +18,7 @@ namespace FPURoundMode
void SetRoundMode(int mode) void SetRoundMode(int mode)
{ {
// Convert PowerPC to native rounding mode. // Convert PowerPC to native rounding mode.
const int rounding_mode_lut[] = { static const int rounding_mode_lut[] = {
FE_TONEAREST, FE_TONEAREST,
FE_TOWARDZERO, FE_TOWARDZERO,
FE_UPWARD, FE_UPWARD,