Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EnableAVX512 = true
EnableAVX512 controls whether AVX-512 is considered during feature detection. Note: instruction-path selection is decided at package initialization, so changing this value afterwards does not refresh the selected backend.
Functions ¶
func Bytes ¶ added in v0.2.1
Bytes XORs a and b into dst. The source and destination may overlap.
Bytes returns the number of bytes processed, which is the minimum of len(dst), len(a), and len(b).
func Bytes8 ¶ added in v0.2.1
func Bytes8(dst, a, b []byte)
Bytes8 XORs exactly 8 bytes from a and b into dst. Each slice must have length >= 8, otherwise it panics.
func Bytes8Align ¶ added in v0.4.1
func Bytes8Align(dst, a, b []byte)
Bytes8Align XORs exactly 8 bytes from a and b into dst. Each slice must have length >= 8, otherwise it panics. On amd64, explicit alignment is not required; this function exists for API compatibility with non-amd64 implementations.
func Bytes16 ¶ added in v0.2.1
func Bytes16(dst, a, b []byte)
Bytes16 XORs exactly 16 bytes from a and b into dst. Each slice must have length >= 16, otherwise it panics.
func Bytes16Align ¶ added in v0.4.1
func Bytes16Align(dst, a, b []byte)
Bytes16Align XORs exactly 16 bytes from a and b into dst. Each slice must have length >= 16, otherwise it panics. On amd64, explicit alignment is not required; this function exists for API compatibility with non-amd64 implementations.
func BytesA ¶ added in v0.3.1
func BytesA(dst, a, b []byte)
BytesA XORs len(a) bytes from a and b into dst. Callers must ensure len(dst) >= len(a) and len(b) >= len(a).
This helper is intended for small slices where setup overhead dominates. For larger slices, Bytes is usually faster.
func BytesB ¶ added in v0.3.1
func BytesB(dst, a, b []byte)
BytesB XORs len(b) bytes from a and b into dst. Callers must ensure len(dst) >= len(b) and len(a) >= len(b).
This helper is intended for small slices where setup overhead dominates. For larger slices, Bytes is usually faster.
Types ¶
This section is empty.