From 019c8fc6255c21e4b7aa556269ae51d355728ef6 Mon Sep 17 00:00:00 2001 From: Carl Shapiro Date: Tue, 2 Apr 2013 13:45:56 -0700 Subject: [PATCH] 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 --- src/pkg/runtime/asm_386.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.50.0