File: accum_stubs_other.go

package info (click to toggle)
golang-github-zeebo-xxh3 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 780 kB
  • sloc: asm: 2,165; ansic: 32; makefile: 26
file content (25 lines) | stat: -rw-r--r-- 739 bytes parent folder | download
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
//go:build !amd64
// +build !amd64

package xxh3

import (
	"unsafe"
)

const (
	hasAVX2   = false
	hasSSE2   = false
	hasAVX512 = false
)

func accumAVX2(acc *[8]u64, data, key unsafe.Pointer, len u64)   { panic("unreachable") }
func accumSSE(acc *[8]u64, data, key unsafe.Pointer, len u64)    { panic("unreachable") }
func accumBlockAVX2(acc *[8]u64, data, key unsafe.Pointer)       { panic("unreachable") }
func accumBlockSSE(acc *[8]u64, data, key unsafe.Pointer)        { panic("unreachable") }
func accumAVX512(acc *[8]u64, data, key unsafe.Pointer, len u64) { panic("unreachable") }

func withAVX512(cb func())  { cb() }
func withAVX2(cb func())    { cb() }
func withSSE2(cb func())    { cb() }
func withGeneric(cb func()) { cb() }