diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2023-01-20 17:26:04 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2023-01-20 17:26:04 +0000 |
commit | 9b026c566ba2689bcfd912da069e041277a5da87 (patch) | |
tree | ca9e6630f099d40f5ba38318a8bcc8053250fbe2 /lib/libcrypto/bn/asm | |
parent | 7732d659654d066f7ff3a5c40bb2cc3327ab5925 (diff) |
Move {mul,sqr}_add_c{,2} macros from bn_asm.c to bn_local.h.
These depend on other macros that are in already in bn_local.h and this
makes them available to other source files. A lot more clean up will be
needed in the future.
Of course x86_64-gcc.c makes use of the same macro names - sprinkle some
undef in there for the time being.
ok tb@
Diffstat (limited to 'lib/libcrypto/bn/asm')
-rw-r--r-- | lib/libcrypto/bn/asm/x86_64-gcc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libcrypto/bn/asm/x86_64-gcc.c b/lib/libcrypto/bn/asm/x86_64-gcc.c index e98ffe41e58..c6d6239bc29 100644 --- a/lib/libcrypto/bn/asm/x86_64-gcc.c +++ b/lib/libcrypto/bn/asm/x86_64-gcc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x86_64-gcc.c,v 1.7 2022/11/26 16:08:51 tb Exp $ */ +/* $OpenBSD: x86_64-gcc.c,v 1.8 2023/01/20 17:26:03 jsing Exp $ */ #include "../bn_local.h" /* * x86_64 BIGNUM accelerator version 0.1, December 2002. @@ -227,6 +227,11 @@ BN_ULONG bn_sub_words (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int /* sqr_add_c(a,i,c0,c1,c2) -- c+=a[i]^2 for three word number c=(c2,c1,c0) */ /* sqr_add_c2(a,i,c0,c1,c2) -- c+=2*a[i]*a[j] for three word number c=(c2,c1,c0) */ +#undef mul_add_c +#undef mul_add_c2 +#undef sqr_add_c +#undef sqr_add_c2 + /* * Keep in mind that carrying into high part of multiplication result * can not overflow, because it cannot be all-ones. |