summaryrefslogtreecommitdiff
path: root/gnu/egcs/libf2c/libF77/i_sign.c
blob: 94009b86e6fa898e23f123d5b3c47f6f5d71fb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}