1// +build !appengine 2 3#define NOSPLIT 4 4 5// func scanStringSSE(s []byte, j int) (int, byte) 6TEXT scanStringSSE(SB),NOSPLIT,$0 7 // TODO: http://www.strchr.com/strcmp_and_strlen_using_sse_4.2 8 // Equal any, operand1 set to 9 RET 10 11// Copyright 2011 The Go Authors. All rights reserved. 12// Use of this source code is governed by a BSD-style 13// license that can be found in the LICENSE file. 14// func haveSSE42() bool 15TEXT ·haveSSE42(SB),NOSPLIT,$0 16 XORQ AX, AX 17 INCL AX 18 CPUID 19 SHRQ $20, CX 20 ANDQ $1, CX 21 MOVB CX, ret+0(FP) 22 RET 23