Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ncar!tank!oddjob!gargoyle!att!whuts!homxb!hropus!ki4pv!cdis-1!tanner From: tanner@cdis-1.uucp (Dr. T. Andrews) Newsgroups: comp.lang.c Subject: Re: "Numerical Recipes in C" is nonportable code Summary: that is a \fBmost\fP curious "floating exception" Message-ID: <7076@cdis-1.uucp> Date: 8 Sep 88 13:41:00 GMT References: <664@lindy.Stanford.EDU> <6758@megaron.arizona.edu> <718@gtx.com> <13402@mimsy.UUCP> Organization: CompuData Inc., DeLand Lines: 17 In article <13402@mimsy.UUCP>, chris@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