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

Function load64

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

Source from the content-addressed store, hash-verified

38}
39
40static inline uint64_t load64( const void *src )
41{
42#if defined(NATIVE_LITTLE_ENDIAN) && !defined(HAVE_ALIGNED_ACCESS_REQUIRED)
43 return *( uint64_t * )( src );
44#else
45 const uint8_t *p = ( uint8_t * )src;
46 uint64_t w = *p++;
47 w |= ( uint64_t )( *p++ ) << 8;
48 w |= ( uint64_t )( *p++ ) << 16;
49 w |= ( uint64_t )( *p++ ) << 24;
50 w |= ( uint64_t )( *p++ ) << 32;
51 w |= ( uint64_t )( *p++ ) << 40;
52 w |= ( uint64_t )( *p++ ) << 48;
53 w |= ( uint64_t )( *p++ ) << 56;
54 return w;
55#endif
56}
57
58static inline void store32( void *dst, uint32_t w )
59{

Callers 2

blake2b_init_paramFunction · 0.85
blake2b_compressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected