Update vendored dependencies (#147)

* Prepare readme for release

* Update vendored packages

* New version of dns dependency handles rejecting UPDATEs under the hood

* Go 1.11 required
This commit is contained in:
Joona Hoikkala
2019-02-04 00:21:42 +02:00
committed by GitHub
parent a88ee29755
commit 09dc25d336
726 changed files with 100868 additions and 33282 deletions
+5
View File
@@ -14,6 +14,7 @@ package fse
import (
"errors"
"fmt"
"math/bits"
)
const (
@@ -136,3 +137,7 @@ func (s *Scratch) prepare(in []byte) (*Scratch, error) {
func tableStep(tableSize uint32) uint32 {
return (tableSize >> 1) + (tableSize >> 3) + 3
}
func highBits(val uint32) (n uint32) {
return uint32(bits.Len32(val) - 1)
}
-9
View File
@@ -1,9 +0,0 @@
// +build go1.9
package fse
import "math/bits"
func highBits(val uint32) (n uint32) {
return uint32(bits.Len32(val) - 1)
}
-18
View File
@@ -1,18 +0,0 @@
// +build !go1.9
package fse
var deBruijnClz = [...]uint8{0, 9, 1, 10, 13, 21, 2, 29,
11, 14, 16, 18, 22, 25, 3, 30,
8, 12, 20, 28, 15, 17, 24, 7,
19, 27, 23, 6, 26, 5, 4, 31}
// highBits returns the highest set bit
func highBits(v uint32) (n uint32) {
v |= v >> 1
v |= v >> 2
v |= v >> 4
v |= v >> 8
v |= v >> 16
return uint32(deBruijnClz[(v*0x07C4ACDD)>>27])
}