ntoab: Use __mesabi_uldiv only on __MESC__.
* lib/mes/ntoab.c (ntoab): Use __mesabi_uldiv only on __MESC__.
This commit is contained in:
parent
b8dace81c6
commit
9b0efad295
|
@ -42,7 +42,12 @@ ntoab (long x, int base, int signed_p)
|
|||
do
|
||||
{
|
||||
unsigned long i;
|
||||
#if __MESC__
|
||||
u = __mesabi_uldiv(u, (unsigned long) base, &i);
|
||||
#else
|
||||
i = i % base;
|
||||
u = u / base;
|
||||
#endif
|
||||
*p-- = i > 9 ? 'a' + i - 10 : '0' + i;
|
||||
}
|
||||
while (u);
|
||||
|
|
Loading…
Reference in a new issue