aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/blake2-impl.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/bootstrap/blake2-impl.h b/bootstrap/blake2-impl.h
index 630c214..88b2b1f 100644
--- a/bootstrap/blake2-impl.h
+++ b/bootstrap/blake2-impl.h
@@ -39,24 +39,24 @@
static BLAKE2_INLINE SlulInt load32( const void *src )
{
const unsigned char *p = ( const unsigned char * )src;
- return (( SlulInt )( p[0] ) << 0) |
- (( SlulInt )( p[1] ) << 8) |
- (( SlulInt )( p[2] ) << 16) |
- (( SlulInt )( p[3] ) << 24) ;
+ return (( SlulInt )( p[0] ) << 0U) |
+ (( SlulInt )( p[1] ) << 8U) |
+ (( SlulInt )( p[2] ) << 16U) |
+ (( SlulInt )( p[3] ) << 24U) ;
}
static BLAKE2_INLINE void store32( void *dst, SlulInt w )
{
unsigned char *p = ( unsigned char * )dst;
- p[0] = (unsigned char)(w >> 0) & 0xFFU;
- p[1] = (unsigned char)(w >> 8) & 0xFFU;
- p[2] = (unsigned char)(w >> 16) & 0xFFU;
- p[3] = (unsigned char)(w >> 24) & 0xFFU;
+ p[0] = (unsigned char)((w >> 0U) & 0xFFU);
+ p[1] = (unsigned char)((w >> 8U) & 0xFFU);
+ p[2] = (unsigned char)((w >> 16U) & 0xFFU);
+ p[3] = (unsigned char)((w >> 24U) & 0xFFU);
}
static BLAKE2_INLINE SlulInt rotr32( const SlulInt w, const unsigned c )
{
- return ( w >> c ) | ( ( w << ( 32 - c ) ) & SLUL_INT_MAX );
+ return ( w >> c ) | ( ( w << ( 32U - c ) ) & SLUL_INT_MAX );
}
#endif