The Wayback Machine - https://web.archive.org/web/20201205203825/https://github.com/shibatch/sleef/issues/253
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

[API request] Raise to integer power. #253

Open
gnzlbg opened this issue Apr 17, 2019 · 1 comment
Open

[API request] Raise to integer power. #253

gnzlbg opened this issue Apr 17, 2019 · 1 comment

Comments

@gnzlbg
Copy link
Contributor

@gnzlbg gnzlbg commented Apr 17, 2019

Raising scalars and vectors to integer powers is very common (e.g. llvm.powi), so I think the following APIs would be very useful:

  • double Sleef_ipow_u10(double x, int32_t y);
  • __m128d Sleef_ipowd2_u10(__m128d x, int32_t y);
  • __m256d Sleef_ipowd4_u10(__m256d x, int32_t y);
  • __m512d Sleef_ipowd8_u10(__m512d x, int32_t y);
  • float Sleef_ipowf_u10(float x, int32_t y);
  • __m128 Sleef_ipowf4_u10(__m128 x, int32_t y);
  • __m256 Sleef_ipowf8_u10(__m256 x, int32_t y);
  • __m512 Sleef_ipowf16_u10(__m512 x, int32_t y);
@shibatch
Copy link
Owner

@shibatch shibatch commented Apr 17, 2019

Okay, I will try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.