build/mem/copy_asm.go
raw| 1 | // +build ignore |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import ( |
| 6 | . "github.com/mmcloughlin/avo/build" |
| 7 | "github.com/segmentio/asm/build/internal/x86" |
| 8 | ) |
| 9 | |
| 10 | func init() { |
| 11 | ConstraintExpr("!purego") |
| 12 | } |
| 13 | |
| 14 | func main() { |
| 15 | x86.GenerateCopy("Copy", "copies src to dst, returning the number of bytes written.", nil) |
| 16 | } |