diff options
Diffstat (limited to 'crypto/ec/ecp_nistp384.c')
-rw-r--r-- | crypto/ec/ecp_nistp384.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/ec/ecp_nistp384.c b/crypto/ec/ecp_nistp384.c index a0559487ed..14f9530d07 100644 --- a/crypto/ec/ecp_nistp384.c +++ b/crypto/ec/ecp_nistp384.c @@ -691,6 +691,15 @@ void p384_felem_mul(widefelem out, const felem in1, const felem in2); static void felem_select(void) { +# if defined(_ARCH_PPC64) + if ((OPENSSL_ppccap_P & PPC_MADD300) && (OPENSSL_ppccap_P & PPC_ALTIVEC)) { + felem_square_p = p384_felem_square; + felem_mul_p = p384_felem_mul; + + return; + } +# endif + /* Default */ felem_square_p = felem_square_ref; felem_mul_p = felem_mul_ref; |