postgres.git / summary / log / commit / refs
commit a62fa616113e68735db3e1dc353e09e675d6df6c
Author: Peter Eisentraut <peter@eisentraut.org>
Date: Tue Sep 01 11:50:51 2026 +0000
pgcrypto: remove unused BF_ASM macro
This has never been defined to anything but 0, and the _BF_body_r
function it would call has never existed.
Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/flat/87ldew2yqu.fsf%40wibble.ilmari.org
contrib/pgcrypto/crypt-blowfish.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/contrib/pgcrypto/crypt-blowfish.c b/contrib/pgcrypto/crypt-blowfish.c
index 014e0b29e33..53c8d986dd0 100644
--- a/contrib/pgcrypto/crypt-blowfish.c
+++ b/contrib/pgcrypto/crypt-blowfish.c
@@ -39,13 +39,10 @@
#include "px.h"
#ifdef __i386__
-#define BF_ASM 0 /* 1 */
#define BF_SCALE 1
#elif defined(__x86_64__)
-#define BF_ASM 0
#define BF_SCALE 1
#else
-#define BF_ASM 0
#define BF_SCALE 0
#endif
@@ -518,14 +515,6 @@ BF_swap(BF_word *x, int count)
R = L; \
L = tmp4 ^ data.ctx.P[BF_N + 1]
-#if BF_ASM
-
-extern void _BF_body_r(BF_ctx *ctx);
-
-#define BF_body() \
- _BF_body_r(&data.ctx)
-#else
-
#define BF_body() \
do { \
L = R = 0; \
@@ -545,7 +534,6 @@ do { \
*(ptr - 1) = R; \
} while (ptr < &data.ctx.S[3][0xFF]); \
} while (0)
-#endif
static void
BF_set_key(const char *key, BF_key expanded, BF_key initial,
[parent: 8534b0b4c765]