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/sys_arm.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/sys_arm.go')
-rw-r--r-- | src/runtime/sys_arm.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/sys_arm.go b/src/runtime/sys_arm.go index 6e50d21098..d2e69146af 100644 --- a/src/runtime/sys_arm.go +++ b/src/runtime/sys_arm.go @@ -33,3 +33,6 @@ func rewindmorestack(buf *gobuf) { print("runtime: pc=", hex(buf.pc), " ", hex(inst), "\n") throw("runtime: misuse of rewindmorestack") } + +// for testing +func usplit(x uint32) (q, r uint32) |