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

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

/*
 *	"@(#)d_sign.c	1.1"
 */

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