-
Notifications
You must be signed in to change notification settings - Fork 319
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
Implementing Scalbn/ScaleF ops #2266
Comments
Nice, it seems useful to be able to generate the scalef instructions. |
scalbn is equivalent to ldexp for F16/F32/F64 floating point types. I agree that |
Implemented, thanks @johnplatts :) |
I have been working on implementations of the Scalbn/ScaleF ops.
The
Scalbn(V v, VFromD<RebindToUnsigned<DFromV<V>>> exp)
op is equivalent tostd::scalbn(v[i], exp[i])
.The
ScaleF(V v, V exp)
op is equivalent toScalbn(v, ConvertTo(RebindToUnsigned<DFromV<V>>(), Floor(exp)))
or AVX3 _mm*_scalef_ps/_mm*_scalef_pd.I have added a FloorInt op in pull request #2265 that allows ScaleF to be more efficiently implemented on SSE2/SSSE3/AArch64 NEON.
Should the Scalbn/ScaleF ops be renamed to something else?
The text was updated successfully, but these errors were encountered: