Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
CanvasDrawLineNoAA
Function · 0.70
CanvasDrawLineAA
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected