Merge pull request #2237 from lioncash/round

x64FPURoundMode: Make a look-up table static
This commit is contained in:
magumagu
2015-03-19 10:59:22 -07:00

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,