Fix botch in previous delta
[unix-history] / usr / src / usr.bin / f77 / libF77 / d_sign.c
CommitLineData
43e8ae4b 1/*
6cb9a2a2
RE
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 * @(#)d_sign.c 5.1 %G%
43e8ae4b
DW
7 */
8
9double d_sign(a,b)
10double *a, *b;
11{
12double x;
13x = (*a >= 0 ? *a : - *a);
14return( *b >= 0 ? x : -x);
15}