summaryrefslogtreecommitdiff
path: root/src/stdlib/llabs.c
blob: 9bf435bdf2d3e04c3c436b542422b890dfedac1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#if 0

#include <stdlib.h>
#include <limits.h>

/** absolute value **/

long long int llabs(long long int j)
{
	if (j == LLONG_MIN) {
		/* undefined */
		return LLONG_MIN;
	}

	return j < 0 ? -j : j;
}

/***
computes the absolute value of ARGUMENT(j).
***/

/*
UNDEFINED(ABS(ARGUMENT(j)) cannot be represented
RETURN_SUCCESS(ABS(ARGUMENT(j))
STDC(199901)
*/


#endif