Merge pull request #2237 from lioncash/round
x64FPURoundMode: Make a look-up table static
This commit is contained in:
commit
31add72dee
1 file changed
+1
-1
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user