Debian Codegraph @

examples/geohash/geohash_test.go

raw symbols SCIP
1 package geohash
2
3 import (
4 "testing"
5
6 "golang.org/x/sys/cpu"
7 )
8
9 //go:generate go run asm.go -out geohash.s -stubs stub.go
10
11 func TestEncodeIntMountEverest(t *testing.T) {
12 if !(cpu.X86.HasSSE2 && cpu.X86.HasBMI2) {
13 t.Skip("requires SSE2 and BMI2 instruction sets")
14 }
15 if EncodeInt(27.988056, 86.925278) != 0xceb7f254240fd612 {
16 t.Fail()
17 }
18 }