summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_local.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/bn/bn_local.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h
index 904eaa0f05..4ea54d2320 100644
--- a/src/lib/libcrypto/bn/bn_local.h
+++ b/src/lib/libcrypto/bn/bn_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_local.h,v 1.7 2023/02/03 04:47:59 jsing Exp $ */ 1/* $OpenBSD: bn_local.h,v 1.8 2023/02/09 09:16:26 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -342,13 +342,6 @@ struct bn_gencb_st {
342 (c)= Hw(t); \ 342 (c)= Hw(t); \
343 } 343 }
344 344
345#define sqr(r0,r1,a) { \
346 BN_ULLONG t; \
347 t=(BN_ULLONG)(a)*(a); \
348 (r0)=Lw(t); \
349 (r1)=Hw(t); \
350 }
351
352#elif defined(BN_UMULT_LOHI) 345#elif defined(BN_UMULT_LOHI)
353#define mul_add(r,a,w,c) { \ 346#define mul_add(r,a,w,c) { \
354 BN_ULONG high,low,ret,tmp=(a); \ 347 BN_ULONG high,low,ret,tmp=(a); \
@@ -371,11 +364,6 @@ struct bn_gencb_st {
371 (r) = ret; \ 364 (r) = ret; \
372 } 365 }
373 366
374#define sqr(r0,r1,a) { \
375 BN_ULONG tmp=(a); \
376 BN_UMULT_LOHI(r0,r1,tmp,tmp); \
377 }
378
379#elif defined(BN_UMULT_HIGH) 367#elif defined(BN_UMULT_HIGH)
380#define mul_add(r,a,w,c) { \ 368#define mul_add(r,a,w,c) { \
381 BN_ULONG high,low,ret,tmp=(a); \ 369 BN_ULONG high,low,ret,tmp=(a); \
@@ -400,12 +388,6 @@ struct bn_gencb_st {
400 (r) = ret; \ 388 (r) = ret; \
401 } 389 }
402 390
403#define sqr(r0,r1,a) { \
404 BN_ULONG tmp=(a); \
405 (r0) = tmp * tmp; \
406 (r1) = BN_UMULT_HIGH(tmp,tmp); \
407 }
408
409#else 391#else
410/************************************************************* 392/*************************************************************
411 * No long long type 393 * No long long type