MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / read32

Function read32

system/lib/mimalloc/src/random.c:87–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static inline uint32_t read32(const uint8_t* p, size_t idx32) {
88 const size_t i = 4*idx32;
89 return ((uint32_t)p[i+0] | (uint32_t)p[i+1] << 8 | (uint32_t)p[i+2] << 16 | (uint32_t)p[i+3] << 24);
90}
91
92static void chacha_init(mi_random_ctx_t* ctx, const uint8_t key[32], uint64_t nonce)
93{

Callers 1

chacha_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected