plan9fox/sys
cinap_lenrek 974c4fc768 awk: temporarily fix for NaN() exceptions on 386
problem is NaN() produces a SNaN, not a QNaN... and on the 387,
storing 80 bit SNaN in register to a 64-bit memory destination
traps.

SNaN/QNaN encoding is machine specific. mips has the qiet/signaling
bit inverted.

disabling fp exception in main() now, but that sucks.

i think the best solution would be to not even call strtod() in
is_number() but just write a regex or a little state machine that
will only accept numbers without nan and ±inf.

that might even make it faster and is more robust than relying on
the os's strtod() details.
2016-04-30 05:12:20 +02:00
..
doc closed spew branch 2016-04-28 20:52:36 +02:00
games/lib fortunes: Ah, nice. the woodpeckers are back. 2016-03-30 21:14:39 -04:00
include remove ape/regexp.h, remove leftover #pragma lib oldlibregexp.$O from upas/bayes/regexp.h 2016-04-28 21:22:26 +02:00
lib Subject: typo: ee corrected (thanks Eric Lindblad) 2016-04-13 15:54:31 +02:00
man rune(2): add Runeerror reencoding considerations in BUGS section (thanks aiju) 2016-04-28 01:53:09 +02:00
src awk: temporarily fix for NaN() exceptions on 386 2016-04-30 05:12:20 +02:00