5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
13 long long int llabs( long long int j )
15 return ( j >= 0 ) ? j : -j;
21 #include <_PDCLIB_test.h>
26 TESTCASE( llabs( 0ll ) == 0 );
27 TESTCASE( llabs( LLONG_MAX ) == LLONG_MAX );
28 TESTCASE( llabs( LLONG_MIN + 1 ) == -( LLONG_MIN + 1 ) );