···88 "hash"
99 "hash/adler32"
10101111- "golang.org/x/sys/cpu"
1111+ "codeberg.org/lindenii/furgit/internal/cpu"
1212)
13131414// Size of an Adler-32 checksum in bytes.
+27
internal/cpu/LICENSE
···11+Copyright 2009 The Go Authors.
22+33+Redistribution and use in source and binary forms, with or without
44+modification, are permitted provided that the following conditions are
55+met:
66+77+ * Redistributions of source code must retain the above copyright
88+notice, this list of conditions and the following disclaimer.
99+ * Redistributions in binary form must reproduce the above
1010+copyright notice, this list of conditions and the following disclaimer
1111+in the documentation and/or other materials provided with the
1212+distribution.
1313+ * Neither the name of Google LLC nor the names of its
1414+contributors may be used to endorse or promote products derived from
1515+this software without specific prior written permission.
1616+1717+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1818+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1919+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2020+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2121+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2222+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2323+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2424+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2525+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2626+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+6
internal/cpu/cpu.go
···11+package cpu
22+33+// X86 contains x86 CPU feature flags detected at runtime.
44+var X86 struct {
55+ HasAVX2 bool
66+}