MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / safe_mul

Function safe_mul

src/util/math_util.c:24–32  ·  view source on GitHub ↗

computes x * y returns to true if x*y overflowed

Source from the content-addressed store, hash-verified

22// computes x * y
23// returns to true if x*y overflowed
24bool safe_mul
25(
26 int x, // x
27 int y, // y
28 int *z // x*y
29) {
30 ASSERT(z != NULL);
31 return __builtin_mul_overflow(x, y, z);
32}
33

Callers 1

AR_JOINFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected