diff options
| author | Michael Munday <munday@ca.ibm.com> | 2016-08-26 11:39:47 -0400 |
|---|---|---|
| committer | Michael Munday <munday@ca.ibm.com> | 2016-08-26 17:27:13 +0000 |
| commit | 9f7ea616742f8d58ecc140afcb0fa53bcb84fe9b (patch) | |
| tree | f9392e941446d4fed75eb4dbf25a601f5bbc9813 /src/cmd | |
| parent | d2dd0dfda813deb27415962656e7a6496170cef3 (diff) | |
| download | go-9f7ea616742f8d58ecc140afcb0fa53bcb84fe9b.tar.xz | |
math: optimize Ceil, Floor and Trunc on s390x
Use the FIDBR instruction to round floating-point numbers to integers.
name old time/op new time/op delta
Ceil 14.1ns ± 0% 3.0ns ± 0% -78.89% (p=0.000 n=10+10)
Floor 6.42ns ± 0% 3.03ns ± 0% -52.80% (p=0.000 n=10+10)
Trunc 6.67ns ± 0% 3.03ns ± 0% -54.57% (p=0.000 n=10+9)
Change-Id: I3b416f6d0bccaaa9b547de86356471365862399c
Reviewed-on: https://go-review.googlesource.com/27827
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd')
0 files changed, 0 insertions, 0 deletions
