Home
last modified time | relevance | path

Searched refs:numrem (Results 1 – 4 of 4) sorted by relevance

/haiku/src/libs/mapm/
H A Dmapmutil.c303 UCHAR *ucp, numdiv, numrem, numrem2; in M_apm_normalize() local
319 M_get_div_rem_10((int)atmp->m_apm_data[0], &numdiv, &numrem); in M_apm_normalize()
326 if (numrem == 0) /* both nibbles are 0, we can move full bytes */ in M_apm_normalize()
349 atmp->m_apm_data[i] = 10 * numrem + numdiv; in M_apm_normalize()
350 numrem = numrem2; in M_apm_normalize()
379 M_get_div_rem_10((int)atmp->m_apm_data[index], &numdiv, &numrem); in M_apm_normalize()
381 if (numrem != 0) /* last digit non-zero, all done */ in M_apm_normalize()
407 UCHAR *chp, numdiv, numdiv2, numrem; in M_apm_scale() local
444 M_get_div_rem_10((int)chp[ii], &numdiv2, &numrem); in M_apm_scale()
446 chp[ii + 1] = 10 * numrem + numdiv; in M_apm_scale()
[all …]
H A Dmapmistr.c62 UCHAR *ucp, numdiv, numrem; in m_apm_to_integer_string() local
120 M_get_div_rem_10((int)(*ucp++), &numdiv, &numrem); in m_apm_to_integer_string()
123 *p++ = numrem + '0'; in m_apm_to_integer_string()
H A Dmapm_set.c327 UCHAR numdiv, numrem; in m_apm_to_string() local
380 numrem = 0; in m_apm_to_string()
383 M_get_div_rem_10((int)ctmp->m_apm_data[index],&numdiv,&numrem); in m_apm_to_string()
398 *cp++ = numrem + '0'; in m_apm_to_string()
H A Dmapm_fpf.c252 UCHAR *ucp, numdiv, numrem; in m_apm_to_fixpt_string() local
353 M_get_div_rem_10((int)(*ucp++), &numdiv, &numrem); in m_apm_to_fixpt_string()
356 cpw[ii++] = numrem + '0'; in m_apm_to_fixpt_string()