From db246afaad7e4bbe59bd2805c624374b2f5f8f7d Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 31 Aug 2025 09:34:51 +0000 Subject: Reorder functions since they've been renamed. --- src/lib/libcrypto/bn/arch/amd64/bn_arch.c | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/bn/arch/amd64/bn_arch.c b/src/lib/libcrypto/bn/arch/amd64/bn_arch.c index ef8eeadec2..5f3549fc26 100644 --- a/src/lib/libcrypto/bn/arch/amd64/bn_arch.c +++ b/src/lib/libcrypto/bn/arch/amd64/bn_arch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_arch.c,v 1.14 2025/08/30 07:54:27 jsing Exp $ */ +/* $OpenBSD: bn_arch.c,v 1.15 2025/08/31 09:34:51 jsing Exp $ */ /* * Copyright (c) 2023 Joel Sing * @@ -81,22 +81,6 @@ bn_mod_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, } #endif -#ifdef HAVE_BN_MULW_ADD_WORDS -BN_ULONG -bn_mulw_add_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w) -{ - return bignum_cmadd(num, (uint64_t *)rd, w, num, (const uint64_t *)ad); -} -#endif - -#ifdef HAVE_BN_MULW_WORDS -BN_ULONG -bn_mulw_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w) -{ - return bignum_cmul(num, (uint64_t *)rd, w, num, (const uint64_t *)ad); -} -#endif - #ifdef HAVE_BN_MUL_COMBA4 void bn_mul_comba4(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd) @@ -142,6 +126,22 @@ bn_mul_comba8(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd) } #endif +#ifdef HAVE_BN_MULW_ADD_WORDS +BN_ULONG +bn_mulw_add_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w) +{ + return bignum_cmadd(num, (uint64_t *)rd, w, num, (const uint64_t *)ad); +} +#endif + +#ifdef HAVE_BN_MULW_WORDS +BN_ULONG +bn_mulw_words(BN_ULONG *rd, const BN_ULONG *ad, int num, BN_ULONG w) +{ + return bignum_cmul(num, (uint64_t *)rd, w, num, (const uint64_t *)ad); +} +#endif + #ifdef HAVE_BN_SQR_COMBA4 void bn_sqr_comba4(BN_ULONG *rd, const BN_ULONG *ad) -- cgit v1.2.3-55-g6feb