summaryrefslogtreecommitdiff
path: root/Source/Core/Common/x64FPURoundMode.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-03-19 09:07:33 -0400
committerLioncash <mathew1800@gmail.com>2015-03-19 09:07:36 -0400
commite57201eb71a05540aa8d1c7f37b377585d56d111 (patch)
treeb159b2a5d271cef55dd323be03398ea6c5ae372d /Source/Core/Common/x64FPURoundMode.cpp
parentc73cac3ee9855579a52cfaada8815ed8734b5791 (diff)
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.
Diffstat (limited to 'Source/Core/Common/x64FPURoundMode.cpp')
-rw-r--r--Source/Core/Common/x64FPURoundMode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/x64FPURoundMode.cpp b/Source/Core/Common/x64FPURoundMode.cpp
index b04579b850..5dc23e6574 100644
--- a/Source/Core/Common/x64FPURoundMode.cpp
+++ b/Source/Core/Common/x64FPURoundMode.cpp
@@ -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,