don't use 'cc -f' with compilers that don't do automatic double to
[unix-history] / usr / src / usr.bin / f77 / libF77 / i_sign.c
CommitLineData
3728ad79 1/*
121fdf6e
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 * @(#)i_sign.c 5.1 %G%
3728ad79
DW
7 */
8
9long int i_sign(a,b)
10long int *a, *b;
11{
12long int x;
13x = (*a >= 0 ? *a : - *a);
14return( *b >= 0 ? x : -x);
15}