#include #include #include "_stdlib.h" /** absolute value **/ long long int llabs(long long int j) { SIGNAL_SAFE(0); if (j == LLONG_MIN) { UNDEFINED("In call to llabs(): The absolute value of LLONG_MIN is not representable as a long long int"); return LLONG_MIN; } return j < 0 ? -j : j; } CHECK_1(long long int, 0, llabs, long long int) /*** computes the absolute value of ARGUMENT(j). ***/ /* UNDEFINED(ABS(ARGUMENT(j)) cannot be represented RETURN_SUCCESS(ABS(ARGUMENT(j)) STDC(199901) */