Skip to content

Fixed HW accelerated SSSE3 shuffle capability detection for NET 6.0 and older#37

Merged
Seramis merged 1 commit intoByteAether:mainfrom
Seramis:fix-hw-accelerated-shuffle
Mar 25, 2026
Merged

Fixed HW accelerated SSSE3 shuffle capability detection for NET 6.0 and older#37
Seramis merged 1 commit intoByteAether:mainfrom
Seramis:fix-hw-accelerated-shuffle

Conversation

@Seramis
Copy link
Member

@Seramis Seramis commented Mar 25, 2026

Description

Corrected the hardware acceleration check to use Ssse3.IsSupported instead of Sse3.IsSupported. The byte-level shuffling instruction (pshufb) was introduced in the Supplemental SSE3 (SSSE3) instruction set, and relying on the standard SSE3 flag would cause a NotImplementedException on .NET 6.0 and older when running on hardware that lacks the supplemental extensions.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Other (please specify):

Checklist

  • The PR is submitted to the correct branch (main).
  • My code follows the project's coding style. (.editorconfig)
  • I have commented my code, particularly in hard-to-understand areas and public interfaces.
  • I have added or updated tests for the changes I made.
  • All new and existing tests passed.
  • I have updated the documentation where applicable.

@Seramis Seramis self-assigned this Mar 25, 2026
@Seramis Seramis merged commit c31f52b into ByteAether:main Mar 25, 2026
5 checks passed
@Seramis Seramis deleted the fix-hw-accelerated-shuffle branch March 25, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant