1*47940Sbostic /*- 2*47940Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*47940Sbostic * All rights reserved. 422900Skre * 5*47940Sbostic * %sccs.include.proprietary.c% 610492Sdlw */ 710492Sdlw 8*47940Sbostic #ifndef lint 9*47940Sbostic static char sccsid[] = "@(#)h_sign.c 5.2 (Berkeley) 04/12/91"; 10*47940Sbostic #endif /* not lint */ 11*47940Sbostic h_sign(a,b)1210492Sdlwshort h_sign(a,b) 1310492Sdlw short *a, *b; 1410492Sdlw { 1510492Sdlw short x; 1610492Sdlw x = (*a >= 0 ? *a : - *a); 1710492Sdlw return( *b >= 0 ? x : -x); 1810492Sdlw } 19