MCPcopy Create free account
hub / github.com/capstone-engine/capstone / abs64

Function abs64

MathExtras.h:401–403  ·  view source on GitHub ↗

abs64 - absolute value of a 64-bit int. Not all environments support "abs" on whatever their name for the 64-bit int type is. The absolute value of the largest negative number is undefined, as with "abs".

Source from the content-addressed store, hash-verified

399/// "abs" on whatever their name for the 64-bit int type is. The absolute
400/// value of the largest negative number is undefined, as with "abs".
401static inline int64_t abs64(int64_t x) {
402 return (x < 0) ? -x : x;
403}
404
405/// \brief Sign extend number in the bottom B bits of X to a 32-bit int.
406/// Requires 0 < B <= 32.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…