mirror of
https://github.com/golang/go
synced 2024-11-24 19:10:15 -07:00
runtime/linux/386: set FPU to 64-bit precision
Fixes #550. R=r CC=golang-dev https://golang.org/cl/3469044
This commit is contained in:
parent
84713d46f6
commit
cc1556d9a2
@ -5,5 +5,13 @@
|
||||
// Darwin and Linux use the same linkage to main
|
||||
|
||||
TEXT _rt0_386_linux(SB),7,$0
|
||||
// Linux starts 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.
|
||||
PUSHL $0x27F
|
||||
FLDCW 0(SP)
|
||||
POPL AX
|
||||
|
||||
JMP _rt0_386(SB)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user