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

Function store64

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

Source from the content-addressed store, hash-verified

69}
70
71static inline void store64( void *dst, uint64_t w )
72{
73#if defined(NATIVE_LITTLE_ENDIAN) && !defined(HAVE_ALIGNED_ACCESS_REQUIRED)
74 *( uint64_t * )( dst ) = w;
75#else
76 uint8_t *p = ( uint8_t * )dst;
77 *p++ = ( uint8_t )w; w >>= 8;
78 *p++ = ( uint8_t )w; w >>= 8;
79 *p++ = ( uint8_t )w; w >>= 8;
80 *p++ = ( uint8_t )w; w >>= 8;
81 *p++ = ( uint8_t )w; w >>= 8;
82 *p++ = ( uint8_t )w; w >>= 8;
83 *p++ = ( uint8_t )w; w >>= 8;
84 *p++ = ( uint8_t )w;
85#endif
86}
87
88static inline uint64_t load48( const void *src )
89{

Callers 6

blake2b_initFunction · 0.85
blake2b_init_keyFunction · 0.85
blake2b_finalFunction · 0.85
blake2bp_init_leafFunction · 0.85
blake2bp_init_rootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected