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

Implement some float packing/unpacking instructions #709

Merged
merged 2 commits into from
Aug 10, 2021
Merged

Conversation

khyperia
Copy link
Contributor

@khyperia khyperia commented Aug 9, 2021

Fixes #707

Wasn't too hot on the GLSL/SPIR-V name of packHalf2x16, it's really confusing to me what the heck that means, so tried to go more explicit with the name - at least to me, f32x2_to_f16x2 is much more clear (and in line with the scalar f32_to_f16 version)

Left off f64 conversion insts for now, ark doesn't need them any time soon and they're weird (I think they're transmute (u32, u32) <-> f64, not an actual bit-changing conversion?)

@khyperia khyperia requested a review from eddyb as a code owner August 9, 2021 09:49
@hrydgard
Copy link
Contributor

hrydgard commented Aug 9, 2021

The new naming is better. Probably descriptive enough while still avoiding SSE-intrinsic-style acronym salad. The u32 types makes it clear enough that it's about packed values.

@khyperia khyperia merged commit 1a3a12f into main Aug 10, 2021
@khyperia khyperia deleted the float-packing branch August 10, 2021 11:54
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.

Expose floating point format conversion operations (16 <-> 32 bits)?
2 participants