forked from TrueCloudLab/tzhash
Change default AVX implementation
This commit is contained in:
parent
5f74bbc979
commit
a8357fda0e
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ func New() hash.Hash {
|
||||||
if hasAVX2 {
|
if hasAVX2 {
|
||||||
return newAVX2Inline()
|
return newAVX2Inline()
|
||||||
} else if hasAVX {
|
} else if hasAVX {
|
||||||
return newAVX()
|
return newAVXInline()
|
||||||
} else {
|
} else {
|
||||||
return newPure()
|
return newPure()
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ func Sum(data []byte) [hashSize]byte {
|
||||||
_, _ = d.Write(data) // no errors
|
_, _ = d.Write(data) // no errors
|
||||||
return d.checkSum()
|
return d.checkSum()
|
||||||
} else if hasAVX {
|
} else if hasAVX {
|
||||||
d := newAVX()
|
d := newAVXInline()
|
||||||
_, _ = d.Write(data) // no errors
|
_, _ = d.Write(data) // no errors
|
||||||
return d.checkSum()
|
return d.checkSum()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue