Lines Matching refs:TEMP
33 #define TEMP(K) (temp + (K)) macro
435 SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(a)), last); in mp_rat_compare_unsigned()
436 SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(b)), last); in mp_rat_compare_unsigned()
438 if ((res = mp_int_mul(TEMP(0), MP_DENOM_P(b), TEMP(0))) != MP_OK || in mp_rat_compare_unsigned()
439 (res = mp_int_mul(TEMP(1), MP_DENOM_P(a), TEMP(1))) != MP_OK) in mp_rat_compare_unsigned()
442 cmp = mp_int_compare_unsigned(TEMP(0), TEMP(1)); in mp_rat_compare_unsigned()
446 mp_int_clear(TEMP(last)); in mp_rat_compare_unsigned()
529 SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(r)), last); in mp_rat_to_decimal()
530 SETUP(mp_int_init(TEMP(last)), last); in mp_rat_to_decimal()
531 SETUP(mp_int_init(TEMP(last)), last); in mp_rat_to_decimal()
535 mp_int_abs(TEMP(0), TEMP(0)); in mp_rat_to_decimal()
536 if ((res = mp_int_div(TEMP(0), MP_DENOM_P(r), TEMP(0), TEMP(1))) != MP_OK) in mp_rat_to_decimal()
543 for (lead_0 = 0; lead_0 < prec && mp_int_compare(TEMP(1), MP_DENOM_P(r)) < 0; in mp_rat_to_decimal()
545 if ((res = mp_int_mul_value(TEMP(1), radix, TEMP(1))) != MP_OK) in mp_rat_to_decimal()
552 if ((res = mp_int_expt_value(radix, prec - lead_0, TEMP(2))) != MP_OK) in mp_rat_to_decimal()
554 if ((res = mp_int_mul(TEMP(1), TEMP(2), TEMP(1))) != MP_OK) in mp_rat_to_decimal()
557 if ((res = mp_int_div(TEMP(1), MP_DENOM_P(r), TEMP(1), TEMP(2))) != MP_OK) in mp_rat_to_decimal()
570 if (mp_int_compare_zero(TEMP(2)) != 0) { in mp_rat_to_decimal()
572 res = mp_int_add_value(TEMP(0), 1, TEMP(0)); in mp_rat_to_decimal()
574 res = mp_int_add_value(TEMP(1), 1, TEMP(1)); in mp_rat_to_decimal()
580 if ((res = mp_int_mul_pow2(TEMP(2), 1, TEMP(2))) != MP_OK) in mp_rat_to_decimal()
583 cmp = mp_int_compare(TEMP(2), MP_DENOM_P(r)); in mp_rat_to_decimal()
590 res = mp_int_add_value(TEMP(0), 1, TEMP(0)); in mp_rat_to_decimal()
592 res = mp_int_add_value(TEMP(1), 1, TEMP(1)); in mp_rat_to_decimal()
607 (mp_int_compare_zero(TEMP(0)) != 0 || in mp_rat_to_decimal()
608 mp_int_compare_zero(TEMP(1)) != 0)) { in mp_rat_to_decimal()
613 if ((res = mp_int_to_string(TEMP(0), radix, start, left)) != MP_OK) in mp_rat_to_decimal()
635 res = mp_int_to_string(TEMP(1), radix, start, left); in mp_rat_to_decimal()
639 mp_int_clear(TEMP(last)); in mp_rat_to_decimal()
935 SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(a)), last); in s_rat_combine()
936 SETUP(mp_int_init_copy(TEMP(last), MP_NUMER_P(b)), last); in s_rat_combine()
938 if ((res = mp_int_mul(TEMP(0), MP_DENOM_P(b), TEMP(0))) != MP_OK) in s_rat_combine()
940 if ((res = mp_int_mul(TEMP(1), MP_DENOM_P(a), TEMP(1))) != MP_OK) in s_rat_combine()
942 if ((res = (comb_f)(TEMP(0), TEMP(1), MP_NUMER_P(c))) != MP_OK) in s_rat_combine()
949 mp_int_clear(TEMP(last)); in s_rat_combine()