From eb3e2b886854d63493c3e2a8bac8fe261503aeaf Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 25 May 2017 09:32:39 +0300 Subject: [PATCH] Fix gcc7 support. --- algo/cryptonight-lite/cryptonight_lite_aesni.h | 4 ++-- algo/cryptonight-lite/cryptonight_lite_softaes.h | 4 ++-- algo/cryptonight/cryptonight_aesni.h | 4 ++-- algo/cryptonight/cryptonight_softaes.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/algo/cryptonight-lite/cryptonight_lite_aesni.h b/algo/cryptonight-lite/cryptonight_lite_aesni.h index 6c9d15cbf..e69c79b26 100644 --- a/algo/cryptonight-lite/cryptonight_lite_aesni.h +++ b/algo/cryptonight-lite/cryptonight_lite_aesni.h @@ -116,7 +116,7 @@ inline void aes_genkey(const __m128i* memory, __m128i* k0, __m128i* k1, __m128i* } -inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) +static inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) { // This is more than we have registers, compiler will assign 2 keys on the stack __m128i xin0, xin1, xin2, xin3, xin4, xin5, xin6, xin7; @@ -157,7 +157,7 @@ inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) } -inline void cn_implode_scratchpad(const __m128i* input, __m128i* output) +static inline void cn_implode_scratchpad(const __m128i* input, __m128i* output) { // This is more than we have registers, compiler will assign 2 keys on the stack __m128i xout0, xout1, xout2, xout3, xout4, xout5, xout6, xout7; diff --git a/algo/cryptonight-lite/cryptonight_lite_softaes.h b/algo/cryptonight-lite/cryptonight_lite_softaes.h index 15a0a574e..3b28d3223 100644 --- a/algo/cryptonight-lite/cryptonight_lite_softaes.h +++ b/algo/cryptonight-lite/cryptonight_lite_softaes.h @@ -97,7 +97,7 @@ inline void aes_genkey(const __m128i* memory, __m128i* k0, __m128i* k1, __m128i* } -inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) +static inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) { // This is more than we have registers, compiler will assign 2 keys on the stack __m128i xin0, xin1, xin2, xin3, xin4, xin5, xin6, xin7; @@ -138,7 +138,7 @@ inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) } -inline void cn_implode_scratchpad(const __m128i* input, __m128i* output) +static inline void cn_implode_scratchpad(const __m128i* input, __m128i* output) { // This is more than we have registers, compiler will assign 2 keys on the stack __m128i xout0, xout1, xout2, xout3, xout4, xout5, xout6, xout7; diff --git a/algo/cryptonight/cryptonight_aesni.h b/algo/cryptonight/cryptonight_aesni.h index 30ad690a5..dcbc740dd 100644 --- a/algo/cryptonight/cryptonight_aesni.h +++ b/algo/cryptonight/cryptonight_aesni.h @@ -116,7 +116,7 @@ inline void aes_genkey(const __m128i* memory, __m128i* k0, __m128i* k1, __m128i* } -inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) +static inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) { // This is more than we have registers, compiler will assign 2 keys on the stack __m128i xin0, xin1, xin2, xin3, xin4, xin5, xin6, xin7; @@ -157,7 +157,7 @@ inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) } -inline void cn_implode_scratchpad(const __m128i* input, __m128i* output) +static inline void cn_implode_scratchpad(const __m128i* input, __m128i* output) { // This is more than we have registers, compiler will assign 2 keys on the stack __m128i xout0, xout1, xout2, xout3, xout4, xout5, xout6, xout7; diff --git a/algo/cryptonight/cryptonight_softaes.h b/algo/cryptonight/cryptonight_softaes.h index 1948db05f..0d70f8ca5 100644 --- a/algo/cryptonight/cryptonight_softaes.h +++ b/algo/cryptonight/cryptonight_softaes.h @@ -97,7 +97,7 @@ inline void aes_genkey(const __m128i* memory, __m128i* k0, __m128i* k1, __m128i* } -inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) +static inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) { // This is more than we have registers, compiler will assign 2 keys on the stack __m128i xin0, xin1, xin2, xin3, xin4, xin5, xin6, xin7; @@ -138,7 +138,7 @@ inline void cn_explode_scratchpad(const __m128i* input, __m128i* output) } -inline void cn_implode_scratchpad(const __m128i* input, __m128i* output) +static inline void cn_implode_scratchpad(const __m128i* input, __m128i* output) { // This is more than we have registers, compiler will assign 2 keys on the stack __m128i xout0, xout1, xout2, xout3, xout4, xout5, xout6, xout7;