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

How is SizeClass1D::X4 initializing row_coeffs? #3272

Open
kornelski opened this issue Oct 21, 2023 · 1 comment
Open

How is SizeClass1D::X4 initializing row_coeffs? #3272

kornelski opened this issue Oct 21, 2023 · 1 comment

Comments

@kornelski
Copy link
Contributor

kornelski commented Oct 21, 2023

In forward_transform_avx2 columns skip by 8:

for cg in (0..txfm_size_col).step_by(8) {

but buf can initialize either 4 or 8:

let buf = cast_mut::<4, _>(buf);

which makes me wonder if the buffer is fully initialized, and whether

row_coeffs.reverse();

reverses the right thing (isn't this buf a 4 coeffs, 4 uninit, 4 coeffs, 4 uninit…)?

@kornelski
Copy link
Contributor Author

Oh wait,

let buf = cast_mut::<4, _>(buf);

this doesn't even do let buf = &mut buf[cg..]; like the previous case. So it's overwriting start of the buffer over and over? Is that a bug?

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

No branches or pull requests

1 participant