Created
November 17, 2021 13:03
-
-
Save jlinnosa/357b2378c897f0356a3321bb6aee071e to your computer and use it in GitHub Desktop.
gcc -I. -E mpf/pow_ui.c | grep -A20 '^__gmpf_pow_ui'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__gmpf_pow_ui (mpf_ptr r, mpf_srcptr b, unsigned long int e) | |
{ | |
mpf_t t; | |
int cnt; | |
if (e <= 1) | |
{ | |
if (e == 0) | |
__gmpf_set_ui (r, 1); | |
else | |
__gmpf_set (r, b); | |
return; | |
} | |
do { __asm__ ("rep;bsr\t%1, %q0" : "=r" (cnt) : "rm" ((UDItype)((mp_limb_t) e))); } while (0); | |
cnt = 64 - 1 - cnt; | |
citrus-it
commented
Nov 17, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment