Skip to content

Commit

Permalink
lib/crypto: remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Uri Simchoni <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
urisimchoni authored and abartlet committed Nov 22, 2017
1 parent 5aa8af0 commit 1d74e4f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/crypto/sha512.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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)
{
Expand Down

0 comments on commit 1d74e4f

Please sign in to comment.