MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / mul_saturate

Function mul_saturate

util/compiler.cpp:57–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57uint64_t mul_saturate(uint64_t a, uint64_t b) {
58 return __umulh(a, b) ? UINT64_MAX : a * b;
59}
60#else
61uint64_t add_saturate(uint64_t a, uint64_t b) {
62 unsigned long long res;

Callers 2

getMaxAllocSizeMethod · 0.85
getMaxGEPOffsetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected