WIP: add an initial skeleton for a real scsi.device based upon the ata device impleme...
[AROS.git] / compiler / stdc / imaxabs.c
blob7c05d46746cb288f7a25d4a344e90ddf5f2ee76f
1 /*
2 Copyright © 2018, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function imaxabs().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <inttypes.h>
13 intmax_t imaxabs (
15 /* SYNOPSIS */
16 intmax_t j)
18 /* FUNCTION
19 Compute the absolute value of an integer "j".
21 INPUTS
23 RESULT
24 Return the absolute value.
26 NOTES
28 EXAMPLE
30 BUGS
32 SEE ALSO
34 INTERNALS
36 ******************************************************************************/
38 return j>0 ? j : -j;