xref: /original-bsd/usr.bin/f77/libF77/i_sign.c (revision a1c2194a)
1 /*-
2  * Copyright (c) 1980 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)i_sign.c	5.2 (Berkeley) 04/12/91";
10 #endif /* not lint */
11 
12 long int i_sign(a,b)
13 long int *a, *b;
14 {
15 long int x;
16 x = (*a >= 0 ? *a : - *a);
17 return( *b >= 0 ? x : -x);
18 }
19