]> Cypherpunks repositories - gostls13.git/commit
runtime: add copy of math.sqrt for use by arm softfloat
authorRuss Cox <rsc@golang.org>
Mon, 12 May 2014 14:55:33 +0000 (10:55 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 12 May 2014 14:55:33 +0000 (10:55 -0400)
commitee7bb07a53da1c400f4e1130517c362e302be212
treef2a92003a991b55a3486517685b47c5c9e600eee
parent20aa947c56bd34d2c87b616bffbc4535a62ab778
runtime: add copy of math.sqrt for use by arm softfloat

If it's not used (such as on other systems or if softfloat
is disabled) the linker will discard it.

The alternative is to teach cmd/go that every binary
depends on math implicitly on arm. I started down that
path but it's too scary. If we're going to get dependencies
right we should get dependencies right.

Fixes #6994.

LGTM=bradfitz, dave
R=golang-codereviews, bradfitz, dave
CC=golang-codereviews
https://golang.org/cl/95290043
src/pkg/runtime/softfloat_arm.c
src/pkg/runtime/sqrt.go [new file with mode: 0644]