Skip to content

Document null return for SIMD levels the CPU doesn't support - #209

Merged
Auburn merged 1 commit into
masterfrom
docs/feature-set-nullptr
Oct 21, 2026
Merged

Auburn merged 1 commit into
masterfrom
docs/feature-set-nullptr

Conversation

@Auburn

@Auburn Auburn commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Why

Auburn/FastSIMD#21 changes NewDispatchClass to return nullptr when an explicit maxFeatureSet is above the CPU's max feature set. Before, it created that level anyway, which hits illegal instructions on first use. FeatureSet::Max (~0u in the C API) still means the CPU's max.

Changes

Doc comments only. These now say they return null when the CPU doesn't support maxFeatureSet:

  • New<T> and NewFromEncodedNodeTree (FastNoise.h)
  • Metadata::CreateNode (Metadata.h)
  • fnNewFromEncodedNodeTree and fnNewFromMetadata (FastNoise_C.h)

Merge together with the FastSIMD bump that includes Auburn/FastSIMD#21.

With Auburn/FastSIMD#21, NewDispatchClass returns nullptr when an
explicit maxFeatureSet is above the CPU's max feature set.
@Auburn
Auburn merged commit cbbec7a into master Oct 21, 2026
8 checks passed
@Auburn
Auburn deleted the docs/feature-set-nullptr branch October 21, 2026 23:32
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