Skip to content

fix: complete ARM NEON sqlite-vec portability - #18

Merged
gabewillen merged 1 commit into
mainfrom
fix/arm-native-cmake
Aug 7, 2026
Merged

fix: complete ARM NEON sqlite-vec portability#18
gabewillen merged 1 commit into
mainfrom
fix/arm-native-cmake

Conversation

@gabewillen

Copy link
Copy Markdown
Contributor

Completes the ARM NEON sqlite-vec fix after strict GCC cross syntax found a second signed/unsigned mismatch.

The helper now reinterprets signed byte differences before unsigned widening and reinterprets the final unsigned lanes for signed accumulation. Apple Clang and GCC ARM syntax checks pass.

Copilot AI lite review requested due to automatic review settings August 7, 2026 07:29
@gabewillen
gabewillen force-pushed the fix/arm-native-cmake branch from ad3b775 to c9a0a93 Compare August 7, 2026 07:31
@gabewillen
gabewillen merged commit 35629cd into main Aug 7, 2026
12 checks passed
@gabewillen
gabewillen deleted the fix/arm-native-cmake branch August 7, 2026 07:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ARM NEON implementation in the vendored sqlite-vec extension to complete a portability fix related to signed/unsigned vector-lane handling during widening and accumulation for the int8 L1 distance path.

Changes:

  • Introduces a small NEON helper (l1_int8_neon_pairwise_abs) to centralize the “reinterpret as unsigned while widening” logic.
  • Replaces repeated inline widening/accumulation expressions with the helper to avoid signed/unsigned mismatches under stricter compilers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI mentioned this pull request Aug 7, 2026
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.

2 participants