> NaN(2) and Inf(2) are not constant functions. the result depends on > the settings of the fcr (getfcr(2)). Really? My reading of /sys/src/libc/port/nan.c makes me think NaN(2) returns a uvlong value of 0x7ff0000000000001, miss I something?
On the other hand, the assignment of NaN to a double depends on the fcr. (And on my machine, curiously changes 0x7ff0...1 to 0x7ff8...1). So if I think of enum definitions as assignment, it makes sense, mostly. thanks, tristan -- All original matter is hereby placed immediately under the public domain.