From 1d74e4f6f303a0324ad6ee306395b3d1c745f982 Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Sun, 19 Nov 2017 07:02:12 +0000 Subject: [PATCH] lib/crypto: remove unused code Signed-off-by: Uri Simchoni Reviewed-by: Andrew Bartlett --- lib/crypto/sha512.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/crypto/sha512.c b/lib/crypto/sha512.c index 9c7367bb602..41be1ec0e96 100644 --- a/lib/crypto/sha512.c +++ b/lib/crypto/sha512.c @@ -38,26 +38,6 @@ #define min(a,b) (((a)>(b))?(b):(a)) #endif -/* Vector Crays doesn't have a good 32-bit type, or more precisely, - int32_t as defined by isn't 32 bits, and we don't - want to depend in being able to redefine this type. To cope with - this we have to clamp the result in some places to [0,2^32); no - need to do this on other machines. Did I say this was a mess? - */ - -#ifdef _CRAY -#define CRAYFIX(X) ((X) & 0xffffffff) -#else -#define CRAYFIX(X) (X) -#endif - -static inline uint32_t -cshift (uint32_t x, unsigned int n) -{ - x = CRAYFIX(x); - return CRAYFIX((x << n) | (x >> (32 - n))); -} - static inline uint64_t cshift64 (uint64_t x, unsigned int n) {