From: Carl Shapiro Date: Tue, 2 Apr 2013 20:45:56 +0000 (-0700) Subject: runtime: fix a comment regarding default floating point precision X-Git-Tag: go1.1rc2~222 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=019c8fc6255c21e4b7aa556269ae51d355728ef6;p=gostls13.git runtime: fix a comment regarding default floating point precision The expected precision setting for the x87 on Win32 is 53-bit but MinGW resets the floating point unit to 64-bit. Win32 object code generally expects values to be rounded to double, not double extended, precision. R=golang-dev, khr CC=golang-dev https://golang.org/cl/8175044 --- diff --git a/src/pkg/runtime/asm_386.s b/src/pkg/runtime/asm_386.s index 805405a737..57de87b8d4 100644 --- a/src/pkg/runtime/asm_386.s +++ b/src/pkg/runtime/asm_386.s @@ -108,7 +108,7 @@ TEXT runtime·breakpoint(SB),7,$0 RET TEXT runtime·asminit(SB),7,$0 - // Linux, Windows start the FPU in extended double precision. + // Linux and MinGW start the FPU in extended double precision. // Other operating systems use double precision. // Change to double precision to match them, // and to match other hardware that only has double.