d_sign X
1: /* 2: * "@(#)d_sign.c 1.1" 3: */ 4: 5: double d_sign(a,b) 6: double *a, *b; 7: { 8: double x; 9: x = (*a >= 0 ? *a : - *a); 10: return( *b >= 0 ? x : -x); 11: }