2 * Copyright 2009-2016 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #include <openssl/opensslconf.h>
11 #include <openssl/bn.h>
12 #include "../ppc_arch.h"
14 #ifndef OPENSSL_BN_ASM_MONT
15 NON_EMPTY_TRANSLATION_UNIT
17 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
18 const BN_ULONG *np, const BN_ULONG *n0, int num)
20 int bn_mul_mont_int(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
21 const BN_ULONG *np, const BN_ULONG *n0, int num);
22 int bn_mul4x_mont_int(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
23 const BN_ULONG *np, const BN_ULONG *n0, int num);
29 return bn_mul4x_mont_int(rp, ap, bp, np, n0, num);
32 * There used to be [optional] call to bn_mul_mont_fpu64 here,
33 * but above subroutine is faster on contemporary processors.
34 * Formulation means that there might be old processors where
35 * FPU code path would be faster, POWER6 perhaps, but there was
36 * no opportunity to figure it out...
39 return bn_mul_mont_int(rp, ap, bp, np, n0, num);