Path: utzoo!attcan!uunet!dino!ux1.cso.uiuc.edu!uxc.cso.uiuc.edu!uxc.cso.uiuc.edu!m.cs.uiuc.edu!kenny From: kenny@m.cs.uiuc.edu Newsgroups: comp.lang.c Subject: Re: optimization (was: Re: swap(x,y)) Message-ID: <4700045@m.cs.uiuc.edu> Date: 22 Sep 89 23:23:28 GMT References: <14357@bloom-beacon.MIT.EDU> Lines: 17 Nf-ID: #R:bloom-beacon.MIT.EDU:14357:m.cs.uiuc.edu:4700045:000:746 Nf-From: m.cs.uiuc.edu!kenny Sep 22 12:21:00 1989 >(I wonder if SIGN is used in any FORTRAN program outside a test suite :-) You betcha, and it's used outside Fortran, also. There's no nice way to do this one simply, either; you *don't* want to do a multiply just to copy a sign. I just grepped for copysign in the 4.3BSD math library, and found fifty-odd uses there alone. | / o Kevin Kenny (217) 333-5821 |< /) | | | |/\ Department of Computer Science o , o , | \ X_ \/ | | | University of Illinois 40 07 N 88 13 W kenny@cs.uiuc.edu 1304 W. Springfield Ave. uunet!uiucdcs!kenny Urbana, IL 61801 AD ASTRA PER ARDUA k-kenny@uiuc.edu kenny%cs@uiucvmd.bitnet