1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6 /*
7 This source code was extracted from the Q8 package created and
8 placed in the PUBLIC DOMAIN by Doug Gwyn <gwyn@arl.mil>
9 last edit: 1999/11/05 gwyn@arl.mil
10
11 Implements subclause 7.8.2 of ISO/IEC 9899:1999 (E).
12
13 This particular implementation requires the matching <inttypes.h>.
14 */
15 #define __CRT__NO_INLINE
16 #include <inttypes.h>
17
18 intmax_t
imaxabs(intmax_t _j)19 imaxabs (intmax_t _j)
20 { return _j >= 0 ? _j : -_j; }
21
22 long long __attribute__ ((alias ("imaxabs"))) llabs (long long);
23