URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [builtins/] [lib/] [abs.c] - Rev 816
Compare with Previous | Blame | View Log
extern int inside_main; extern void abort (void); #ifdef __OPTIMIZE__ #define ABORT_INSIDE_MAIN do { if (inside_main) abort (); } while (0) #else #define ABORT_INSIDE_MAIN do { } while (0) #endif typedef __INTMAX_TYPE__ intmax_t; int abs (int x) { ABORT_INSIDE_MAIN; return x < 0 ? -x : x; } long labs (long x) { ABORT_INSIDE_MAIN; return x < 0 ? -x : x; } long long llabs (long long x) { ABORT_INSIDE_MAIN; return x < 0 ? -x : x; } intmax_t imaxabs (intmax_t x) { ABORT_INSIDE_MAIN; return x < 0 ? -x : x; }