lib/crypto: remove unused code
authorUri Simchoni <uri@samba.org>
Sun, 19 Nov 2017 07:02:12 +0000 (07:02 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 Nov 2017 09:20:20 +0000 (10:20 +0100)
Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/crypto/sha512.c

index 9c7367bb6029baf4537690a3b2892b863683b250..41be1ec0e966712a29ad84c0bd1e83334ba83a71 100644 (file)
 #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 <bind/bitypes.h> 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)
 {