OSDN Git Service

df15673a41c4adab35e4d5c363f0112087f9c121
[mingw/mingw-org-wsl.git] / mingwrt / mingwex / imaxabs.c
1 /*
2     This source code was extracted from the Q8 package created and
3     placed in the PUBLIC DOMAIN by Doug Gwyn <gwyn@arl.mil>
4     last edit:  1999/11/05      gwyn@arl.mil
5
6         Implements subclause 7.8.2 of ISO/IEC 9899:1999 (E).
7
8         This particular implementation requires the matching <inttypes.h>.
9 */
10
11 #include        <inttypes.h>
12
13 intmax_t
14 imaxabs (intmax_t _j)
15   { return      _j >= 0 ? _j : -_j; }
16
17 long long __attribute__ ((alias ("imaxabs")))   llabs (long long);