github.phpd.cn/thought-machine/please@v12.2.0+incompatible/test/go_rules/asm/asm.go (about)

     1  // Package asm implements a simple test of Go assembly.
     2  package asm
     3  
     4  // add is the forward declaration of the assembly implementation.
     5  func add(x, y int64) int64
     6  
     7  // Add adds two numbers using assembly.
     8  func Add(a, b int) int {
     9  	return int(add(int64(a), int64(b)))
    10  }