You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no instructions in x86 to perform a division for vectors of integers, but it makes sense to share the "Magic Division" logic we have for scalars for these Vectors since we expose operator / (Users assume it's accelerated just like other Vector APIs)
At least for power-of-two numbers.
Bonus points:
Revise current implementation, it looks less efficient than https://godbolt.org/z/81r66h (Loops are not unrolled?)
File an API proposal for operator / scalar (e.g. operator * has a scalar overload, division does not)
From twitter: https://twitter.com/nietras1/status/1319546076756643842
Current codegen:
Expected codegen:
There are no instructions in x86 to perform a division for vectors of integers, but it makes sense to share the "Magic Division" logic we have for scalars for these Vectors since we expose
operator /
(Users assume it's accelerated just like other Vector APIs)At least for power-of-two numbers.
Bonus points:
operator / scalar
(e.g.operator *
has a scalar overload, division does not)/cc @tannergooding
The text was updated successfully, but these errors were encountered: