Repository navigation
Conversation
…ng point instead of the scalar one
…move bespoke madd
# Conflicts: # src/fdct.rs
|
This is indeed ready for review, and the upstream PR is merged. All that's left is cutting a release of The swizzles in this PR are a bit convoluted. linebender/fearless_simd#391 should help with readability, but I don't want to block this PR on even more upstream fearless_simd work. |
|
That really impressing. Seems that it should be possible to completely replace the hand rolled AVX2. But this can be part of a different PR. Because there has never been a release with the |
…eature to portable_simd_no_std and make it work standalone
|
If features can be changed, I can make a much nicer API! I've updated the feature selection. I've added |
|
fearless_simd v1.2.0 is released, this is now ready to merge |
@LaurenzV I'd appreciate if you could publish this, I could use it in vstroebel/jpeg-encoder#41 --------- Co-authored-by: Laurenz Stampfl <laurenz.stampfl+github@gmail.com>
Replace portable SIMD code derived from scalar code using
widewith portable SIMD code derived from existing AVX2 codepaths usingfearless_simd.Add portable SIMD YCbCr conversions.
Motivation
fearless_simdis very light onunsafe, an order of magnitude less than other crates)imagearound a single SIMD library, right now it pulls in every SIMD crate under the sunSafety
~10x reduction in
unsafewith--all-features(no_std support), ~20x reduction withstdanduse_widefeatures:cargo-geiger outputs
Performance
FDCT:
YCbCr:
Fearless SIMD uses AVX-512 only on machines where it doesn't cause performance issues (downclocking), so there should be no drawback to enabling it. If jpeg_encoder users have to disable certain instruction sets for their build for any reason, Fearless SIMD supports that.
Correctness
This was verified on random inputs against the scalar reference. The same testing found a bug in handwritten AVX2 code: #40
Stability
I remember stability was a concern when adopting
wide. Fearless SIMD is v1.0 and has an explicit security backport policy, so it should be as good as or better thanwidein this regard.Status
I believe this is complete, but I am marking it as draft until linebender/fearless_simd#415 lands and ships in a stable release.