Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
57
uint64_t mul_saturate(uint64_t a, uint64_t b) {
58
return __umulh(a, b) ? UINT64_MAX : a * b;
59
}
60
#else
61
uint64_t add_saturate(uint64_t a, uint64_t b) {
62
unsigned long long res;
Callers
2
getMaxAllocSize
Method · 0.85
getMaxGEPOffset
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected