]> Cypherpunks repositories - gostls13.git/commit
runtime: on 386, fix FP control word on all threads, not just initial thread
authorRuss Cox <rsc@golang.org>
Tue, 14 Feb 2012 06:23:15 +0000 (01:23 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 14 Feb 2012 06:23:15 +0000 (01:23 -0500)
commit1707a9977f2272333b86853c2ac09a3bdba9915e
tree888a953f75324f9be76a10a3fa7ca1ee3c05956f
parente11632ee0044474d3e767192d6f61e6ab010c48d
runtime: on 386, fix FP control word on all threads, not just initial thread

It is possible that Linux and Windows copy the FP control word
from the parent thread when creating a new thread.  Empirically,
Darwin does not.  Reset the FP control world in all cases.

Enable the floating-point strconv test.

Fixes #2917 (again).

R=golang-dev, r, iant
CC=golang-dev
https://golang.org/cl/5660047
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/asm_arm.s
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/strconv/atof_test.go