File: mask_asm.go

package info (click to toggle)
golang-github-segmentio-asm 1.2.0%2Bgit20231107.1cfacc8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 932 kB
  • sloc: asm: 6,093; makefile: 32
file content (18 lines) | stat: -rw-r--r-- 379 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// +build ignore

package main

import (
	. "github.com/mmcloughlin/avo/build"

	"github.com/segmentio/asm/build/internal/x86"
)

func init() {
	ConstraintExpr("!purego")
}

func main() {
	x86.GenerateCopy("Mask", "set bits of dst to zero and copies the one-bits of src to dst, returning the number of bytes written.",
		x86.BinaryOpTable(ANDB, ANDW, ANDL, ANDQ, PAND, VPAND))
}