mirror of
https://github.com/golang/go
synced 2024-11-18 22:24:50 -07:00
644b2dafc2
Change-Id: I9fe6572d1043ef9ee09c0925059ded554ad24c6b Reviewed-on: https://go-review.googlesource.com/98215 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
15 lines
290 B
Go
15 lines
290 B
Go
// asmcheck
|
|
|
|
// Copyright 2018 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 bitcheck(a, b uint64) int {
|
|
if a&(1<<(b&63)) != 0 { // amd64:"BTQ"
|
|
return 1
|
|
}
|
|
return -1
|
|
}
|