diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2023-01-20 17:31:53 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2023-01-20 17:31:53 +0000 |
commit | 6112cb5d1bbc8d3d5844b36073340d4a6efe2744 (patch) | |
tree | 95ec25006c48ee5cc6088a0b74e2804dea36d04d /lib/libcrypto/bn/arch | |
parent | 9b026c566ba2689bcfd912da069e041277a5da87 (diff) |
Move bn_{mul,sqr}_comba{4,8}() from bn_asm.c to bn_mul.c/bn_sqr.c.
Wrap these in HAVE_BN_{MUL,SQR}_COMBA{4,8} defines. Add these defines to
bn_arch.h where the architecture currently provides its own version.
ok tb@
Diffstat (limited to 'lib/libcrypto/bn/arch')
-rw-r--r-- | lib/libcrypto/bn/arch/amd64/bn_arch.h | 8 | ||||
-rw-r--r-- | lib/libcrypto/bn/arch/i386/bn_arch.h | 8 | ||||
-rw-r--r-- | lib/libcrypto/bn/arch/mips64/bn_arch.h | 8 | ||||
-rw-r--r-- | lib/libcrypto/bn/arch/powerpc/bn_arch.h | 8 | ||||
-rw-r--r-- | lib/libcrypto/bn/arch/sparc/bn_arch.h | 8 |
5 files changed, 35 insertions, 5 deletions
diff --git a/lib/libcrypto/bn/arch/amd64/bn_arch.h b/lib/libcrypto/bn/arch/amd64/bn_arch.h index 136adf0e977..17d22f3cec4 100644 --- a/lib/libcrypto/bn/arch/amd64/bn_arch.h +++ b/lib/libcrypto/bn/arch/amd64/bn_arch.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_arch.h,v 1.1 2023/01/20 10:04:33 jsing Exp $ */ +/* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 17:31:52 jsing Exp $ */ /* * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> * @@ -20,5 +20,11 @@ #ifndef OPENSSL_NO_ASM +#define HAVE_BN_MUL_COMBA4 +#define HAVE_BN_MUL_COMBA8 + +#define HAVE_BN_SQR_COMBA4 +#define HAVE_BN_SQR_COMBA8 + #endif #endif diff --git a/lib/libcrypto/bn/arch/i386/bn_arch.h b/lib/libcrypto/bn/arch/i386/bn_arch.h index 136adf0e977..17d22f3cec4 100644 --- a/lib/libcrypto/bn/arch/i386/bn_arch.h +++ b/lib/libcrypto/bn/arch/i386/bn_arch.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_arch.h,v 1.1 2023/01/20 10:04:33 jsing Exp $ */ +/* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 17:31:52 jsing Exp $ */ /* * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> * @@ -20,5 +20,11 @@ #ifndef OPENSSL_NO_ASM +#define HAVE_BN_MUL_COMBA4 +#define HAVE_BN_MUL_COMBA8 + +#define HAVE_BN_SQR_COMBA4 +#define HAVE_BN_SQR_COMBA8 + #endif #endif diff --git a/lib/libcrypto/bn/arch/mips64/bn_arch.h b/lib/libcrypto/bn/arch/mips64/bn_arch.h index 6c6212c4a6f..8e8fd1110fe 100644 --- a/lib/libcrypto/bn/arch/mips64/bn_arch.h +++ b/lib/libcrypto/bn/arch/mips64/bn_arch.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 10:07:52 jsing Exp $ */ +/* $OpenBSD: bn_arch.h,v 1.3 2023/01/20 17:31:52 jsing Exp $ */ /* * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> * @@ -22,5 +22,11 @@ #define HAVE_BN_DIV_3_WORDS +#define HAVE_BN_MUL_COMBA4 +#define HAVE_BN_MUL_COMBA8 + +#define HAVE_BN_SQR_COMBA4 +#define HAVE_BN_SQR_COMBA8 + #endif #endif diff --git a/lib/libcrypto/bn/arch/powerpc/bn_arch.h b/lib/libcrypto/bn/arch/powerpc/bn_arch.h index 4d6571f9cb4..17d22f3cec4 100644 --- a/lib/libcrypto/bn/arch/powerpc/bn_arch.h +++ b/lib/libcrypto/bn/arch/powerpc/bn_arch.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_arch.h,v 1.1 2023/01/20 10:04:34 jsing Exp $ */ +/* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 17:31:52 jsing Exp $ */ /* * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> * @@ -20,5 +20,11 @@ #ifndef OPENSSL_NO_ASM +#define HAVE_BN_MUL_COMBA4 +#define HAVE_BN_MUL_COMBA8 + +#define HAVE_BN_SQR_COMBA4 +#define HAVE_BN_SQR_COMBA8 + #endif #endif diff --git a/lib/libcrypto/bn/arch/sparc/bn_arch.h b/lib/libcrypto/bn/arch/sparc/bn_arch.h index 4d6571f9cb4..17d22f3cec4 100644 --- a/lib/libcrypto/bn/arch/sparc/bn_arch.h +++ b/lib/libcrypto/bn/arch/sparc/bn_arch.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_arch.h,v 1.1 2023/01/20 10:04:34 jsing Exp $ */ +/* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 17:31:52 jsing Exp $ */ /* * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> * @@ -20,5 +20,11 @@ #ifndef OPENSSL_NO_ASM +#define HAVE_BN_MUL_COMBA4 +#define HAVE_BN_MUL_COMBA8 + +#define HAVE_BN_SQR_COMBA4 +#define HAVE_BN_SQR_COMBA8 + #endif #endif |