MCPcopy Create free account
hub / github.com/WheretIB/nullc / abs

Function abs

NULLC/includes/canvas.cpp:66–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 int abs(int x){ return x < 0 ? -x : x; }
67 void swap(int &a, int &b){ int tmp = a; a = b; b = tmp; }
68
69 int round(double x){ return int(x + 0.5); }

Callers 2

CanvasDrawLineNoAAFunction · 0.70
CanvasDrawLineAAFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected