build/mem/mask_asm.go
raw| 1 | // +build ignore |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import ( |
| 6 | . "github.com/mmcloughlin/avo/build" |
| 7 | |
| 8 | "github.com/segmentio/asm/build/internal/x86" |
| 9 | ) |
| 10 | |
| 11 | func init() { |
| 12 | ConstraintExpr("!purego") |
| 13 | } |
| 14 | |
| 15 | func main() { |
| 16 | x86.GenerateCopy("Mask", "set bits of dst to zero and copies the one-bits of src to dst, returning the number of bytes written.", |
| 17 | x86.BinaryOpTable(ANDB, ANDW, ANDL, ANDQ, PAND, VPAND)) |
| 18 | } |