> % echo 1.75e308+1.75e308 | hoc
> hoc 851: suicide: sys: trap: 19 (reserved) pc=0x00003a75

trap 19 is SIMD floating point error.  (sse or mmx.)
it's no longer reserved.  it's quite curious that x87
floating point would generate such an exception in

plan 9 gives the following error (even with sse enabled)

; echo 1.75e308+1.75e308 | hoc
hoc 17322: suicide: sys: fp: numeric overflow fppc=0x30f4 status=0xb988 
pc=0x3b65

i wonder if vx32 translates floating point to sse or mmx?
if so, the trap should be translated back.

> 
> but on linux
> 
> echo 1.75e308+1.75e308 | hoc
> +Inf

this is caused by different fcr settings: see
getfcr(2).

- erik

Reply via email to