Skip to content

Conversation

@wenju-he
Copy link
Contributor

It looks simpler to use __builtin_clzg for all unsigned types.

It looks simpler to use __builtin_clzg for all unsigned types.
@wenju-he
Copy link
Contributor Author

@frasercrmck please help to review? thanks.

@frasercrmck
Copy link
Contributor

Note I'm in the process of introducing elementwise clz/ctz builtins which would accomplish this and achieve vector intrinsics. See #131995. It might be worth waiting for that change instead?

@wenju-he
Copy link
Contributor Author

Note I'm in the process of introducing elementwise clz/ctz builtins which would accomplish this and achieve vector intrinsics. See #131995. It might be worth waiting for that change instead?

thanks @frasercrmck
LGTM. Please refactor clz after #131995
close this PR.

@wenju-he wenju-he closed this Apr 14, 2025
@wenju-he wenju-he deleted the nfc-refine-clz branch April 14, 2025 23:43
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