-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The astcenc vector library effectively has two different class APIs: - A 4-wide API which is used via explicit width types (e.g. vfloat4). - A vector length agnostic API, which is used via implicit width types (e.g. vfloat) in the codec that are resolved at compile time. For historical reasons the classes that are only used as VLA types (e.g. vfloat8 for AVX2) implement more API than needed because it was inherited from the original 4-wide implementation. This makes adding new VLA implementations (e.g. Arm SVE) more expensive than needed. This PR doesn't add SVE support, but minimizes the VLA API as a precursor to doing so. The main changes are: * Remove VLA indexable .lane<N>() reads. * Remove VLA float lane_id() factory functions. * Replace VLA use of .lane<0>() with dedicated functions, e.g. use hmax_s() rather than hmax.lane<0>().
- Loading branch information
1 parent
ffdc45e
commit 69bc17b
Showing
10 changed files
with
1,123 additions
and
1,029 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters