]> Cypherpunks repositories - gostls13.git/commit
runtime: replace divide with multiply in runtime.usleep on arm
authorRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 14:54:53 +0000 (10:54 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 15:48:29 +0000 (15:48 +0000)
commitc9d2c7f0d26a9619069a3cb2291333174b6db63f
treeb7f8960efe1ef2cccb7c5e495f5558ffc5be24cb
parenta1e422071cd8122b4b93bbdeb02d0ea646519955
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>
src/runtime/asm_arm.s
src/runtime/export_arm_test.go [new file with mode: 0644]
src/runtime/sys_arm.go
src/runtime/sys_darwin_arm.s
src/runtime/sys_freebsd_arm.s
src/runtime/sys_linux_arm.s
src/runtime/sys_netbsd_arm.s
src/runtime/sys_openbsd_arm.s
src/runtime/vlop_arm_test.go