mirror of https://github.com/golang/go.git
This significantly speed-ups Trunc. Ceil/Floor are using the same instruction, so do them too. name old time/op new time/op delta Floor-6 3.33ns ± 1% 3.22ns ± 0% -3.39% (p=0.000 n=10+10) Ceil-6 3.33ns ± 1% 3.22ns ± 0% -3.16% (p=0.000 n=10+7) Trunc-6 4.83ns ± 0% 3.22ns ± 0% -33.36% (p=0.000 n=6+8) Change-Id: If848790e458eedfe38a6a0407bb4f589c68ac254 Reviewed-on: https://go-review.googlesource.com/68630 Run-TryBot: Ilya Tocar <ilya.tocar@intel.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> |
||
|---|---|---|
| .. | ||
| 386.rules | ||
| 386Ops.go | ||
| AMD64.rules | ||
| AMD64Ops.go | ||
| ARM.rules | ||
| ARM64.rules | ||
| ARM64Ops.go | ||
| ARMOps.go | ||
| MIPS.rules | ||
| MIPS64.rules | ||
| MIPS64Ops.go | ||
| MIPSOps.go | ||
| PPC64.rules | ||
| PPC64Ops.go | ||
| README | ||
| S390X.rules | ||
| S390XOps.go | ||
| dec.rules | ||
| dec64.rules | ||
| dec64Ops.go | ||
| decOps.go | ||
| generic.rules | ||
| genericOps.go | ||
| main.go | ||
| rulegen.go | ||
README
// Copyright 2015 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. This package generates opcode tables, rewrite rules, etc. for the ssa compiler. Run it with: go run *.go