MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / read32

Function read32

3rd/mimalloc-2.0.9/src/random.c:96–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96static inline uint32_t read32(const uint8_t* p, size_t idx32) {
97 const size_t i = 4*idx32;
98 return ((uint32_t)p[i+0] | (uint32_t)p[i+1] << 8 | (uint32_t)p[i+2] << 16 | (uint32_t)p[i+3] << 24);
99}
100
101static void chacha_init(mi_random_ctx_t* ctx, const uint8_t key[32], uint64_t nonce)
102{

Callers 1

chacha_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected