MCPcopy Create free account
hub / github.com/F-Stack/f-stack / store32

Function store32

freebsd/contrib/libb2/blake2-impl.h:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static inline void store32( void *dst, uint32_t w )
59{
60#if defined(NATIVE_LITTLE_ENDIAN) && !defined(HAVE_ALIGNED_ACCESS_REQUIRED)
61 *( uint32_t * )( dst ) = w;
62#else
63 uint8_t *p = ( uint8_t * )dst;
64 *p++ = ( uint8_t )w; w >>= 8;
65 *p++ = ( uint8_t )w; w >>= 8;
66 *p++ = ( uint8_t )w; w >>= 8;
67 *p++ = ( uint8_t )w;
68#endif
69}
70
71static inline void store64( void *dst, uint64_t w )
72{

Callers 10

blake2b_initFunction · 0.85
blake2b_init_keyFunction · 0.85
blake2s_finalFunction · 0.85
blake2s_initFunction · 0.85
blake2s_init_keyFunction · 0.85
blake2s_finalFunction · 0.85
blake2bp_init_leafFunction · 0.85
blake2bp_init_rootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected