/haiku/src/libs/mapm/ |
H A D | mapm_div.c | 109 if (rr->m_apm_exponent <= 0) /* result is 0 */ in m_apm_integer_divide() 115 if (rr->m_apm_datalength > rr->m_apm_exponent) in m_apm_integer_divide() 117 rr->m_apm_datalength = rr->m_apm_exponent; in m_apm_integer_divide() 182 nexp = M_div_worka->m_apm_exponent - M_div_workb->m_apm_exponent; in M_apm_sdivide() 206 M_div_worka->m_apm_exponent = 0; in M_apm_sdivide() 207 M_div_workb->m_apm_exponent = 0; in M_apm_sdivide() 222 M_div_worka->m_apm_exponent += 1; /* multiply numerator by 10 */ in M_apm_sdivide() 226 M_div_worka->m_apm_exponent += 2; /* multiply numerator by 100 */ in M_apm_sdivide() 260 if ((k = 2 - M_div_worka->m_apm_exponent) > 0) in M_apm_sdivide() 326 M_div_tmp9->m_apm_exponent += 2; in M_apm_sdivide() [all …]
|
H A D | mapm_flr.c | 64 if (bb->m_apm_exponent <= 0) /* if |bb| < 1, result is -1 or 0 */ in m_apm_floor() 79 mtmp->m_apm_datalength = mtmp->m_apm_exponent; in m_apm_floor() 88 bb->m_apm_datalength = bb->m_apm_exponent; in m_apm_floor() 105 if (bb->m_apm_exponent <= 0) /* if |bb| < 1, result is 0 or 1 */ in m_apm_ceil() 117 bb->m_apm_datalength = bb->m_apm_exponent; in m_apm_ceil() 125 mtmp->m_apm_datalength = mtmp->m_apm_exponent; in m_apm_ceil()
|
H A D | mapm_rcp.c | 84 nexp = aa->m_apm_exponent - bb->m_apm_exponent; in m_apm_divide() 129 nexp = aa->m_apm_exponent; in m_apm_reciprocal() 130 tmpN->m_apm_exponent -= nexp; in m_apm_reciprocal() 176 if ((-4 * tmp2->m_apm_exponent) > tolerance) in m_apm_reciprocal() 185 rr->m_apm_exponent -= nexp; in m_apm_reciprocal()
|
H A D | mapmrsin.c | 80 dplaces = (places + 8) - xx->m_apm_exponent; in M_raw_sin() 81 tolerance = xx->m_apm_exponent - (places + 4); in M_raw_sin() 90 if ((tmp8->m_apm_exponent < tolerance) || (tmp8->m_apm_sign == 0)) in M_raw_sin() 93 local_precision = dplaces + term->m_apm_exponent; in M_raw_sin() 171 if ((term->m_apm_exponent < tolerance) || (term->m_apm_sign == 0)) in M_raw_cos() 176 local_precision = local_precision + term->m_apm_exponent - prev_exp; in M_raw_cos() 182 prev_exp = term->m_apm_exponent; in M_raw_cos()
|
H A D | mapmutl2.c | 57 int m_apm_exponent(M_APM atmp) in m_apm_exponent() function 62 return(atmp->m_apm_exponent - 1); in m_apm_exponent() 75 if (atmp->m_apm_exponent >= atmp->m_apm_datalength) in m_apm_is_integer() 89 jj = aa->m_apm_exponent; in m_apm_is_even() 124 z->m_apm_exponent = 0; in M_set_to_zero() 162 dest->m_apm_exponent = src->m_apm_exponent; in m_apm_copy() 178 lexp = ltmp->m_apm_exponent; in m_apm_compare() 179 rexp = rtmp->m_apm_exponent; in m_apm_compare()
|
H A D | mapmasn0.c | 121 tolerance = aa->m_apm_exponent - (places + 4); in M_arctan_near_0() 122 dplaces = (places + 8) - aa->m_apm_exponent; in M_arctan_near_0() 139 if ((tmp0->m_apm_exponent < tolerance) || (tmp0->m_apm_sign == 0)) in M_arctan_near_0() 145 local_precision = dplaces + tmp0->m_apm_exponent; in M_arctan_near_0() 162 if ((tmp0->m_apm_exponent < tolerance) || (tmp0->m_apm_sign == 0)) in M_arctan_near_0() 168 local_precision = dplaces + tmp0->m_apm_exponent; in M_arctan_near_0()
|
H A D | mapm_lg4.c | 65 tolerance = xx->m_apm_exponent - (places + 6); in M_log_near_1() 66 dplaces = (places + 12) - xx->m_apm_exponent; in M_log_near_1() 81 if ((tmp0->m_apm_exponent < tolerance) || (tmp0->m_apm_sign == 0)) in M_log_near_1() 84 local_precision = dplaces + tmp0->m_apm_exponent; in M_log_near_1()
|
H A D | mapmsqrt.c | 121 nexp = aa->m_apm_exponent / 2; in m_apm_sqrt() 122 tmpN->m_apm_exponent -= 2 * nexp; in m_apm_sqrt() 170 if ((-4 * tmp7->m_apm_exponent) > tolerance) in m_apm_sqrt() 186 rr->m_apm_exponent += nexp; in m_apm_sqrt()
|
H A D | mapm_log.c | 171 mexp = a->m_apm_exponent; in m_apm_log() 184 if (tmp0->m_apm_exponent <= -4) in m_apm_log() 215 mexp = tmp2->m_apm_exponent - 2; in m_apm_log() 216 tmp2->m_apm_exponent = 2; /* force number between 10 & 100 */ in m_apm_log()
|
H A D | mapmcbrt.c | 85 nexp = aa->m_apm_exponent / 3; in m_apm_cbrt() 86 tmpN->m_apm_exponent -= 3 * nexp; in m_apm_cbrt() 129 if ((-4 * tmp8->m_apm_exponent) > tolerance) in m_apm_cbrt() 148 rr->m_apm_exponent += nexp; in m_apm_cbrt()
|
H A D | mapm_exp.c | 187 if (x->m_apm_exponent <= -3) /* already small enough so call _raw directly */ in m_apm_exp() 240 if (tmp7->m_apm_exponent == 0) in m_apm_exp() 329 kk = tmp1->m_apm_exponent; in M_exp_compute_nn() 391 if ((term->m_apm_exponent < tolerance) || (term->m_apm_sign == 0)) in M_raw_exp() 396 local_precision = local_precision + term->m_apm_exponent - prev_exp; in M_raw_exp() 402 prev_exp = term->m_apm_exponent; in M_raw_exp()
|
H A D | mapmasin.c | 212 if (xx->m_apm_exponent <= -4) /* input close to 0 ?? */ in m_apm_arctan() 218 if (xx->m_apm_exponent >= 4) /* large input */ in m_apm_arctan() 314 if (x->m_apm_exponent <= -4) /* input close to 0 ?? */ in m_apm_arcsin() 322 maxp = places + 8 - x->m_apm_exponent; in m_apm_arcsin() 323 local_precision = 20 - x->m_apm_exponent; in m_apm_arcsin() 363 if (((2 * tmp0->m_apm_exponent) < tolerance) || (tmp0->m_apm_sign == 0)) in m_apm_arcsin() 451 if (x->m_apm_exponent <= -4) /* input close to 0 ?? */ in m_apm_arccos() 500 if (((2 * tmp0->m_apm_exponent) < tolerance) || (tmp0->m_apm_sign == 0)) in m_apm_arccos()
|
H A D | mapm_mul.c | 91 nexp = a->m_apm_exponent + b->m_apm_exponent; in m_apm_multiply() 177 r->m_apm_exponent = nexp; in m_apm_multiply()
|
H A D | mapmutil.c | 147 atmp->m_apm_exponent = 0; in m_apm_init() 289 M_work_0_5->m_apm_exponent = atmp->m_apm_exponent - ii; in m_apm_round() 309 exponent = atmp->m_apm_exponent; in M_apm_normalize() 401 atmp->m_apm_exponent = exponent; in M_apm_normalize() 488 ctmp->m_apm_exponent++; in M_apm_scale() 503 ctmp->m_apm_exponent += ct; in M_apm_scale()
|
H A D | mapm_fpf.c | 71 xp = atmp->m_apm_exponent; in m_apm_to_fixpt_stringexp() 124 xp = btmp->m_apm_exponent; in m_apm_to_fixpt_stringex() 300 xp = ctmp->m_apm_exponent; in m_apm_to_fixpt_string() 419 xp = atmp->m_apm_exponent; in M_apm_round_fixpt() 436 btmp->m_apm_exponent += 1; in M_apm_round_fixpt()
|
H A D | mapm_rnd.c | 212 mrnd->m_apm_exponent -= 15; in m_apm_get_random() 285 atmp->m_apm_exponent = 15; in M_get_rnd_seed() 314 atmp->m_apm_exponent = 15; in M_get_rnd_seed() 387 atmp->m_apm_exponent = 15; in M_get_rnd_seed()
|
H A D | mapm_lg3.c | 102 tmp7->m_apm_exponent = -places; in M_check_log_places() 112 tmp7->m_apm_exponent -= 1; /* divide by 10 */ in M_check_log_places() 215 ((-2 * tmp1->m_apm_exponent) > tolerance)) in M_log_AGM_R_func()
|
H A D | mapm_set.c | 129 atmp->m_apm_exponent = len; in m_apm_set_long() 292 ctmp->m_apm_exponent = exponent; in m_apm_set_string() 297 ctmp->m_apm_exponent = 0; in m_apm_set_string() 404 i = ctmp->m_apm_exponent - 1; in m_apm_to_string()
|
H A D | mapm_pow.c | 124 if (yy->m_apm_exponent <= 4) in m_apm_pow() 129 if (yy->m_apm_exponent <= 7) in m_apm_pow()
|
H A D | mapm_add.c | 101 aexp = a->m_apm_exponent; in m_apm_add() 102 bexp = b->m_apm_exponent; in m_apm_add() 251 aexp = M_work1->m_apm_exponent; in m_apm_subtract() 252 bexp = M_work2->m_apm_exponent; in m_apm_subtract()
|
H A D | mapmistr.c | 67 ct = mtmp->m_apm_exponent; in m_apm_to_integer_string()
|
H A D | mapmfmul.c | 339 nexp = M_ain->m_apm_exponent + M_bin->m_apm_exponent; in M_fast_multiply() 408 rr->m_apm_exponent = nexp; in M_fast_multiply()
|
H A D | mapm_lg2.c | 113 if (((3 * tmp0->m_apm_exponent) < tolerance) || (tmp0->m_apm_sign == 0)) in M_log_solve_cubic()
|
H A D | mapm_cpi.c | 149 nn = -4 * c0->m_apm_exponent; in M_calculate_PI_AGM()
|
H A D | mapm5sin.c | 90 if (x->m_apm_exponent > 0) in M_4x_cos()
|