MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / mul_hi_lo

Function mul_hi_lo

src/framework/sampling/torch_random.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 uint32_t z;
31 uint32_t w;
32};
33
34void mul_hi_lo(uint32_t lhs, uint32_t rhs, uint32_t & hi, uint32_t & lo) {
35 const uint64_t product = static_cast<uint64_t>(lhs) * static_cast<uint64_t>(rhs);
36 lo = static_cast<uint32_t>(product);
37 hi = static_cast<uint32_t>(product >> 32U);
38}
39

Callers 1

philox_roundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected