MCPcopy 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
188Int128 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
198Int128 Int128::neg() const
199{

Callers 1

evlAbsFunction · 0.45

Calls 1

compareClass · 0.50

Tested by

no test coverage detected