-
Damien George authored
Nan and inf (signed and unsigned) are also handled correctly by using signbit (they were also handled correctly with "val<0", but that didn't handle -0.0 correctly). A test case is added for this behaviour. Taken as-is from upstream b3eadf3f3d0cfd4c56a519ae289288ee829229a5
412104df