diff options
author | Russ Cox <rsc@golang.org> | 2015-07-30 10:54:53 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2015-07-30 15:48:29 +0000 |
commit | c9d2c7f0d26a9619069a3cb2291333174b6db63f (patch) | |
tree | b7f8960efe1ef2cccb7c5e495f5558ffc5be24cb /src/runtime/export_arm_test.go | |
parent | a1e422071cd8122b4b93bbdeb02d0ea646519955 (diff) | |
download | go-c9d2c7f0d26a9619069a3cb2291333174b6db63f.tar.gz go-c9d2c7f0d26a9619069a3cb2291333174b6db63f.zip |
runtime: replace divide with multiply in runtime.usleep on arm
We want to adjust the DIV calling convention to use m,
and usleep can be called without an m, so switch to a
multiplication by the reciprocal (and test).
Step toward a fix for #6699 and #10486.
Change-Id: Iccf76a18432d835e48ec64a2fa34a0e4d6d4b955
Reviewed-on: https://go-review.googlesource.com/12898
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/export_arm_test.go')
-rw-r--r-- | src/runtime/export_arm_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/export_arm_test.go b/src/runtime/export_arm_test.go new file mode 100644 index 0000000000..446d26465c --- /dev/null +++ b/src/runtime/export_arm_test.go @@ -0,0 +1,9 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Export guts for testing. + +package runtime + +var Usplit = usplit |