github.com/moontrade/nogc@v0.1.7/collections/tree/le.go (about)

     1  //go:build tinygo.wasm || 386 || amd64 || amd64p32 || arm || arm64 || loong64 || mips64le || mips64p32 || mips64p32le || mipsle || ppc64le || riscv || riscv64 || wasm
     2  
     3  package tree
     4  
     5  import (
     6  	"math/bits"
     7  )
     8  
     9  func toBE(v uint64) uint64 {
    10  	return bits.Reverse64(v)
    11  }
    12  
    13  func fromBE(v uint64) uint64 {
    14  	return bits.Reverse64(v)
    15  }