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