Home
last modified time | relevance | path

Searched refs:m_apm_exponent (Results 1 – 25 of 26) sorted by relevance

12

/haiku/src/libs/mapm/
H A Dmapm_div.c109 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 Dmapm_flr.c64 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 Dmapm_rcp.c84 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 Dmapmrsin.c80 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 Dmapmutl2.c57 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 Dmapmasn0.c121 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 Dmapm_lg4.c65 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 Dmapmsqrt.c121 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 Dmapm_log.c171 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 Dmapmcbrt.c85 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 Dmapm_exp.c187 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 Dmapmasin.c212 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 Dmapm_mul.c91 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 Dmapmutil.c147 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 Dmapm_fpf.c71 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 Dmapm_rnd.c212 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 Dmapm_lg3.c102 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 Dmapm_set.c129 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 Dmapm_pow.c124 if (yy->m_apm_exponent <= 4) in m_apm_pow()
129 if (yy->m_apm_exponent <= 7) in m_apm_pow()
H A Dmapm_add.c101 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 Dmapmistr.c67 ct = mtmp->m_apm_exponent; in m_apm_to_integer_string()
H A Dmapmfmul.c339 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 Dmapm_lg2.c113 if (((3 * tmp0->m_apm_exponent) < tolerance) || (tmp0->m_apm_sign == 0)) in M_log_solve_cubic()
H A Dmapm_cpi.c149 nn = -4 * c0->m_apm_exponent; in M_calculate_PI_AGM()
H A Dmapm5sin.c90 if (x->m_apm_exponent > 0) in M_4x_cos()

12