MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / Iadd

Function Iadd

extlibs/lua/src/lmathlib.c:401–406  ·  view source on GitHub ↗

return i1 + i2 */

Source from the content-addressed store, hash-verified

399
400/* return i1 + i2 */
401static Rand64 Iadd (Rand64 i1, Rand64 i2) {
402 Rand64 result = packI(i1.h + i2.h, i1.l + i2.l);
403 if (trim32(result.l) < trim32(i1.l)) /* carry? */
404 result.h++;
405 return result;
406}
407
408/* return i * 5 */
409static Rand64 times5 (Rand64 i) {

Callers 2

times5Function · 0.85
times9Function · 0.85

Calls 1

packIFunction · 0.85

Tested by

no test coverage detected