|
|
1.1 ! root 1: /* ! 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: * @(#)r_sign.c 5.2 7/8/85 ! 7: */ ! 8: ! 9: float r_sign(a,b) ! 10: float *a, *b; ! 11: { ! 12: float x; ! 13: x = (*a >= 0 ? *a : - *a); ! 14: return( *b >= 0 ? x : -x); ! 15: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.