Searched refs:m_apm_data (Results 1 - 10 of 10) sorted by relevance

/haiku/src/libs/mapm/
H A Dmapmutil.c150 if ((atmp->m_apm_data = (UCHAR *)MAPM_MALLOC(84)) == NULL)
157 atmp->m_apm_data[0] = 0;
166 MAPM_FREE(atmp->m_apm_data);
319 M_get_div_rem_10((int)atmp->m_apm_data[0], &numdiv, &numrem);
329 ucp = atmp->m_apm_data;
340 memmove(atmp->m_apm_data, ucp, (index + 1 - i));
348 M_get_div_rem_10((int)atmp->m_apm_data[i+1], &numdiv, &numrem2);
349 atmp->m_apm_data[i] = 10 * numrem + numdiv;
364 ucp = atmp->m_apm_data + index;
379 M_get_div_rem_10((int)atmp->m_apm_data[inde
[all...]
H A Dmapm_div.c158 if (b->m_apm_data[0] >= 50)
165 k = 100 / (b->m_apm_data[0] + 1);
177 b0 = 100 * (int)M_div_workb->m_apm_data[0];
180 b0 += M_div_workb->m_apm_data[1];
193 if ((vp = MAPM_REALLOC(r->m_apm_data, (k + 32))) == NULL)
201 r->m_apm_data = (UCHAR *)vp;
214 r->m_apm_data[0] = 10;
239 trial_numer = 10000L * (long)M_div_worka->m_apm_data[0];
243 trial_numer += 100 * M_div_worka->m_apm_data[1]
244 + M_div_worka->m_apm_data[
[all...]
H A Dmapm_add.c142 r->m_apm_data[j] += carry + M_work2->m_apm_data[j];
144 if (r->m_apm_data[j] >= 100)
146 r->m_apm_data[j] -= 100;
165 r->m_apm_data[j] += carry + M_work1->m_apm_data[j];
167 if (r->m_apm_data[j] >= 100)
169 r->m_apm_data[j] -= 100;
278 itmp = (int)r->m_apm_data[j] - ((int)M_work2->m_apm_data[
[all...]
H A Dmapmutl2.c101 ii = (int)aa->m_apm_data[ii];
125 z->m_apm_data[0] = 0;
150 if ((vp = MAPM_REALLOC(dest->m_apm_data, (j + 32))) == NULL)
158 dest->m_apm_data = (UCHAR *)vp;
165 memcpy(dest->m_apm_data, src->m_apm_data, j);
207 if (ltmp->m_apm_data[i] > rtmp->m_apm_data[i])
210 if (ltmp->m_apm_data[i] < rtmp->m_apm_data[
[all...]
H A Dmapm_mul.c122 if ((vp = MAPM_REALLOC(r->m_apm_data, (ii + 32))) == NULL)
130 r->m_apm_data = (UCHAR *)vp;
136 cp = r->m_apm_data;
145 ai = (int)a->m_apm_data[--ii];
149 itmp = ai * b->m_apm_data[--jj];
H A Dmapmfmul.c360 if ((vp = MAPM_REALLOC(rr->m_apm_data, (k + 32))) == NULL)
368 rr->m_apm_data = (UCHAR *)vp;
373 M_fmul_div_conq(rr->m_apm_data, M_ain->m_apm_data,
374 M_bin->m_apm_data, ii);
388 M_fast_mul_fft(rr->m_apm_data, M_ain->m_apm_data,
389 M_bin->m_apm_data, ii);
395 M_fmul_div_conq(rr->m_apm_data, M_ain->m_apm_data,
[all...]
H A Dmapm_set.c154 atmp->m_apm_data[ii] = 10 * ch + *p++ - '0';
257 if ((vp = MAPM_REALLOC(ctmp->m_apm_data, (j + 32))) == NULL)
265 ctmp->m_apm_data = (UCHAR *)vp;
288 ctmp->m_apm_data[i] = ch;
289 ctmp->m_apm_data[i+1] = 0;
383 M_get_div_rem_10((int)ctmp->m_apm_data[index],&numdiv,&numrem);
H A Dmapmistr.c116 ucp = mtmp->m_apm_data;
H A Dmapm_fpf.c346 ucp = ctmp->m_apm_data;
432 if (atmp->m_apm_data[0] >= 50) /* digit >= 5, round up */
435 btmp->m_apm_data[0] = 10;
/haiku/headers/libs/mapm/
H A Dm_apm.h174 UCHAR *m_apm_data; member in struct:__anon102

Completed in 99 milliseconds