Re: [9fans] signal.h in APE for newbies

2008-07-04 Thread Charles Forsyth
When I trigger a division by zero the handler is not called, I just get trap 19 message. if i do a floating-point division by zero, the SIGFPE signal handler is called, because ape's signal recognises the initial sys: fp: . (ie, it works for me.) it doesn't work for an integer division by

Re: [9fans] signal.h in APE for newbies

2008-07-04 Thread Russ Cox
Any chance this is some 9vx issue? I tried the test code below it worked in 9grid.jp ,but gave the following message in 9vx You are caught in quite a tangled web. The hardware gets a floating point trap, Linux/BSD/OS X turns it into a SIGFPE, vx32 turns it back into a hardware trap, Plan 9

Re: [9fans] signal.h in APE for newbies

2008-07-04 Thread Charles Forsyth
Any chance this [fp signals in APE] is some 9vx issue? vx32 converts SIGFPE to the SIMD SSE/SSE2 trap 19, but 9vx expects only x87. i had wondered the other day whether there were AMD/Intel processors in common use that supported x87 but not SSE/SSE2. should 8c start using SSE as the plan 9

Re: [9fans] signal.h in APE for newbies

2008-07-04 Thread Charles Forsyth
it probablly could. but i worry about low-power x86 devices. perhaps floating point is just not an issue on them? do they support fp at all, or just x87 not sse? i can't remember what is on the little soekris boards

Re: [9fans] signal.h in APE for newbies

2008-07-04 Thread erik quanstrom
it probablly could. but i worry about low-power x86 devices. perhaps floating point is just not an issue on them? do they support fp at all, or just x87 not sse? i can't remember what is on the little soekris boards according to wikipedia, geode before the nx don't support sse, but the