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

fix build tags and become a module #5

Merged
merged 3 commits into from
Mar 16, 2022
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
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
language: go

go:
- "1.6.x"
- "1.7.x"
- "1.8.x"
- "1.9.x"
- "1.10.x"
- "1.16.x"
- "1.17.x"
- "1.18.x"

env:
- TRAVIS_GOARCH=amd64
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/aead/siphash

go 1.17
3 changes: 2 additions & 1 deletion siphash_386.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Use of this source code is governed by a license that can be
// found in the LICENSE file.

// +build 386, !gccgo, !appengine
//go:build 386 && !gccgo && !appengine && !nacl
// +build 386,!gccgo,!appengine,!nacl

package siphash

Expand Down
3 changes: 2 additions & 1 deletion siphash_386.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Use of this source code is governed by a license that can be
// found in the LICENSE file.

// +build 386, !gccgo, !appengine
//go:build 386 && !gccgo && !appengine && !nacl
// +build 386,!gccgo,!appengine,!nacl

#define ROTL(n, t, v) \
MOVO v, t; \
Expand Down
3 changes: 2 additions & 1 deletion siphash_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Use of this source code is governed by a license that can be
// found in the LICENSE file.

// +build amd64, !gccgo, !appengine
//go:build amd64 && !gccgo && !appengine && !nacl
// +build amd64,!gccgo,!appengine,!nacl

package siphash

Expand Down
3 changes: 2 additions & 1 deletion siphash_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Use of this source code is governed by a license that can be
// found in the LICENSE file.

// +build amd64, !gccgo, !appengine
//go:build amd64 && !gccgo && !appengine && !nacl
// +build amd64,!gccgo,!appengine,!nacl

#define ROUND(v0, v1, v2, v3) \
ADDQ v1, v0; \
Expand Down
1 change: 1 addition & 0 deletions siphash_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a license that can be
// found in the LICENSE file.

//go:build (!amd64 && !386) || gccgo || appengine || nacl
// +build !amd64,!386 gccgo appengine nacl

package siphash
Expand Down