aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/imaxabs.c
blob: dd4e01c05848681a7fff58a94c27e9f9073b0612 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <inttypes.h>

intmax_t imaxabs(intmax_t a)
{
	return a>0 ? a : -a;
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif