1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build amd64,!appengine,!gccgo
9 // func havePOPCNT() bool
10 TEXT ·havePOPCNT(SB),4,$0
18 // func popcnt(word) int
19 TEXT ·popcnt(SB),NOSPLIT,$0-8
22 // POPCNT (SI), AX is not recognized by Go assembler,
23 // so we assemble it ourselves.