https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63395
--- Comment #10 from Mikael Pettersson <mikpelinux at gmail dot com> --- I strongly suspect 32-bit Cygwin uses x87 by default, while 64-bit Cygwin probably uses SSE2 by default. These two FP implementations are very different, and it's not at all surprising to see different results from them. Try compiling with -mpc64 on 32-bit Cygwin.