Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] Nan() is hooped?

1 view
Skip to first unread message

Lyndon Nerenberg VE6BBM/VE7TFX

unread,
Dec 13, 2009, 2:13:21 AM12/13/09
to
The following code results in:

8.out 15340: suicide: sys: fp: invalid operation fppc=0x108f status=0x8081 pc=0x00001028

#include <u.h>
#include <libc.h>

void main(int, char *) {

double foo;

foo = NaN();
exits(0);
}


erik quanstrom

unread,
Dec 13, 2009, 2:54:35 AM12/13/09
to
On Sun Dec 13 02:12:56 EST 2009, lyn...@orthanc.ca wrote:
> The following code results in:
>
> 8.out 15340: suicide: sys: fp: invalid operation fppc=0x108f status=0x8081 pc=0x00001028

http://9fans.net/archive/2007/02/182

setfcr(getfcr()&~FPINVAL);

- erik

0 new messages