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 more multiplication with ADX instructions #1730

Open
albinahlback opened this issue Jan 19, 2024 · 0 comments
Open

Implement more multiplication with ADX instructions #1730

albinahlback opened this issue Jan 19, 2024 · 0 comments

Comments

@albinahlback
Copy link
Collaborator

Both squaring and multiplication can have higher cases.

For squaring we have $(a_1 B + a_0)^2 = a_1^2 B^2 + 2 a_0 a_1 B + a_0^2$. Compute $a_1^2 B^2$ into result, then compute $a_0^2$ and $2 a_0 a_1 B$ simultaneously and add onto result.

For multiplication, a similar strategy could be used.

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