Skip to content

Commit 91d31d5

Browse files
committed
arm64 - Disable optimization around BN_rshift() untill we update our docker image
1 parent ca362f0 commit 91d31d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crypto/bn/bn_shift.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
168168
return (1);
169169
}
170170

171+
#ifdef _M_ARM64
172+
#pragma optimize("", off)
173+
#endif
171174
int
172175
BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
173176
{
@@ -216,3 +219,6 @@ BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
216219
bn_check_top(r);
217220
return (1);
218221
}
222+
#ifdef _M_ARM64
223+
#pragma optimize("", on)
224+
#endif

0 commit comments

Comments
 (0)