Cygwin and Mingw floating-point fixes.
authorAndrew Gierth <rhodiumtoad@postgresql.org>
Sat, 16 Feb 2019 01:50:16 +0000 (01:50 +0000)
committerAndrew Gierth <rhodiumtoad@postgresql.org>
Sat, 16 Feb 2019 01:50:16 +0000 (01:50 +0000)
commit72880ac182c8f3769f0be868f77166994282cb2a
treeb392d2abd92983a1d171de6a7cf6df818f572768
parent457aef0f1fd365c68fab3fa2ca3ae48c5bd230c6
Cygwin and Mingw floating-point fixes.

Deal with silent-underflow errors in float4 for cygwin and mingw by
using our strtof() wrapper; deal with misrounding errors by adding
them to the resultmap. Some slight reorganization of declarations was
done to avoid duplicating material between cygwin.h and win32_port.h.

While here, remove from the resultmap all references to
float8-small-is-zero; inspection of cygwin output suggests it's no
longer required there, and the freebsd/netbsd/openbsd entries should
no longer be necessary (these date back to c. 2000). This commit
doesn't remove the file itself nor the documentation references for
it; that will happen in a subsequent commit if all goes well.
configure
configure.in
src/include/port.h
src/include/port/cygwin.h
src/include/port/win32_port.h
src/port/strtof.c
src/test/regress/resultmap