build: add attributes argument to TEXT
Brings the TEXT() function signature closer to how the directive works in assembly. Also update almost all examples to use NOSPLIT. Closes #11
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
TEXT("EncodeInt", "func(lat, lng float64) uint64")
|
||||
TEXT("EncodeInt", NOSPLIT, "func(lat, lng float64) uint64")
|
||||
Doc("EncodeInt computes the 64-bit integer geohash of (lat, lng).")
|
||||
lat := Load(Param("lat"), XMM())
|
||||
lng := Load(Param("lng"), XMM())
|
||||
|
||||
Reference in New Issue
Block a user