Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added intrinsic mappings for BitOperations functions. #824

Merged
merged 1 commit into from
Jul 3, 2022

Conversation

MoFtZ
Copy link
Collaborator

@MoFtZ MoFtZ commented Jul 1, 2022

Allows some of the System.Numerics.BitOperations functions to be used directly (LeadingZeroCount, PopCount, TrailingZeroCount).

RotateLeft, RotateRight, and IsPow2 appear to work without requiring a mapping.

Log2 and RoundUpToPowerOf2 is not supported, and we have no equivalent functionality in ILGPU.

@m4rs-mt m4rs-mt added this to the v1.3 milestone Jul 3, 2022
@m4rs-mt m4rs-mt merged commit 74d9828 into m4rs-mt:master Jul 3, 2022
@MoFtZ MoFtZ deleted the feature/bitoperations branch July 3, 2022 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants