fabs(x) vs. (x) < 0 ? -(x) : (x)

gwyn at brl-smoke.UUCP gwyn at brl-smoke.UUCP
Sat Feb 14 06:59:35 AEST 1987


In article <645 at mcgill-vision.UUCP> mouse at mcgill-vision.UUCP (der Mouse) writes:
>I would really like a C compiler that produces anything that could
>*touch* the "Kahan's magic square root" code of the 4.3 VAX libm.

The UNIX System V Release 2.0 sqrt routine, written in C, runs about
half as fast as the 4.3BSD assembly code, and is about twice as accurate.

Just for information..



More information about the Comp.lang.c mailing list