Skip to content

Commit 5e51ae3

Browse files
committed
Remove optimization around BN_rshift() to support ARM64 due to VS bug
1 parent db3b419 commit 5e51ae3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crypto/bn/bn_shift.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
167167
bn_check_top(r);
168168
return (1);
169169
}
170-
170+
#ifdef _M_ARM64
171+
#pragma optimize("", off)
172+
#endif
171173
int
172174
BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
173175
{
@@ -216,3 +218,6 @@ BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
216218
bn_check_top(r);
217219
return (1);
218220
}
221+
#ifdef _M_ARM64
222+
#pragma optimize("", on)
223+
#endif

0 commit comments

Comments
 (0)