aboutsummaryrefslogtreecommitdiff
path: root/src/bytes
diff options
context:
space:
mode:
authorMichael Munday <mike.munday@ibm.com>2017-09-14 20:00:02 +0100
committerMichael Munday <mike.munday@ibm.com>2017-09-20 10:01:35 +0000
commit7582494e063e12dddc5c99a831d0c28cda2df635 (patch)
treec9be73c93e8fe86f0e7dde8dd3a4b843c7fa0ff0 /src/bytes
parent8802b188c6303b0c03f200bb1489237cc40b968e (diff)
downloadgo-7582494e063e12dddc5c99a831d0c28cda2df635.tar.xz
cmd/compile: add s390x intrinsics for Ceil, Floor, Round and Trunc
Ceil, Floor and Trunc are pre-existing intrinsics. Round is a new function and has been added as an intrinsic in this CL. All of the functions can be implemented as a single 'LOAD FP INTEGER' instruction, FIDBR, on s390x. name old time/op new time/op delta Ceil 2.34ns ± 0% 0.85ns ± 0% -63.74% (p=0.000 n=5+4) Floor 2.33ns ± 0% 0.85ns ± 1% -63.35% (p=0.008 n=5+5) Round 4.23ns ± 0% 0.85ns ± 0% -79.89% (p=0.000 n=5+4) Trunc 2.35ns ± 0% 0.85ns ± 0% -63.83% (p=0.029 n=4+4) Change-Id: Idee7ba24a2899d12bf9afee4eedd6b4aaad3c510 Reviewed-on: https://go-review.googlesource.com/63890 Run-TryBot: Michael Munday <mike.munday@ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/bytes')
0 files changed, 0 insertions, 0 deletions