From b259e74660448b2c316b90fed293f479f70ef56a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 23 Aug 1998 18:23:26 +0000 Subject: Update. 1998-08-23 Ulrich Drepper * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add __modify_ldt and modify_ldt. * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt. * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use orl $-1 instead of movl $-1 to save two bytes. * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER): Likewise. 1998-08-17 H.J. Lu * libio/Versions (_IO_do_write, _IO_file_attach, _IO_file_close_it, _IO_file_finish, _IO_file_fopen, _IO_file_init, _IO_file_overflow, _IO_file_seekoff, _IO_file_setbuf, _IO_file_sync, _IO_file_underflow, _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1. * libio/fileops.c (_IO_do_write, _IO_file_attach, _IO_file_close_it, _IO_file_finish, _IO_file_fopen, _IO_file_init, _IO_file_overflow, _IO_file_seekoff, _IO_file_setbuf, _IO_file_sync, _IO_file_underflow, _IO_file_write, _IO_file_xsputn): Change the prefix to "_IO_new_". Added to GLIBC_2.1. * libio/libioP.h (_IO_do_write, _IO_file_attach, _IO_file_close_it, _IO_file_finish, _IO_file_fopen, _IO_file_init, _IO_file_overflow, _IO_file_seekoff, _IO_file_setbuf, _IO_file_sync, _IO_file_underflow, _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix "_IO_new_". * libio/oldfileops.c (_IO_do_write, _IO_file_attach, _IO_file_close_it, _IO_file_finish, _IO_file_fopen, _IO_file_init, _IO_file_overflow, _IO_file_seekoff, _IO_file_setbuf, _IO_file_sync, _IO_file_underflow, _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0. 1998-08-23 Richard Henderson * Makeconfig (LDFLAGS): Remove. * csu/initfini.c: Return to .text before __gmon_start__. * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA. (STO_MIPS_*): Rename from STO_*. (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON. (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New. * math/atest-exp.c (mpn_bitsize): Fix bit location calculation. (main): e3s is negative on zero. * math/atest-exp2.c: Likewise. * math/atest-sincos.c: Likewise. 1998-08-23 Andreas Jaeger * Makerules (install): Add comment about absolute paths. 1998-08-23 Ulrich Drepper * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination array to NUL to handle maxlen==1 case correctly. Patch by HJ Lu. 1998-08-23 Richard Henderson --- math/atest-exp.c | 8 ++++---- math/atest-exp2.c | 8 ++++---- math/atest-sincos.c | 14 +++++++------- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'math') diff --git a/math/atest-exp.c b/math/atest-exp.c index 4cab953e46..4aef38d50e 100644 --- a/math/atest-exp.c +++ b/math/atest-exp.c @@ -96,11 +96,11 @@ mpn_bitsize(const mp_limb_t *SRC_PTR, mp_size_t SIZE) for (i = SIZE - 1; i > 0; i--) if (SRC_PTR[i] != 0) break; - for (j = mpbpl - 1; j > 0; j--) - if ((SRC_PTR[i] & 1 << j) != 0) + for (j = mpbpl - 1; j >= 0; j--) + if ((SRC_PTR[i] & (mp_limb_t)1 << j) != 0) break; - return i * 32 + j; + return i * mpbpl + j; } int @@ -141,7 +141,7 @@ main (void) e2s = mpn_bitsize (e2,SZ); e3s = mpn_bitsize (e3,SZ); - if (e3s > 1 && e2s - e3s < 54) + if (e3s >= 0 && e2s - e3s < 54) { #if PRINT_ERRORS printf ("%06x ", i * (0x100000 / (1 << N2))); diff --git a/math/atest-exp2.c b/math/atest-exp2.c index 7243944c66..059e4ccf02 100644 --- a/math/atest-exp2.c +++ b/math/atest-exp2.c @@ -147,11 +147,11 @@ mpn_bitsize(const mp_limb_t *SRC_PTR, mp_size_t SIZE) for (i = SIZE - 1; i > 0; --i) if (SRC_PTR[i] != 0) break; - for (j = mpbpl - 1; j > 0; --j) - if ((SRC_PTR[i] & 1 << j) != 0) + for (j = mpbpl - 1; j >= 0; --j) + if ((SRC_PTR[i] & (mp_limb_t)1 << j) != 0) break; - return i * 32 + j; + return i * mpbpl + j; } int @@ -192,7 +192,7 @@ main (void) e2s = mpn_bitsize (e2, SZ); e3s = mpn_bitsize (e3, SZ); - if (e3s > 1 && e2s - e3s < 54) + if (e3s >= 0 && e2s - e3s < 54) { #if PRINT_ERRORS printf ("%06x ", i * (0x100000 / (1 << N2))); diff --git a/math/atest-sincos.c b/math/atest-sincos.c index 2f4187c9c0..4dbbffb9ca 100644 --- a/math/atest-sincos.c +++ b/math/atest-sincos.c @@ -132,11 +132,11 @@ mpn_bitsize (const mp_limb_t *SRC_PTR, mp_size_t SIZE) for (i = SIZE - 1; i > 0; i--) if (SRC_PTR[i] != 0) break; - for (j = mpbpl - 1; j > 0; j--) - if ((SRC_PTR[i] & 1 << j) != 0) + for (j = mpbpl - 1; j >= 0; j--) + if ((SRC_PTR[i] & (mp_limb_t)1 << j) != 0) break; - return i * 32 + j; + return i * mpbpl + j; } int @@ -188,8 +188,8 @@ main (void) s3s = mpn_bitsize (s3, SZ); c2s = mpn_bitsize (c2, SZ); c3s = mpn_bitsize (c3, SZ); - if (s3s > 1 && s2s - s3s < 54 - || c3s > 1 && c2s - c3s < 54 + if (s3s >= 0 && s2s - s3s < 54 + || c3s >= 0 && c2s - c3s < 54 || 0) { #if PRINT_ERRORS @@ -204,8 +204,8 @@ main (void) print_mpn_hex (c2, (FRAC / 4) + 1); putchar ('\n'); printf (" %c%c ", - s2s-s3s < 54 ? s2s - s3s == 53 ? 'e' : 'F' : 'P', - c2s-c3s < 54 ? c2s - c3s == 53 ? 'e' : 'F' : 'P'); + s3s >= 0 && s2s-s3s < 54 ? s2s - s3s == 53 ? 'e' : 'F' : 'P', + c3s >= 0 && c2s-c3s < 54 ? c2s - c3s == 53 ? 'e' : 'F' : 'P'); print_mpn_hex (s3, (FRAC / 4) + 1); putchar (' '); print_mpn_hex (c3, (FRAC / 4) + 1); -- cgit v1.2.3