mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing. * elf/dl-reloc.c: Pretty printing. * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and procinfo-related variables in rtld_global struct. * elf/dl-support.c: Likewise. * elf/rtld.c: Likewise. * sysdeps/i386/i686/Makefile: Likewise. * sysdeps/i386/i686/hp-timing.c: Likewise. * sysdeps/i386/i686/hp-timing.h: Likewise. * sysdeps/ia64/Makefile: Likewise. * sysdeps/ia64/hp-timing.c: Likewise. * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise. * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise. * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise. * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise. * sysdeps/unix/sysv/linux/i386/Makefile: Likewise. * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise. * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise. * sysdeps/x86_64/Makefile: Likewise.
This commit is contained in:
@ -268,3 +268,26 @@ __strtoul_internal (const char *nptr, char **endptr, int base, int group)
|
||||
*endptr = (char *) nptr;
|
||||
return result * sign;
|
||||
}
|
||||
|
||||
|
||||
#if HP_TIMING_AVAIL && ULONG_MAX <= 4294967295UL
|
||||
/* We need this function to print the cycle count. On 64-bit machines the
|
||||
_itoa_word function should be used. */
|
||||
char *
|
||||
_itoa (value, buflim, base, upper_case)
|
||||
unsigned long long int value;
|
||||
char *buflim;
|
||||
unsigned int base;
|
||||
int upper_case;
|
||||
{
|
||||
char *bp = buflim;
|
||||
|
||||
assert (base == 10);
|
||||
|
||||
do
|
||||
*--bp = '0' + value % 10;
|
||||
while ((value /= 10) != 0);
|
||||
|
||||
return bp;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user