From 1a428de189eb9456695429adc11b606936218924 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 23 Feb 2014 14:57:31 +0100 Subject: x64FPURoundMode: move things around a bit --- Source/Core/Common/GenericFPURoundMode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/GenericFPURoundMode.cpp') diff --git a/Source/Core/Common/GenericFPURoundMode.cpp b/Source/Core/Common/GenericFPURoundMode.cpp index 548e029fb9..0fb37ba07f 100644 --- a/Source/Core/Common/GenericFPURoundMode.cpp +++ b/Source/Core/Common/GenericFPURoundMode.cpp @@ -21,13 +21,13 @@ // Generic, do nothing namespace FPURoundMode { - void SetRoundMode(u32 mode) + void SetRoundMode(enum RoundModes mode) { } - void SetPrecisionMode(u32 mode) + void SetPrecisionMode(enum PrecisionModes mode) { } - void SetSIMDMode(u32 mode, u32 nonIEEEMode) + void SetSIMDMode(enum RoundModes rounding_mode, bool non_ieee_mode) { } void SaveSIMDState() -- cgit v1.2.3 From 315a8ba1c04bf8cffd9b04096be898ac462fa89e Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 23 Feb 2014 23:03:39 +0100 Subject: Various changes suggested by cppcheck - remove unused variables - reduce the scope where it makes sense - correct limits (did you know that strcat()'s last parameter does not include the \0 that is always added?) - set some free()'d pointers to NULL --- Source/Core/Common/GenericFPURoundMode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/GenericFPURoundMode.cpp') diff --git a/Source/Core/Common/GenericFPURoundMode.cpp b/Source/Core/Common/GenericFPURoundMode.cpp index 0fb37ba07f..61343514a5 100644 --- a/Source/Core/Common/GenericFPURoundMode.cpp +++ b/Source/Core/Common/GenericFPURoundMode.cpp @@ -21,13 +21,13 @@ // Generic, do nothing namespace FPURoundMode { - void SetRoundMode(enum RoundModes mode) + void SetRoundMode(RoundModes mode) { } - void SetPrecisionMode(enum PrecisionModes mode) + void SetPrecisionMode(PrecisionModes mode) { } - void SetSIMDMode(enum RoundModes rounding_mode, bool non_ieee_mode) + void SetSIMDMode(RoundModes rounding_mode, bool non_ieee_mode) { } void SaveSIMDState() -- cgit v1.2.3