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
+11 -1
View File
@@ -70,6 +70,8 @@ const (
rdtscp // RDTSCP Instruction
cx16 // CMPXCHG16B Instruction
sgx // Software Guard Extensions
ibpb // Indirect Branch Restricted Speculation (IBRS) and Indirect Branch Predictor Barrier (IBPB)
stibp // Single Thread Indirect Branch Predictors
// Performance indicators
sse2slow // SSE2 is supported, but usually not faster
@@ -125,6 +127,8 @@ var flagNames = map[flags]string{
rdtscp: "RDTSCP", // RDTSCP Instruction
cx16: "CX16", // CMPXCHG16B Instruction
sgx: "SGX", // Software Guard Extensions
ibpb: "IBPB", // Indirect Branch Restricted Speculation and Indirect Branch Predictor Barrier
stibp: "STIBP", // Single Thread Indirect Branch Predictors
// Performance indicators
sse2slow: "SSE2SLOW", // SSE2 supported, but usually not faster
@@ -848,7 +852,7 @@ func support() flags {
// Check AVX2, AVX2 requires OS support, but BMI1/2 don't.
if mfi >= 7 {
_, ebx, ecx, _ := cpuidex(7, 0)
_, ebx, ecx, edx := cpuidex(7, 0)
if (rval&avx) != 0 && (ebx&0x00000020) != 0 {
rval |= avx2
}
@@ -882,6 +886,12 @@ func support() flags {
if ebx&(1<<29) != 0 {
rval |= sha
}
if edx&(1<<26) != 0 {
rval |= ibpb
}
if edx&(1<<27) != 0 {
rval |= stibp
}
// Only detect AVX-512 features if XGETBV is supported
if c&((1<<26)|(1<<27)) == (1<<26)|(1<<27) {