diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2021-01-04 21:58:58 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2021-01-08 13:46:35 +1100 |
commit | 91bac5e95b1b0debf9b2b4f05c20dcfa96b368b9 (patch) | |
tree | 1174a47d454137f0b15c7882e7c9a0e4366ca86c /int32_minmax.inc | |
parent | 4d96a3ebab2224f17e639a15078e03be1ad3736d (diff) |
upstream: estructure sntrup761.sh to process all files in a single
list, which will make it easier to reorder. Re-inline int32_MINMAX. ok
tobhe@
OpenBSD-Commit-ID: d145c6c19b08bb93c9e14bfaa7af589d90f144c0
Diffstat (limited to 'int32_minmax.inc')
-rw-r--r-- | int32_minmax.inc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/int32_minmax.inc b/int32_minmax.inc index 2f6ff519..e69de29b 100644 --- a/int32_minmax.inc +++ b/int32_minmax.inc @@ -1,20 +0,0 @@ -/* $OpenBSD: int32_minmax.inc,v 1.1 2020/12/30 14:13:28 tobhe Exp $ */ - -/* - * Public Domain, Authors: - * - Daniel J. Bernstein - * - Chitchanok Chuengsatiansup - * - Tanja Lange - * - Christine van Vredendaal - */ - -#define int32_MINMAX(a,b) \ -do { \ - int64_t ab = (int64_t)b ^ (int64_t)a; \ - int64_t c = (int64_t)b - (int64_t)a; \ - c ^= ab & (c ^ b); \ - c >>= 31; \ - c &= ab; \ - a ^= c; \ - b ^= c; \ -} while(0) |