Skip to content

Conversation

@willll
Copy link

@willll willll commented Jan 20, 2026

No description provided.

@robertoduarte
Copy link
Owner

I skipped the zero check on purpose to avoid the branch penalty on the SH2, which can really bite in hot paths. What do you think about making it optional via a template argument and if constexpr? That way we keep it zero-cost by default but still provide the option for whoever needs the extra safety.

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