This file is indexed.

/usr/share/gocode/src/github.com/klauspost/compress/snappy/asm_amd64.go is in golang-github-klauspost-compress-dev 1.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//+build !noasm
//+build !appengine

// Copyright 2015, Klaus Post, see LICENSE for details.

package snappy

import (
	"github.com/klauspost/cpuid"
)

// matchLenSSE4 returns the number of matching bytes in a and b
// up to length 'max'. Both slices must be at least 'max'
// bytes in size.
// It uses the PCMPESTRI SSE 4.2 instruction.
//go:noescape
func matchLenSSE4(a, b []byte, max int) int

// Detect SSE 4.2 feature.
func init() {
	useSSE42 = cpuid.CPU.SSE42()
}

// matchLenSSE4Ref is a reference matcher.
func matchLenSSE4Ref(a, b []byte, max int) int {
	for i := 0; i < max; i++ {
		if a[i] != b[i] {
			return i
		}
	}
	return max
}