Skip to content

Conversation

@willieyz
Copy link
Contributor

@willieyz willieyz commented Nov 4, 2025

@willieyz willieyz changed the title Runtime dispatch Add Runtime dispatch based on custom CPU capabilities function Nov 4, 2025
@willieyz willieyz force-pushed the runtime-dispatch branch 5 times, most recently from 6332a01 to b0ac532 Compare November 4, 2025 12:24
@willieyz willieyz force-pushed the runtime-dispatch branch 3 times, most recently from ae85594 to 8542ed7 Compare November 5, 2025 02:08
- Change mld_ntt_native() return type from void to int
- Add runtime capability checking with fallback support
- Implement dispatch logic in mld_poly_ntt() to try native first,
  fallback to C
- Add MLD_NATIVE_FUNC_SUCCESS/FALLBACK return codes
- Add mld_sys_check_capability() for system capability detection
- Add test configuration for AVX2, static ON/OFF, add to CI test.

Signed-off-by: willieyz <[email protected]>
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.

Port run-time dispatch from mlkem-native

2 participants