From 5ae3e846b9e5dc0c32b581dff29aaf8587f89bfa Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 29 Jun 1997 22:05:27 +0000 Subject: Update. 1997-06-29 23:43 Ulrich Drepper * config.make.in: Define need-nopic-initfini. * configure.in: Write out nopic_initfini. * csu/Makefile: Generate no-PIC crt code if need-nopic-initfini is defined. * sysdeps/i386/fpu/fraiseexcpt.c: Correct FE_INEXACT case. * sysdeps/sparc/rem.S: Get trap definition properly. * sysdeps/sparc/sdiv.S: Likewise. * sysdeps/sparc/udiv.S: Likewise. * sysdeps/sparc/urem.S: Likewise. * sysdeps/sparc/setjmp.S: Include . * sysdeps/sparc/sys/trap.h: New file. * sysdeps/unix/sysv/linux/sparc/sys/trap.h: New file. 1997-06-25 10:26 Thorsten Kukuk * sysdeps/generic/rpc/auth.h: Add xdr_opaque_auth declaration. 1997-06-29 10:34 Fila Kolodny * sysdeps/mach/hurd/select.c (__select): Change MACH_MSG_SIZE_INTEGER_T to MACH_MSG_TYPE_INTEGER_T. 1997-06-29 01:04 Richard Henderson Initial sparc64-linux support: * configure.in: Recognize sparc64 as being different from sparc. * io/ftwtest-sh: Only invoke ld.so if it exists. * math/Makefile (LDLIBS-*): Change from libm to math/libm to get static tests to link. Honour $(omit-long-double-fcts) == yes. * math/libm-test.c (test_single_exception): The argument to fetestexcept is `int' not `fexcept_t'. * shlib-versions: Recognize sparc64. * signal/signal.h: Add typedef for stack_t. * stdio-common/_itoa.c: Defaulting UMUL_TIME==UDIV_TIME is broken. Attempt to fix up most of this by cleaning up assumptions below, but give up and change the defaults. * setjmp/longjmp.c: Moved to ... * sysdeps/generic/longjmp.c: ... here. * setjmp/sigjmp.c: Moved to ... * sysdeps/generic/sigjmp.c: ... here. * sysdeps/sparc/bsd-_setjmp.S [PIC]: There wasn't even valid asm here. Ought to fix up gas to catch these silly things properly. * sysdeps/sparc/bsd-setjmp.S: Likewise. * sysdeps/unix/sysv/linux/sparc/errno.c: Remove. * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Remove. * sysdeps/unix/sysv/linux/sparc/kernel_stat.h: Tell xstat about the unused fields. * sysdeps/sparc/sparc64/add_n.s: Moved to ... * sysdeps/sparc64/add_n.S: ... here. Fix up %g4 and stack usage. * sysdeps/sparc/sparc64/addmul_1.s: Likewise. * sysdeps/sparc/sparc64/gmp-mparam.h: Likewise. * sysdeps/sparc/sparc64/lshift.s: Likewise. * sysdeps/sparc/sparc64/mul_1.s: Likewise. * sysdeps/sparc/sparc64/rshift.s: Likewise. * sysdeps/sparc/sparc64/sub_n.s: Likewise. * sysdeps/sparc/sparc64/submul_1.s: Likewise. * sysdeps/sparc64/Implies: New file. * sysdeps/sparc64/Makefile: Likewise. * sysdeps/sparc64/bits/endian.h: Likewise. * sysdeps/sparc64/bsd-_setjmp.S: Likewise. * sysdeps/sparc64/bsd-setjmp.S: Likewise. * sysdeps/sparc64/dl-machine.h: Likewise. * sysdeps/sparc64/elf/Makefile: Likewise. * sysdeps/sparc64/elf/crtbegin.S: Likewise. * sysdeps/sparc64/elf/crtbeginS.S: Likewise. * sysdeps/sparc64/elf/crtend.S: Likewise. * sysdeps/sparc64/elf/crtendS.S: Likewise. * sysdeps/sparc64/elf/start.S: Likewise. * sysdeps/sparc64/fpu_control.h: Likewise. * sysdeps/unix/sysv/linux/sparc64/Makefile: Likewise. * sysdeps/unix/sysv/linux/sparc64/__longjmp.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/bits/setjmp.h: Likewise. * sysdeps/unix/sysv/linux/sparc64/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/sparc64/brk.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/clone.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/fork.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/getcontext.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/init-first.h: Likewise. * sysdeps/unix/sysv/linux/sparc64/kernel_stat.h: Likewise. * sysdeps/unix/sysv/linux/sparc64/longjmp.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/pipe.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/profil-counter.h: Likewise. * sysdeps/unix/sysv/linux/sparc64/setcontext.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/setjmp.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/sigjmp.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/sparc64/sysdep.S: Likewise. * sysdeps/unix/sysv/linux/sparc64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sparc64/ucontext.h: Likewise. 1997-06-28 16:28 H.J. Lu * configure.in: Add -nostartfiles -nostdlib when check for --version-script. 1997-06-28 12:03 H.J. Lu * sysdeps/powerpc/bits/endian.h: New file. 1997-06-28 20:52 Ulrich Drepper * sysdeps/unix/sysv/linux/syscalls.list: Add getresgid and setresgid. --- stdio-common/_itoa.c | 86 +++++++++++++++++++++++++--------------------------- 1 file changed, 42 insertions(+), 44 deletions(-) (limited to 'stdio-common/_itoa.c') diff --git a/stdio-common/_itoa.c b/stdio-common/_itoa.c index cf0b0f1235..77181d940a 100644 --- a/stdio-common/_itoa.c +++ b/stdio-common/_itoa.c @@ -33,7 +33,7 @@ # define UMUL_TIME 1 #endif #ifndef UDIV_TIME -# define UDIV_TIME 1 +# define UDIV_TIME 3 #endif /* Control memory layout. */ @@ -68,14 +68,12 @@ struct base_table_t /* To reduce the memory needed we include some fields of the tables only conditionally. */ -#if BITS_PER_MP_LIMB == 32 -# if UDIV_TIME > 2 * UMUL_TIME -# define SEL1(X) X, -# define SEL2(X) ,X -# else -# define SEL1(X) -# define SEL2(X) -# endif +#if UDIV_TIME > 2 * UMUL_TIME +# define SEL1(X) X, +# define SEL2(X) ,X +#else +# define SEL1(X) +# define SEL2(X) #endif @@ -83,41 +81,41 @@ struct base_table_t static const struct base_table_t base_table[] = { #if BITS_PER_MP_LIMB == 64 - /* 2 */ {0ul, 1, 1}, - /* 3 */ {0xaaaaaaaaaaaaaaabul, 0, 1}, - /* 4 */ {0ul, 1, 2}, - /* 5 */ {0xcccccccccccccccdul, 0, 2}, - /* 6 */ {0xaaaaaaaaaaaaaaabul, 0, 2}, - /* 7 */ {0x2492492492492493ul, 1, 3}, - /* 8 */ {0ul, 1, 3}, - /* 9 */ {0xe38e38e38e38e38ful, 0, 3}, - /* 10 */ {0xcccccccccccccccdul, 0, 3}, - /* 11 */ {0x2e8ba2e8ba2e8ba3ul, 0, 1}, - /* 12 */ {0xaaaaaaaaaaaaaaabul, 0, 3}, - /* 13 */ {0x4ec4ec4ec4ec4ec5ul, 0, 2}, - /* 14 */ {0x2492492492492493ul, 1, 4}, - /* 15 */ {0x8888888888888889ul, 0, 3}, - /* 16 */ {0ul, 1, 4}, - /* 17 */ {0xf0f0f0f0f0f0f0f1ul, 0, 4}, - /* 18 */ {0xe38e38e38e38e38ful, 0, 4}, - /* 19 */ {0xd79435e50d79435ful, 0, 4}, - /* 20 */ {0xcccccccccccccccdul, 0, 4}, - /* 21 */ {0x8618618618618619ul, 1, 5}, - /* 22 */ {0x2e8ba2e8ba2e8ba3ul, 0, 2}, - /* 23 */ {0x642c8590b21642c9ul, 1, 5}, - /* 24 */ {0xaaaaaaaaaaaaaaabul, 0, 4}, - /* 25 */ {0x47ae147ae147ae15ul, 1, 5}, - /* 26 */ {0x4ec4ec4ec4ec4ec5ul, 0, 3}, - /* 27 */ {0x97b425ed097b425ful, 0, 4}, - /* 28 */ {0x2492492492492493ul, 1, 5}, - /* 29 */ {0x1a7b9611a7b9611bul, 1, 5}, - /* 30 */ {0x8888888888888889ul, 0, 4}, - /* 31 */ {0x0842108421084211ul, 1, 5}, - /* 32 */ {0ul, 1, 5}, - /* 33 */ {0x0f83e0f83e0f83e1ul, 0, 1}, - /* 34 */ {0xf0f0f0f0f0f0f0f1ul, 0, 5}, - /* 35 */ {0xea0ea0ea0ea0ea0ful, 0, 5}, - /* 36 */ {0xe38e38e38e38e38ful, 0, 5} + /* 2 */ {SEL1(0ul) 1, 1}, + /* 3 */ {SEL1(0xaaaaaaaaaaaaaaabul) 0, 1}, + /* 4 */ {SEL1(0ul) 1, 2}, + /* 5 */ {SEL1(0xcccccccccccccccdul) 0, 2}, + /* 6 */ {SEL1(0xaaaaaaaaaaaaaaabul) 0, 2}, + /* 7 */ {SEL1(0x2492492492492493ul) 1, 3}, + /* 8 */ {SEL1(0ul) 1, 3}, + /* 9 */ {SEL1(0xe38e38e38e38e38ful) 0, 3}, + /* 10 */ {SEL1(0xcccccccccccccccdul) 0, 3}, + /* 11 */ {SEL1(0x2e8ba2e8ba2e8ba3ul) 0, 1}, + /* 12 */ {SEL1(0xaaaaaaaaaaaaaaabul) 0, 3}, + /* 13 */ {SEL1(0x4ec4ec4ec4ec4ec5ul) 0, 2}, + /* 14 */ {SEL1(0x2492492492492493ul) 1, 4}, + /* 15 */ {SEL1(0x8888888888888889ul) 0, 3}, + /* 16 */ {SEL1(0ul) 1, 4}, + /* 17 */ {SEL1(0xf0f0f0f0f0f0f0f1ul) 0, 4}, + /* 18 */ {SEL1(0xe38e38e38e38e38ful) 0, 4}, + /* 19 */ {SEL1(0xd79435e50d79435ful) 0, 4}, + /* 20 */ {SEL1(0xcccccccccccccccdul) 0, 4}, + /* 21 */ {SEL1(0x8618618618618619ul) 1, 5}, + /* 22 */ {SEL1(0x2e8ba2e8ba2e8ba3ul) 0, 2}, + /* 23 */ {SEL1(0x642c8590b21642c9ul) 1, 5}, + /* 24 */ {SEL1(0xaaaaaaaaaaaaaaabul) 0, 4}, + /* 25 */ {SEL1(0x47ae147ae147ae15ul) 1, 5}, + /* 26 */ {SEL1(0x4ec4ec4ec4ec4ec5ul) 0, 3}, + /* 27 */ {SEL1(0x97b425ed097b425ful) 0, 4}, + /* 28 */ {SEL1(0x2492492492492493ul) 1, 5}, + /* 29 */ {SEL1(0x1a7b9611a7b9611bul) 1, 5}, + /* 30 */ {SEL1(0x8888888888888889ul) 0, 4}, + /* 31 */ {SEL1(0x0842108421084211ul) 1, 5}, + /* 32 */ {SEL1(0ul) 1, 5}, + /* 33 */ {SEL1(0x0f83e0f83e0f83e1ul) 0, 1}, + /* 34 */ {SEL1(0xf0f0f0f0f0f0f0f1ul) 0, 5}, + /* 35 */ {SEL1(0xea0ea0ea0ea0ea0ful) 0, 5}, + /* 36 */ {SEL1(0xe38e38e38e38e38ful) 0, 5} #endif #if BITS_PER_MP_LIMB == 32 /* 2 */ {SEL1(0ul) 1, 1, {0, 31, 0x80000000ul SEL2(0xfffffffful)}}, -- cgit v1.2.3