-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libmpg123: call dct36 assembly routines via C wrappers for indirect b…
…ranching That way, indirect jumps only land in C code that may have the special instructions for the respective protection against manipulated endpoints. Testing performance impact: sse trunk-clean real 0m12.303s user 0m11.906s sys 0m0.402s sse trunk real 0m12.642s user 0m12.338s sys 0m0.306s sse_vintage trunk-clean real 0m13.281s user 0m12.946s sys 0m0.336s sse_vintage trunk real 0m13.333s user 0m13.039s sys 0m0.296s Compare fixed sse build (--with-cpu=sse) sse trunk-clean real 0m12.466s user 0m12.180s sys 0m0.288s sse trunk real 0m12.399s user 0m12.068s sys 0m0.333s dynamic build on amd64 x86-64 trunk-clean real 0m10.628s user 0m10.298s sys 0m0.336s x86-64 trunk real 0m10.595s user 0m10.323s sys 0m0.274s avx trunk-clean real 0m10.213s user 0m9.949s sys 0m0.265s avx trunk real 0m10.313s user 0m9.967s sys 0m0.348s There is some impact. It also somewhat matters more for x86, where there are no CPUs that actually benefit from this. You can avoid this by compiling only one fixed optimization for your CPU. git-svn-id: svn://scm.orgis.org/mpg123/trunk@5389 35dc7657-300d-0410-a2e5-dc2837fedb53
- Loading branch information
thor
committed
Dec 29, 2023
1 parent
a08fe96
commit 6425108
Showing
6 changed files
with
130 additions
and
69 deletions.
There are no files selected for viewing
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