|
@@ -21,8 +21,8 @@
|
|
|
char attribute_hidden *_uintmaxtostr(register char * __restrict bufend, uintmax_t uval,
|
|
|
int base, __UIM_CASE alphacase)
|
|
|
{
|
|
|
- int negative;
|
|
|
- unsigned int digit;
|
|
|
+ int negative;
|
|
|
+ unsigned int digit;
|
|
|
#ifdef INTERNAL_DIV_MOD
|
|
|
unsigned int H, L, high, low, rh;
|
|
|
#endif
|
|
@@ -55,10 +55,10 @@ char attribute_hidden *_uintmaxtostr(register char * __restrict bufend, uintmax_
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
- *bufend = '\0';
|
|
|
+ *bufend = '\0';
|
|
|
|
|
|
#ifndef INTERNAL_DIV_MOD
|
|
|
- do {
|
|
|
+ do {
|
|
|
#ifndef __LOCALE_C_ONLY
|
|
|
if (!grouping) {
|
|
|
bufend -= __UCLIBC_CURLOCALE->thousands_sep_len;
|
|
@@ -88,7 +88,7 @@ char attribute_hidden *_uintmaxtostr(register char * __restrict bufend, uintmax_
|
|
|
{
|
|
|
*--bufend = ( (digit < 10) ? digit + '0' : digit + alphacase );
|
|
|
}
|
|
|
- } while (uval);
|
|
|
+ } while (uval);
|
|
|
|
|
|
#else
|
|
|
|
|
@@ -101,7 +101,7 @@ char attribute_hidden *_uintmaxtostr(register char * __restrict bufend, uintmax_
|
|
|
low = (unsigned int) uval;
|
|
|
high = (unsigned int) (uval >> (sizeof(unsigned int) * CHAR_BIT));
|
|
|
|
|
|
- do {
|
|
|
+ do {
|
|
|
#ifndef __LOCALE_C_ONLY
|
|
|
if (!grouping) {
|
|
|
bufend -= __UCLIBC_CURLOCALE->thousands_sep_len;
|
|
@@ -140,13 +140,13 @@ char attribute_hidden *_uintmaxtostr(register char * __restrict bufend, uintmax_
|
|
|
{
|
|
|
*--bufend = ( (digit < 10) ? digit + '0' : digit + alphacase );
|
|
|
}
|
|
|
- } while (low | high);
|
|
|
+ } while (low | high);
|
|
|
|
|
|
#endif
|
|
|
|
|
|
- if (negative) {
|
|
|
+ if (negative) {
|
|
|
*--bufend = '-';
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
- return bufend;
|
|
|
+ return bufend;
|
|
|
}
|