Searched refs:atmp (Results 1 - 6 of 6) sorted by relevance

/haiku/src/libs/mapm/
H A Dmapmutil.c127 M_APM atmp; local
136 if ((atmp = (M_APM)MAPM_MALLOC(sizeof(M_APM_struct))) == NULL)
143 atmp->m_apm_id = M_APM_IDENT;
144 atmp->m_apm_malloclength = 80;
145 atmp->m_apm_datalength = 1;
146 atmp->m_apm_refcount = 1; /* not for us, for MAPM C++ class */
147 atmp->m_apm_exponent = 0;
148 atmp->m_apm_sign = 0;
150 if ((atmp->m_apm_data = (UCHAR *)MAPM_MALLOC(84)) == NULL)
157 atmp
161 m_apm_free(M_APM atmp) argument
269 m_apm_round(M_APM btmp, int places, M_APM atmp) argument
300 M_apm_normalize(M_APM atmp) argument
[all...]
H A Dmapm_rnd.c254 M_APM atmp; local
256 atmp = M_get_stack_var();
284 m_apm_set_string(atmp, buf1);
285 atmp->m_apm_exponent = 15;
286 m_apm_integer_divide(mm, atmp, MM_One);
303 M_APM atmp; local
305 atmp = M_get_stack_var();
313 m_apm_set_string(atmp, buf1);
314 atmp->m_apm_exponent = 15;
315 m_apm_integer_divide(mm, atmp, MM_On
347 M_APM atmp; local
[all...]
H A Dmapmutl2.c52 int m_apm_sign(M_APM atmp) argument
54 return(atmp->m_apm_sign);
57 int m_apm_exponent(M_APM atmp) argument
59 if (atmp->m_apm_sign == 0)
62 return(atmp->m_apm_exponent - 1);
65 int m_apm_significant_digits(M_APM atmp) argument
67 return(atmp->m_apm_datalength);
70 int m_apm_is_integer(M_APM atmp) argument
72 if (atmp->m_apm_sign == 0)
75 if (atmp
[all...]
H A Dmapmgues.c161 void m_apm_set_double(M_APM atmp, double dd) argument
166 M_set_to_zero(atmp);
176 M_set_to_zero(atmp);
206 m_apm_set_string(atmp, buf);
H A Dmapm_fpf.c62 char *m_apm_to_fixpt_stringexp(int dplaces, M_APM atmp, argument
70 dl = atmp->m_apm_datalength;
71 xp = atmp->m_apm_exponent;
99 m_apm_to_fixpt_stringex(cpr,places,atmp,ch_radx,ch_sep,ct_sep);
104 void m_apm_to_fixpt_stringex(char *s, int dplaces, M_APM atmp, argument
116 m_apm_absolute_value(btmp, atmp); /* do conversion of positive number */
162 if (atmp->m_apm_sign == -1) /* if input number negative */
415 void M_apm_round_fixpt(M_APM btmp, int places, M_APM atmp) argument
419 xp = atmp->m_apm_exponent;
426 m_apm_round(btmp, ii, atmp);
[all...]
H A Dmapm_set.c102 void m_apm_set_long(M_APM atmp, long mm) argument
111 M_set_to_zero(atmp);
120 atmp->m_apm_sign = -1;
125 atmp->m_apm_sign = 1;
129 atmp->m_apm_exponent = len;
146 atmp->m_apm_datalength = ++len;
154 atmp->m_apm_data[ii] = 10 * ch + *p++ - '0';

Completed in 41 milliseconds