mirror of
https://github.com/golang/go.git
synced 2026-04-03 09:49:56 +09:00
goos: linux
goarch: riscv64
pkg: math
│ math-old │ math-new │
│ sec/op │ sec/op vs base │
Exp-64 41.21n ± 0% 32.03n ± 0% -22.28% (p=0.000 n=8)
Exp2-64 38.86n ± 1% 28.18n ± 0% -27.49% (p=0.000 n=8)
Exp2Go-64 40.36n ± 1% 40.51n ± 1% +0.36% (p=0.049 n=8)
Frexp-64 5.681n ± 1% 5.446n ± 0% -4.14% (p=0.000 n=8)
Ldexp-64 7.676n ± 1% 7.555n ± 0% -1.58% (p=0.001 n=8)
Change-Id: Ic122bf9598302f947c6dbf751db591f403c50373
Reviewed-on: https://go-review.googlesource.com/c/go/+/754687
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Meng Zhuo <mengzhuo1203@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
12 lines
274 B
Go
12 lines
274 B
Go
// Copyright 2021 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.
|
|
|
|
//go:build arm64 || loong64 || riscv64
|
|
|
|
package math
|
|
|
|
const haveArchExp2 = true
|
|
|
|
func archExp2(x float64) float64
|