Embedded Artistry Framework
Embedded Systems C++ Framework
Functions
llabs.c File Reference
#include <stdlib.h>
Include dependency graph for llabs.c:

Functions

long long llabs (long long j)
 Computes the absolute value of an long long number. More...
 

Function Documentation

◆ llabs()

long long llabs ( long long  n)

Computes the absolute value of an long long number.

Computes the absolute value of an long long number. The behavior is undefined if the result cannot be represented by the return type.

Parameters
nlong long value
Returns
The absolute value of n (i.e. |n|), if it is representable.

Referenced by check_longlong().

Here is the caller graph for this function: