diff options
Diffstat (limited to 'gnu/egcs/libf2c/libF77/r_abs.c')
-rw-r--r-- | gnu/egcs/libf2c/libF77/r_abs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/egcs/libf2c/libF77/r_abs.c b/gnu/egcs/libf2c/libF77/r_abs.c new file mode 100644 index 00000000000..7b222961d16 --- /dev/null +++ b/gnu/egcs/libf2c/libF77/r_abs.c @@ -0,0 +1,12 @@ +#include "f2c.h" + +#ifdef KR_headers +double r_abs(x) real *x; +#else +double r_abs(real *x) +#endif +{ +if(*x >= 0) + return(*x); +return(- *x); +} |