From 89bd399d7d3fdeb58f7a442bcd139b707e08e8d0 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 1 Mar 2019 12:21:16 +0000 Subject: [PATCH] math/f25519.c, math/fgoldi.c: Remove some unused constant definitions. --- math/f25519.c | 2 -- math/fgoldi.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/math/f25519.c b/math/f25519.c index 78844be6..d715033d 100644 --- a/math/f25519.c +++ b/math/f25519.c @@ -50,7 +50,6 @@ typedef uint32 upiece; typedef uint64 udblpiece; #define M26 0x03ffffffu #define M25 0x01ffffffu -#define B26 0x04000000u #define B25 0x02000000u #define B24 0x01000000u @@ -83,7 +82,6 @@ typedef uint16 upiece; typedef uint32 udblpiece; ((i) == 5 || (i) == 10 || (i) == 15 || (i) == 20 || (i) == 25 ? 9 : 10) #define NPIECE 26 -#define B10 0x0400 #define B9 0x200 #define B8 0x100 #define M10 0x3ff diff --git a/math/fgoldi.c b/math/fgoldi.c index 9061a74e..1b09b58e 100644 --- a/math/fgoldi.c +++ b/math/fgoldi.c @@ -51,10 +51,8 @@ typedef uint32 upiece; typedef uint64 udblpiece; #define NPIECE 16 #define P p28 -#define B28 0x10000000u #define B27 0x08000000u #define M28 0x0fffffffu -#define M27 0x07ffffffu #define M32 0xffffffffu #elif FGOLDI_IMPL == 12 @@ -70,12 +68,10 @@ typedef uint16 upiece; typedef uint32 udblpiece; #define NPIECE 40 #define P p12 -#define B12 0x1000u #define B11 0x0800u #define B10 0x0400u #define M12 0xfffu #define M11 0x7ffu -#define M10 0x3ffu #define M8 0xffu #endif -- 2.11.0