mirror of
https://github.com/golang/go.git
synced 2026-04-03 01:40:30 +09:00
Change-Id: Ia7a955833d761e08c1b8081fb29a2e6317de004c Reviewed-on: https://go-review.googlesource.com/c/go/+/760681 Auto-Submit: Keith Randall <khr@google.com> Reviewed-by: Junyang Shao <shaojunyang@google.com> Reviewed-by: Paul Murphy <paumurph@redhat.com> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
14 lines
304 B
Go
14 lines
304 B
Go
// asmcheck
|
|
|
|
// Copyright 2024 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.
|
|
|
|
package codegen
|
|
|
|
func calc(a uint64) uint64 {
|
|
v := a >> 20 & 0x7f
|
|
// amd64: `SHRQ \$17, AX$` `ANDL \$1016, AX$`
|
|
return v << 3
|
|
}
|