1
0
mirror of https://github.com/golang/go synced 2024-11-18 22:24:50 -07:00
go/test/codegen/bits.go
Alberto Donizetti 644b2dafc2 test/codegen: add copyright headers to new codegen files
Change-Id: I9fe6572d1043ef9ee09c0925059ded554ad24c6b
Reviewed-on: https://go-review.googlesource.com/98215
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-02 20:13:13 +00:00

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
}