News for hackers. Stuff that matters.
Re:Iguana: fast SIMD-optimized decompression by pjc50 on Thursday June 01, 2023 @06:25AM (#36149343)
So .. what's the vector set that people should be targeting for wide compatibility these days?
Re:Iguana: fast SIMD-optimized decompression by powturbo on Thursday June 01, 2023 @06:32AM (#36149389)
Ideally, dynamic detecting cpu isa (sse/avx2/avx512) and respectively dispatching, used in most of my projects for ex. [1] and [2]

- [1] https://github.com/powturbo/Turbo-Range-Coder

- [2] https://github.com/powturbo/Turbo-Base64

Re:Iguana: fast SIMD-optimized decompression by adgjlsfhk1 on Thursday June 01, 2023 @12:18PM (#36153362)
honestly you can probably stop supporting pre avx2 for a lot of use cases. avx2 is 2014 so those machines are pretty much at end of life. this also has the advantage that it lets you assume native fma hardware
Re:Iguana: fast SIMD-optimized decompression by duped on Thursday June 01, 2023 @10:28AM (#36151514)
You can use function multiversioning (1) to provide multiple implementations of the same function for different targets that is selected at runtime.

(1) https://releases.llvm.org/7.0.0/tools/clang/docs/AttributeRe...