Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FirebirdSQL/firebird
/ abs
Method
abs
src/common/Int128.cpp:188–196 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
186
}
187
188
Int128 Int128::abs() const
189
{
190
if (compare(MIN_Int128) == 0)
191
overflow();
192
193
Int128 rc;
194
rc.v = v < 0 ? -v : v;
195
return rc;
196
}
197
198
Int128 Int128::neg() const
199
{
Callers
1
evlAbs
Function · 0.45
Calls
1
compare
Class · 0.50
Tested by
no test coverage detected