From e57201eb71a05540aa8d1c7f37b377585d56d111 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 19 Mar 2015 09:07:33 -0400 Subject: [PATCH] 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. --- Source/Core/Common/x64FPURoundMode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,