Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honor purego build tag #11

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions and_amd64.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !purego

package and

func and(dst, a, b []byte) {
Expand Down
2 changes: 2 additions & 0 deletions and_amd64.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Code generated by command: go run src.go -out ../../and_amd64.s -stubs ../../and_stubs_amd64.go -pkg and. DO NOT EDIT.

//go:build !purego

#include "textflag.h"

// func andAVX2(dst *byte, a *byte, b *byte, l uint64)
Expand Down
2 changes: 2 additions & 0 deletions and_arm64.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !purego

package and

//go:noescape
Expand Down
2 changes: 2 additions & 0 deletions and_stubs_amd64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion detect_axv2_never.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !amd64
//go:build !amd64 || purego

package and

Expand Down
2 changes: 1 addition & 1 deletion detect_axv2_runtime.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build amd64 && !amd64.v3
//go:build amd64 && !amd64.v3 && !purego

package and

Expand Down
2 changes: 1 addition & 1 deletion detect_popcnt_never.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !amd64
//go:build !amd64 || purego

package and

Expand Down
2 changes: 1 addition & 1 deletion detect_popcnt_runtime.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build amd64 && !amd64.v2
//go:build amd64 && !amd64.v2 && !purego

package and

Expand Down
2 changes: 1 addition & 1 deletion fallback.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !amd64 && !arm64
//go:build (!amd64 && !arm64) || purego

package and

Expand Down
2 changes: 2 additions & 0 deletions internal/asm/src.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
)

func main() {
ConstraintExpr("!purego")

gen("and", VPAND, "Sets dst to the bitwise and of a and b")
gen("or", VPOR, "Sets dst to the bitwise or of a and b")
gen("andNot", VPANDN, "Sets dst to the bitwise and of not(a) and b")
Expand Down
Loading