Skip to content

Commit

Permalink
remove LDFLAGS -mavx and fix build constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
knarz committed Jun 25, 2018
1 parent 765b445 commit 686fae6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pow_avx.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// +build avx
// +build linux,amd64
// +build linux amd64

/*
MIT License
Expand Down Expand Up @@ -27,7 +27,7 @@ SOFTWARE.

package giota

// #cgo LDFLAGS: -mavx
// #cgo LDFLAGS:
// #cgo CFLAGS: -mavx -Wall
/*
#include <stdio.h>
Expand Down Expand Up @@ -335,8 +335,8 @@ func PowAVX(trytes Trytes, mwm int) (Trytes, error) {
countAVX = 0
c := NewCurl()
c.Absorb(trytes[:(transactionTrinarySize-HashSize)/3])
tr := trytes.Trits()
copy(c.state, tr[transactionTrinarySize-HashSize:])
tr := trytes.Trits()
copy(c.state, tr[transactionTrinarySize-HashSize:])
var (
stop int64
result Trytes
Expand Down
2 changes: 1 addition & 1 deletion pow_avx_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// +build avx
// +build linux,amd64
// +build linux amd64

/*
MIT License
Expand Down

0 comments on commit 686fae6

Please sign in to comment.