whitespace fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-10-16 23:39:43 +02:00
parent 4bc3b85894
commit 446c2349b6

View File

@ -38,18 +38,18 @@
//#define rotl32(x,n) (((x) << (n)) | ((x) >> (32 - (n)))) //#define rotl32(x,n) (((x) << (n)) | ((x) >> (32 - (n))))
static ALWAYS_INLINE uint32_t rotl32(uint32_t x, unsigned n) static ALWAYS_INLINE uint32_t rotl32(uint32_t x, unsigned n)
{ {
return (x << n) | (x >> (32 - n)); return (x << n) | (x >> (32 - n));
} }
//#define rotr32(x,n) (((x) >> (n)) | ((x) << (32 - (n)))) //#define rotr32(x,n) (((x) >> (n)) | ((x) << (32 - (n))))
static ALWAYS_INLINE uint32_t rotr32(uint32_t x, unsigned n) static ALWAYS_INLINE uint32_t rotr32(uint32_t x, unsigned n)
{ {
return (x >> n) | (x << (32 - n)); return (x >> n) | (x << (32 - n));
} }
/* rotr64 in needed for sha512 only: */ /* rotr64 in needed for sha512 only: */
//#define rotr64(x,n) (((x) >> (n)) | ((x) << (64 - (n)))) //#define rotr64(x,n) (((x) >> (n)) | ((x) << (64 - (n))))
static ALWAYS_INLINE uint64_t rotr64(uint64_t x, unsigned n) static ALWAYS_INLINE uint64_t rotr64(uint64_t x, unsigned n)
{ {
return (x >> n) | (x << (64 - n)); return (x >> n) | (x << (64 - n));
} }
#if BB_LITTLE_ENDIAN #if BB_LITTLE_ENDIAN
/* ALWAYS_INLINE below would hurt code size, using plain inline: */ /* ALWAYS_INLINE below would hurt code size, using plain inline: */