aboutsummaryrefslogtreecommitdiff
path: root/math/atest-sincos.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-23 18:23:26 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-23 18:23:26 +0000
commitb259e74660448b2c316b90fed293f479f70ef56a (patch)
treeacebd733f1d3dad459c49d5441e7f51d48dce28a /math/atest-sincos.c
parentc0bc2709b6fb301260f20c84cc22d627113192fd (diff)
downloadglibc-b259e74660448b2c316b90fed293f479f70ef56a.zip
glibc-b259e74660448b2c316b90fed293f479f70ef56a.tar.gz
glibc-b259e74660448b2c316b90fed293f479f70ef56a.tar.bz2
Update.
1998-08-23 Ulrich Drepper <drepper@cygnus.com> * 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 <hjl@gnu.org> * 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 <rth@cygnus.com> * 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 <aj@arthur.rhein-neckar.de> * Makerules (install): Add comment about absolute paths. 1998-08-23 Ulrich Drepper <drepper@cygnus.com> * 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 <rth@cygnus.com>
Diffstat (limited to 'math/atest-sincos.c')
-rw-r--r--math/atest-sincos.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/math/atest-sincos.c b/math/atest-sincos.c
index 2f4187c..4dbbffb 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);