From 03414e8e848fd99e2ea83f4466a1cf34c2ad6807 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 9 Jun 2018 11:34:43 -0400 Subject: Common: Add header for compiler-specifics Instead of globbing things under an ambiguous Common.h header, move compiler-specifics over to Compiler.h. This gives us a dedicated home for anything related to compilers that we want to make functional across all compilers that we support. This moves us a little closer to eliminating Common.h entirely. --- Source/Core/Common/Crypto/ec.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Source/Core/Common/Crypto/ec.cpp') diff --git a/Source/Core/Common/Crypto/ec.cpp b/Source/Core/Common/Crypto/ec.cpp index 78cd346ebd..4668293fc4 100644 --- a/Source/Core/Common/Crypto/ec.cpp +++ b/Source/Core/Common/Crypto/ec.cpp @@ -7,12 +7,9 @@ // http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt #include -#include -#include -#include -#include +#include -#include "Common/Common.h" +#include "Common/Compiler.h" #include "Common/Crypto/bn.h" #include "Common/Crypto/ec.h" #include "Common/Random.h" -- cgit v1.2.3 From d8f6d601894ab73a3db199e6325692561a5ec702 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 9 Jun 2018 11:54:52 -0400 Subject: Compiler: Rename UNUSED macro to DOLPHIN_UNUSED UNUSED is quite a generic macro name and has potential to clash with other libraries, so rename it to DOLPHIN_UNUSED to prevent that, as well as make its naming consistent with the force inline macro --- Source/Core/Common/Crypto/ec.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/Crypto/ec.cpp') diff --git a/Source/Core/Common/Crypto/ec.cpp b/Source/Core/Common/Crypto/ec.cpp index 4668293fc4..098d3e30c6 100644 --- a/Source/Core/Common/Crypto/ec.cpp +++ b/Source/Core/Common/Crypto/ec.cpp @@ -173,9 +173,9 @@ private: }; // y**2 + x*y = x**3 + x + b -UNUSED static const u8 ec_b[30] = {0x00, 0x66, 0x64, 0x7e, 0xde, 0x6c, 0x33, 0x2c, 0x7f, 0x8c, - 0x09, 0x23, 0xbb, 0x58, 0x21, 0x3b, 0x33, 0x3b, 0x20, 0xe9, - 0xce, 0x42, 0x81, 0xfe, 0x11, 0x5f, 0x7d, 0x8f, 0x90, 0xad}; +DOLPHIN_UNUSED static const u8 ec_b[30] = { + 0x00, 0x66, 0x64, 0x7e, 0xde, 0x6c, 0x33, 0x2c, 0x7f, 0x8c, 0x09, 0x23, 0xbb, 0x58, 0x21, + 0x3b, 0x33, 0x3b, 0x20, 0xe9, 0xce, 0x42, 0x81, 0xfe, 0x11, 0x5f, 0x7d, 0x8f, 0x90, 0xad}; // order of the addition group of points static const u8 ec_N[30] = {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -- cgit v1.2.3