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

More #[inline] in HalfFloatSliceExt, leading_zeros #81

Merged
merged 1 commit into from
Mar 28, 2023
Merged

More #[inline] in HalfFloatSliceExt, leading_zeros #81

merged 1 commit into from
Mar 28, 2023

Conversation

encounter
Copy link
Contributor

This helps code generation for situations with fixed size arrays:

let src: [f16; 4];
let mut dst = [0f32; 4];
src.convert_to_f32_slice(&mut dst);
// ^ This will get optimized to a direct f16x4_to_f32x4

Without the inline modifier, convert_to_f32_slice is always generated as a generic function across arbitrary length slices.

@starkat99 starkat99 merged commit bec7d30 into starkat99:main Mar 28, 2023
@encounter encounter deleted the inline branch November 22, 2023 00: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.

None yet

2 participants