4BSD/usr/src/lib/libF77/d_sign.c

Compare this file to the similar file:
Show the results in this format:

double d_sign(a,b)
double *a, *b;
{
double x;
x = (*a >= 0 ? *a : - *a);
return( *b >= 0 ? x : -x);
}