Home
last modified time | relevance | path

Searched refs:dplaces (Results 1 – 10 of 10) sorted by relevance

/haiku/src/libs/mapm/
H A Dmapm_lg3.c86 int dplaces; in M_check_log_places() local
88 dplaces = places + 4; in M_check_log_places()
90 if (dplaces > MM_lc_log_digits) in M_check_log_places()
92 MM_lc_log_digits = dplaces + 4; in M_check_log_places()
99 dplaces += 6 + (int)log10((double)places); in M_check_log_places()
104 M_log_AGM_R_func(tmp8, dplaces, MM_One, tmp7); in M_check_log_places()
108 M_log_AGM_R_func(tmp9, dplaces, MM_One, tmp6); in M_check_log_places()
114 M_log_AGM_R_func(tmp9, dplaces, MM_One, tmp7); in M_check_log_places()
117 m_apm_reciprocal(MM_lc_log10R, dplaces, MM_lc_log10); /* 1 / log(10) */ in M_check_log_places()
166 int tolerance, dplaces; in M_log_AGM_R_func() local
[all …]
H A Dmapm_cpi.c51 int dplaces; in M_check_PI_places() local
53 dplaces = places + 2; in M_check_PI_places()
55 if (dplaces > MM_lc_PI_digits) in M_check_PI_places()
57 MM_lc_PI_digits = dplaces + 2; in M_check_PI_places()
61 M_calculate_PI_AGM(MM_lc_PI, (dplaces + 5)); in M_check_PI_places()
113 int dplaces, nn; in M_calculate_PI_AGM() local
125 dplaces = places + 16; in M_calculate_PI_AGM()
130 m_apm_sqrt(b0, dplaces, MM_0_5); /* sqrt(0.5) */ in M_calculate_PI_AGM()
138 m_apm_sqrt(b1, dplaces, tmp1); in M_calculate_PI_AGM()
154 m_apm_round(sum, dplaces, tmp1); in M_calculate_PI_AGM()
[all …]
H A Dmapm_log.c131 int dplaces; in m_apm_log10() local
137 dplaces = places + 4; in m_apm_log10()
138 M_check_log_places(dplaces + 45); in m_apm_log10()
140 m_apm_log(tmp9, dplaces, aa); in m_apm_log10()
149 int mexp, dplaces; in m_apm_log() local
162 dplaces = places + 8; in m_apm_log()
195 M_check_log_places(dplaces + 25); in m_apm_log()
218 M_log_basic_iteration(tmp0, dplaces, tmp2); in m_apm_log()
H A Dmapm_rcp.c55 int sn, nexp, dplaces; in m_apm_divide() local
87 dplaces = nexp + places; in m_apm_divide()
89 dplaces = places; in m_apm_divide()
94 m_apm_reciprocal(tmp0, (dplaces + 8), bb); in m_apm_divide()
96 m_apm_round(rr, dplaces, tmp1); in m_apm_divide()
105 int ii, bflag, dplaces, nexp, tolerance; in m_apm_reciprocal() local
136 dplaces = places + 16; in m_apm_reciprocal()
159 m_apm_round(guess, dplaces, tmp1); in m_apm_reciprocal()
H A Dmapm_lg4.c56 int tolerance, dplaces, local_precision; in M_log_near_1() local
66 dplaces = (places + 12) - xx->m_apm_exponent; in M_log_near_1()
69 m_apm_divide(tmpS, (dplaces + 6), xx, tmp0); in M_log_near_1()
73 m_apm_round(tmp2, (dplaces + 6), tmp0); in M_log_near_1()
84 local_precision = dplaces + tmp0->m_apm_exponent; in M_log_near_1()
H A Dmapmasn0.c111 int tolerance, dplaces, local_precision; in M_arctan_near_0() local
122 dplaces = (places + 8) - aa->m_apm_exponent; in M_arctan_near_0()
127 m_apm_round(tmp2, (dplaces + 8), tmp0); in M_arctan_near_0()
145 local_precision = dplaces + tmp0->m_apm_exponent; in M_arctan_near_0()
168 local_precision = dplaces + tmp0->m_apm_exponent; in M_arctan_near_0()
H A Dmapmsqrt.c93 int ii, bflag, nexp, tolerance, dplaces; in m_apm_sqrt() local
127 dplaces = places + 16; in m_apm_sqrt()
144 m_apm_round(tmp7, dplaces, tmp8); in m_apm_sqrt()
152 m_apm_round(guess, dplaces, tmp9); in m_apm_sqrt()
H A Dmapm_exp.c163 int dplaces, nn, ii; in m_apm_exp() local
222 dplaces = places + 8; in m_apm_exp()
226 M_check_log_places(dplaces); in m_apm_exp()
262 M_raw_exp(tmp8, dplaces, tmp9); in m_apm_exp()
275 m_apm_round(tmp8, dplaces, tmp9); in m_apm_exp()
283 m_apm_integer_pow(tmp7, dplaces, MM_Two, nn); in m_apm_exp()
H A Dmapm_fpf.c62 char *m_apm_to_fixpt_stringexp(int dplaces, M_APM atmp, in m_apm_to_fixpt_stringexp() argument
68 places = dplaces; in m_apm_to_fixpt_stringexp()
104 void m_apm_to_fixpt_stringex(char *s, int dplaces, M_APM atmp, in m_apm_to_fixpt_stringex() argument
112 places = dplaces; in m_apm_to_fixpt_stringex()
247 void m_apm_to_fixpt_string(char *ss, int dplaces, M_APM mtmp) in m_apm_to_fixpt_string() argument
258 places = dplaces; in m_apm_to_fixpt_string()
H A Dmapmrsin.c66 int tolerance, flag, local_precision, dplaces; in M_raw_sin() local
80 dplaces = (places + 8) - xx->m_apm_exponent; in M_raw_sin()
93 local_precision = dplaces + term->m_apm_exponent; in M_raw_sin()