examples/geohash: first version

Adds helper for constants as DATA sections.
This commit is contained in:
Michael McLoughlin
2018-12-27 15:44:52 -08:00
parent 5dea46407c
commit 6fc67c1fbc
6 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package geohash
import (
"testing"
)
//go:generate go run asm.go -out geohash.s -stubs stub.go
func TestEncodeIntMountEverest(t *testing.T) {
if EncodeInt(27.988056, 86.925278) != 0xceb7f254240fd612 {
t.Fail()
}
}