"Numerical Recipes in C" is nonportable code
Dr. T. Andrews
tanner at cdis-1.uucp
Thu Sep 8 23:41:00 AEST 1988
In article <13402 at mimsy.UUCP>, chris at mimsy.UUCP (Chris Torek) writes:
) main()
) {
) char *p;
)
) p = (char *)0x7fffffff;
) asm("bispsw $0x20"); /* PSL_IV */
) p++;
) }
) This program, when run, aborts with a `floating exception' (SIGFPE).
I may not be the first one to cast a stone at this example, but have
you considered the possibility that a floating point exception is
manifestly the \fBwrong\fP thing to do in your example? There is no
floating-point math in there. Complain to your vendor.
--
...!bikini.cis.ufl.edu!ki4pv!cdis-1!tanner ...!bpa!cdin-1!cdis-1!tanner
or... {allegra killer gatech!uflorida decvax!ucf-cs}!ki4pv!cdis-1!tanner
More information about the Comp.lang.c
mailing list