Lines Matching refs:w
25 uint32_t w; in load32() local
26 memcpy(&w, src, sizeof w); in load32()
27 return w; in load32()
30 uint32_t w = *p++; in load32()
31 w |= ( uint32_t )( *p++ ) << 8; in load32()
32 w |= ( uint32_t )( *p++ ) << 16; in load32()
33 w |= ( uint32_t )( *p++ ) << 24; in load32()
34 return w; in load32()
41 uint64_t w; in load64() local
42 memcpy(&w, src, sizeof w); in load64()
43 return w; in load64()
46 uint64_t w = *p++; in load64()
47 w |= ( uint64_t )( *p++ ) << 8; in load64()
48 w |= ( uint64_t )( *p++ ) << 16; in load64()
49 w |= ( uint64_t )( *p++ ) << 24; in load64()
50 w |= ( uint64_t )( *p++ ) << 32; in load64()
51 w |= ( uint64_t )( *p++ ) << 40; in load64()
52 w |= ( uint64_t )( *p++ ) << 48; in load64()
53 w |= ( uint64_t )( *p++ ) << 56; in load64()
54 return w; in load64()
58 BLAKE2_LOCAL_INLINE(void) store32( void *dst, uint32_t w ) in store32() argument
61 memcpy(dst, &w, sizeof w); in store32()
64 *p++ = ( uint8_t )w; w >>= 8; in store32()
65 *p++ = ( uint8_t )w; w >>= 8; in store32()
66 *p++ = ( uint8_t )w; w >>= 8; in store32()
67 *p++ = ( uint8_t )w; in store32()
71 BLAKE2_LOCAL_INLINE(void) store64( void *dst, uint64_t w ) in store64() argument
74 memcpy(dst, &w, sizeof w); in store64()
77 *p++ = ( uint8_t )w; w >>= 8; in store64()
78 *p++ = ( uint8_t )w; w >>= 8; in store64()
79 *p++ = ( uint8_t )w; w >>= 8; in store64()
80 *p++ = ( uint8_t )w; w >>= 8; in store64()
81 *p++ = ( uint8_t )w; w >>= 8; in store64()
82 *p++ = ( uint8_t )w; w >>= 8; in store64()
83 *p++ = ( uint8_t )w; w >>= 8; in store64()
84 *p++ = ( uint8_t )w; in store64()
91 uint64_t w = *p++; in load48() local
92 w |= ( uint64_t )( *p++ ) << 8; in load48()
93 w |= ( uint64_t )( *p++ ) << 16; in load48()
94 w |= ( uint64_t )( *p++ ) << 24; in load48()
95 w |= ( uint64_t )( *p++ ) << 32; in load48()
96 w |= ( uint64_t )( *p++ ) << 40; in load48()
97 return w; in load48()
100 BLAKE2_LOCAL_INLINE(void) store48( void *dst, uint64_t w ) in store48() argument
103 *p++ = ( uint8_t )w; w >>= 8; in store48()
104 *p++ = ( uint8_t )w; w >>= 8; in store48()
105 *p++ = ( uint8_t )w; w >>= 8; in store48()
106 *p++ = ( uint8_t )w; w >>= 8; in store48()
107 *p++ = ( uint8_t )w; w >>= 8; in store48()
108 *p++ = ( uint8_t )w; in store48()
111 BLAKE2_LOCAL_INLINE(uint32_t) rotl32( const uint32_t w, const unsigned c ) in rotl32() argument
113 return ( w << c ) | ( w >> ( 32 - c ) ); in rotl32()
116 BLAKE2_LOCAL_INLINE(uint64_t) rotl64( const uint64_t w, const unsigned c ) in rotl64() argument
118 return ( w << c ) | ( w >> ( 64 - c ) ); in rotl64()
121 BLAKE2_LOCAL_INLINE(uint32_t) rotr32( const uint32_t w, const unsigned c ) in rotr32() argument
123 return ( w >> c ) | ( w << ( 32 - c ) ); in rotr32()
126 BLAKE2_LOCAL_INLINE(uint64_t) rotr64( const uint64_t w, const unsigned c ) in rotr64() argument
128 return ( w >> c ) | ( w << ( 64 - c ) ); in rotr64()