Skip to content

Commit

Permalink
arm64 - Disable optimization around BN_rshift() untill we update our …
Browse files Browse the repository at this point in the history
…docker image
  • Loading branch information
bagajjal committed Oct 8, 2019
1 parent ca362f0 commit 91d31d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crypto/bn/bn_shift.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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

0 comments on commit 91d31d5

Please sign in to comment.