simdbuild

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: LGPL-2.1 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package simdbuild records whether the SIMD kernels are compiled into this build. They are enabled by default; a build with -tags noasm selects the scalar fallback instead. It holds nothing but the constant Enabled, split across a default / noasm file pair, the same way the kernel dispatch points are (internal/coder/nmr_trellis_{simd,noasm}.go, internal/coder/bandcost_{simd,noasm}.go, internal/dsp/abspow34_{simd,noasm}.go, internal/dsp/quantizebands_{simd,noasm}.go, internal/psy/hpfilter_{simd,noasm}.go, internal/psy/pelog_{simd,noasm}.go).

Its reason to exist is that code with no kernel of its own, in particular the public aac.SIMDEnabled accessor, would otherwise have to carry the build tag itself to report which kernel set was selected. Keeping the pair here rather than in one of the kernel packages avoids making either of them the authority on a tag that gates both, and means the next consumer needing the answer does not add another copy. Those files decide which implementation compiles; this package turns the same tag into a value. Nothing here observes the kernels, so the root package asserts that the two agree (simd_kernels_test.go).

Index

Constants

View Source
const Enabled = true

Enabled is true on the default build: the SIMD kernels are compiled in place of their scalar counterparts, and github.com/tphakala/simd is linked. A build with -tags noasm compiles the noasm half of this pair instead.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL