Commit 019c8fc6 authored by Carl Shapiro's avatar Carl Shapiro

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
parent 751a24e8
...@@ -108,7 +108,7 @@ TEXT runtime·breakpoint(SB),7,$0 ...@@ -108,7 +108,7 @@ TEXT runtime·breakpoint(SB),7,$0
RET RET
TEXT runtime·asminit(SB),7,$0 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. // Other operating systems use double precision.
// Change to double precision to match them, // Change to double precision to match them,
// and to match other hardware that only has double. // and to match other hardware that only has double.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment