/haiku/src/libs/mapm/ |
H A D | mapmasin.c | 122 void m_apm_arctan2(M_APM rr, int places, M_APM yy, M_APM xx) in m_apm_arctan2() argument 139 M_check_PI_places(places); in m_apm_arctan2() 140 m_apm_round(rr, places, MM_lc_HALF_PI); in m_apm_arctan2() 153 M_check_PI_places(places); in m_apm_arctan2() 154 m_apm_round(rr, places, MM_lc_PI); in m_apm_arctan2() 168 m_apm_divide(tmp6, (places + 6), yy, xx); in m_apm_arctan2() 169 m_apm_arctan(tmp5, (places + 6), tmp6); in m_apm_arctan2() 173 m_apm_round(rr, places, tmp5); in m_apm_arctan2() 177 M_check_PI_places(places); in m_apm_arctan2() 182 m_apm_round(rr, places, tmp7); in m_apm_arctan2() [all …]
|
H A D | mapm5sin.c | 62 void M_5x_sin(M_APM r, int places, M_APM x) in M_5x_sin() argument 70 M_raw_sin(tmp8, (places + 6), tmp9); in M_5x_sin() 71 M_5x_do_it(tmp9, (places + 4), tmp8); in M_5x_sin() 72 M_5x_do_it(tmp8, (places + 4), tmp9); in M_5x_sin() 73 M_5x_do_it(r, places, tmp8); in M_5x_sin() 78 void M_4x_cos(M_APM r, int places, M_APM x) in M_4x_cos() argument 93 M_raw_cos(tmp8, (places + 8), tmp9); in M_4x_cos() 94 M_4x_do_it(tmp9, (places + 8), tmp8); in M_4x_cos() 95 M_4x_do_it(tmp8, (places + 6), tmp9); in M_4x_cos() 96 M_4x_do_it(tmp9, (places + 4), tmp8); in M_4x_cos() [all …]
|
H A D | mapm_sin.c | 85 void m_apm_sin(M_APM r, int places, M_APM a) in m_apm_sin() argument 90 M_limit_angle_to_pi(tmp3, (places + 6), a); in m_apm_sin() 91 M_5x_sin(r, places, tmp3); in m_apm_sin() 95 void m_apm_cos(M_APM r, int places, M_APM a) in m_apm_cos() argument 100 M_limit_angle_to_pi(tmp3, (places + 6), a); in m_apm_cos() 101 M_4x_cos(r, places, tmp3); in m_apm_cos() 105 void m_apm_sin_cos(M_APM sinv, M_APM cosv, int places, M_APM aa) in m_apm_sin_cos() argument 113 M_limit_angle_to_pi(tmp5, (places + 6), aa); in m_apm_sin_cos() 114 M_4x_cos(tmp7, (places + 6), tmp5); in m_apm_sin_cos() 124 M_cos_to_sin(tmp6, (places + 6), tmp7); in m_apm_sin_cos() [all …]
|
H A D | mapm_fpf.c | 65 int places, xp, dl, ii; in m_apm_to_fixpt_stringexp() local 68 places = dplaces; in m_apm_to_fixpt_stringexp() 73 if (places < 0) /* show ALL digits */ in m_apm_to_fixpt_stringexp() 87 ii = places; in m_apm_to_fixpt_stringexp() 99 m_apm_to_fixpt_stringex(cpr,places,atmp,ch_radx,ch_sep,ct_sep); in m_apm_to_fixpt_stringexp() 109 int ii, jj, kk, ct, dl, xp, no_sep_flg, places; in m_apm_to_fixpt_stringex() local 112 places = dplaces; in m_apm_to_fixpt_stringex() 126 if (places < 0) /* show ALL digits */ in m_apm_to_fixpt_stringex() 140 ii = places; in m_apm_to_fixpt_stringex() 154 m_apm_to_fixpt_string(cps, places, btmp); in m_apm_to_fixpt_stringex() [all …]
|
H A D | mapmasn0.c | 65 void M_arcsin_near_0(M_APM rr, int places, M_APM aa) in M_arcsin_near_0() argument 72 M_cos_to_sin(tmp5, (places + 8), aa); in M_arcsin_near_0() 73 m_apm_divide(tmp6, (places + 8), aa, tmp5); in M_arcsin_near_0() 74 M_arctan_near_0(rr, places, tmp6); in M_arcsin_near_0() 85 void M_arccos_near_0(M_APM rr, int places, M_APM aa) in M_arccos_near_0() argument 92 M_check_PI_places(places); in M_arccos_near_0() 93 M_arcsin_near_0(tmp1, (places + 4), aa); in M_arccos_near_0() 95 m_apm_round(rr, places, tmp2); in M_arccos_near_0() 108 void M_arctan_near_0(M_APM rr, int places, M_APM aa) in M_arctan_near_0() argument 121 tolerance = aa->m_apm_exponent - (places + 4); in M_arctan_near_0() [all …]
|
H A D | mapm_lg2.c | 70 void M_log_solve_cubic(M_APM rr, int places, M_APM nn) in M_log_solve_cubic() argument 83 tolerance = -(places + 4); in M_log_solve_cubic() 84 maxp = places + 16; in M_log_solve_cubic() 127 m_apm_round(rr, places, tmp3); in M_log_solve_cubic() 150 void M_log_basic_iteration(M_APM rr, int places, M_APM nn) in M_log_basic_iteration() argument 154 if (places < 360) in M_log_basic_iteration() 156 M_log_solve_cubic(rr, places, nn); in M_log_basic_iteration() 168 m_apm_exp(tmp1, (places + 8), tmp0); in M_log_basic_iteration() 172 M_log_near_1(tmp0, (places - 104), tmp1); in M_log_basic_iteration() 175 m_apm_round(rr, places, tmp1); in M_log_basic_iteration()
|
H A D | mapmhsin.c | 46 void m_apm_sinh(M_APM rr, int places, M_APM aa) in m_apm_sinh() argument 55 local_precision = places + 4; in m_apm_sinh() 61 m_apm_round(rr, places, tmp1); in m_apm_sinh() 69 void m_apm_cosh(M_APM rr, int places, M_APM aa) in m_apm_cosh() argument 78 local_precision = places + 4; in m_apm_cosh() 84 m_apm_round(rr, places, tmp1); in m_apm_cosh() 92 void m_apm_tanh(M_APM rr, int places, M_APM aa) in m_apm_tanh() argument 102 local_precision = places + 4; in m_apm_tanh() 109 m_apm_round(rr, places, tmp1); in m_apm_tanh()
|
H A D | mapm_log.c | 129 void m_apm_log10(M_APM rr, int places, M_APM aa) in m_apm_log10() argument 137 dplaces = places + 4; in m_apm_log10() 142 m_apm_round(rr, places, tmp8); in m_apm_log10() 146 void m_apm_log(M_APM r, int places, M_APM a) in m_apm_log() argument 162 dplaces = places + 8; in m_apm_log() 186 M_log_near_1(r, places, tmp0); in m_apm_log() 199 M_log_basic_iteration(r, places, a); in m_apm_log() 224 m_apm_round(r, places, tmp1); in m_apm_log()
|
H A D | mapmhasn.c | 58 void m_apm_arcsinh(M_APM rr, int places, M_APM aa) in m_apm_arcsinh() argument 77 m_apm_sqrt(tmp1, (places + 6), tmp2); in m_apm_arcsinh() 79 m_apm_log(rr, places, tmp2); in m_apm_arcsinh() 91 void m_apm_arccosh(M_APM rr, int places, M_APM aa) in m_apm_arccosh() argument 110 m_apm_sqrt(tmp1, (places + 6), tmp2); in m_apm_arccosh() 112 m_apm_log(rr, places, tmp2); in m_apm_arccosh() 122 void m_apm_arctanh(M_APM rr, int places, M_APM aa) in m_apm_arctanh() argument 144 local_precision = places + 8; in m_apm_arctanh() 151 m_apm_round(rr, places, tmp1); in m_apm_arctanh()
|
H A D | mapm_rcp.c | 52 void m_apm_divide(M_APM rr, int places, M_APM aa, M_APM bb) in m_apm_divide() argument 76 if (places < 250) in m_apm_divide() 78 M_apm_sdivide(rr, places, aa, bb); in m_apm_divide() 87 dplaces = nexp + places; in m_apm_divide() 89 dplaces = places; in m_apm_divide() 101 void m_apm_reciprocal(M_APM rr, int places, M_APM aa) in m_apm_reciprocal() argument 135 tolerance = places + 4; in m_apm_reciprocal() 136 dplaces = places + 16; in m_apm_reciprocal() 184 m_apm_round(rr, places, tmp1); in m_apm_reciprocal()
|
H A D | mapmrsin.c | 63 void M_raw_sin(M_APM rr, int places, M_APM xx) in M_raw_sin() argument 78 m_apm_round(tmp2, (places + 6), tmp8); in M_raw_sin() 80 dplaces = (places + 8) - xx->m_apm_exponent; in M_raw_sin() 81 tolerance = xx->m_apm_exponent - (places + 4); in M_raw_sin() 118 m_apm_round(rr, places, sum); in M_raw_sin() 127 void M_raw_cos(M_APM rr, int places, M_APM xx) in M_raw_cos() argument 143 m_apm_round(tmp9, (places + 6), tmp8); in M_raw_cos() 145 local_precision = places + 8; in M_raw_cos() 146 tolerance = -(places + 4); in M_raw_cos() 188 m_apm_round(rr, places, sum); in M_raw_cos()
|
H A D | mapm_pow.c | 83 void m_apm_pow(M_APM rr, int places, M_APM xx, M_APM yy) in m_apm_pow() argument 136 m_apm_integer_pow(rr, places, xx, atoi(sbuf)); in m_apm_pow() 152 if (M_last_log_digits >= places) in m_apm_pow() 160 m_apm_round(tmp9, (places + 8), M_last_xx_log); in m_apm_pow() 164 m_apm_log(tmp9, (places + 8), xx); in m_apm_pow() 166 M_last_log_digits = places + 2; in m_apm_pow() 175 m_apm_exp(rr, places, tmp8); in m_apm_pow()
|
H A D | mapm_lg3.c | 83 void M_check_log_places(int places) in M_check_log_places() argument 88 dplaces = places + 4; in M_check_log_places() 99 dplaces += 6 + (int)log10((double)places); in M_check_log_places() 102 tmp7->m_apm_exponent = -places; in M_check_log_places() 163 void M_log_AGM_R_func(M_APM rr, int places, M_APM aa, M_APM bb) in M_log_AGM_R_func() argument 178 tolerance = places + 8; in M_log_AGM_R_func() 179 dplaces = places + 16; in M_log_AGM_R_func() 222 m_apm_reciprocal(rr, places, tmp4); in M_log_AGM_R_func()
|
H A D | mapm_exp.c | 160 void m_apm_exp(M_APM r, int places, M_APM x) in m_apm_exp() argument 189 M_raw_exp(tmp9, (places + 6), x); in m_apm_exp() 190 m_apm_round(r, places, tmp9); in m_apm_exp() 222 dplaces = places + 8; in m_apm_exp() 286 m_apm_round(r, places, tmp9); in m_apm_exp() 364 void M_raw_exp(M_APM rr, int places, M_APM xx) in M_raw_exp() argument 374 local_precision = places + 8; in M_raw_exp() 375 tolerance = -(places + 4); in M_raw_exp()
|
H A D | mapmipwr.c | 49 void m_apm_integer_pow(M_APM rr, int places, M_APM aa, int mexp) in m_apm_integer_pow() argument 83 local_precision = places + 8; in m_apm_integer_pow() 108 m_apm_reciprocal(rr, places, tmpy); in m_apm_integer_pow() 112 m_apm_round(rr, places, tmpy); in m_apm_integer_pow()
|
H A D | mapm_cpi.c | 49 void M_check_PI_places(int places) in M_check_PI_places() argument 53 dplaces = places + 2; in M_check_PI_places() 110 void M_calculate_PI_AGM(M_APM outv, int places) in M_calculate_PI_AGM() argument 125 dplaces = places + 16; in M_calculate_PI_AGM() 169 m_apm_round(outv, places, tmp1); in M_calculate_PI_AGM()
|
H A D | mapm_lg4.c | 53 void M_log_near_1(M_APM rr, int places, M_APM xx) in M_log_near_1() argument 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() 98 m_apm_round(rr, places, tmp0); in M_log_near_1()
|
H A D | mapmsqrt.c | 90 void m_apm_sqrt(M_APM rr, int places, M_APM aa) in m_apm_sqrt() argument 126 tolerance = places + 4; in m_apm_sqrt() 127 dplaces = places + 16; in m_apm_sqrt() 185 m_apm_round(rr, places, tmp8); in m_apm_sqrt()
|
H A D | mapmcbrt.c | 55 void m_apm_cbrt(M_APM rr, int places, M_APM aa) in m_apm_cbrt() argument 90 tolerance = places + 4; in m_apm_cbrt() 91 maxp = places + 16; in m_apm_cbrt() 146 m_apm_round(rr, places, tmp8); in m_apm_cbrt()
|
H A D | mapm_div.c | 123 void M_apm_sdivide(M_APM r, int places, M_APM a, M_APM b) in M_apm_sdivide() argument 185 iterations = nexp + places + 1; in M_apm_sdivide() 187 iterations = places + 1; in M_apm_sdivide()
|
H A D | mapm_set.c | 322 void m_apm_to_string(char *s, int places, M_APM mtmp) in m_apm_to_string() argument 330 dec_places = places; in m_apm_to_string()
|
H A D | mapmutil.c | 269 void m_apm_round(M_APM btmp, int places, M_APM atmp) in m_apm_round() argument 281 ii = places + 1; in m_apm_round()
|
/haiku/src/system/libroot/os/arch/m68k/ |
H A D | Jamfile | 16 compatibility.c # only here until the places where those functions
|
/haiku/src/system/libroot/os/arch/ppc/ |
H A D | Jamfile | 18 compatibility.c # only here until the places where those functions
|
/haiku/headers/build/gcc-2.95.3/ |
H A D | README | 8 is to fix the places in the header files which use constructs
|