From 91d31d5251c7051fe3fe1401d8901ed6063039c2 Mon Sep 17 00:00:00 2001 From: bagajjal Date: Tue, 8 Oct 2019 10:18:22 -0700 Subject: [PATCH] arm64 - Disable optimization around BN_rshift() untill we update our docker image --- crypto/bn/bn_shift.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crypto/bn/bn_shift.c b/crypto/bn/bn_shift.c index 0e8211e3..da0abfd1 100644 --- a/crypto/bn/bn_shift.c +++ b/crypto/bn/bn_shift.c @@ -168,6 +168,9 @@ BN_lshift(BIGNUM *r, const BIGNUM *a, int n) return (1); } +#ifdef _M_ARM64 +#pragma optimize("", off) +#endif int BN_rshift(BIGNUM *r, const BIGNUM *a, int n) { @@ -216,3 +219,6 @@ BN_rshift(BIGNUM *r, const BIGNUM *a, int n) bn_check_top(r); return (1); } +#ifdef _M_ARM64 +#pragma optimize("", on) +#endif \ No newline at end of file