Skip to content

Commit

Permalink
bn_ppc.c: Fix build failure on AIX with XLC/XLCLANG
Browse files Browse the repository at this point in the history
These compilers define _ARCH_PPC64 for 32 bit builds
so we cannot depend solely on this define to identify
32 bit build.

Fixes #17087

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #17497)

(cherry picked from commit cfbb5fc)
  • Loading branch information
t8m committed Jan 17, 2022
1 parent 67397a6 commit 454358b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/bn/bn_ppc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
* no opportunity to figure it out...
*/

#if defined(_ARCH_PPC64)
#if defined(_ARCH_PPC64) && !defined(__ILP32__)
if (num == 6) {
if (OPENSSL_ppccap_P & PPC_MADD300)
return bn_mul_mont_300_fixed_n6(rp, ap, bp, np, n0, num);
Expand Down

0 comments on commit 454358b

Please sign in to comment.