From 69bf5f75475e708abde760b2b401c2bfa65eec17 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 27 Jun 1998 09:52:12 +0000 Subject: Update. 1998-06-27 7:07 Richard Henderson * math/atest-exp.c (exp_mpn, main): Cast to mp_limb_t appropriately. * math/atest-exp2.c (exp_mpn, main): Likewise. * math/atest-sincos.c (main): Likewise. * resolv/inet_addr.c (inet_aton): Check for 32-bit overflow. Move base handling away from strtoul. Always reset errno. * sysdeps/alpha/Makefile (elf): Kill -mno-fp-regs. * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Only set _dl_profile_map if _dl_name_match_p. (RTLD_START): Fix .prologue. Set __libc_stack_end. * sysdeps/alpha/elf/start.S: Pass sp as arg 7. Kill __data_start. * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Mark tmp as early-clobber. * sysdeps/libm-ieee754/e_exp10.c: Include "math_private.h". * sysdeps/libm-ieee754/e_exp10f.c: Likewise. * sysdeps/libm-ieee754/e_exp10l.c: Likewise. --- math/atest-exp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'math/atest-exp.c') diff --git a/math/atest-exp.c b/math/atest-exp.c index 28e572c444..4cab953e46 100644 --- a/math/atest-exp.c +++ b/math/atest-exp.c @@ -67,9 +67,9 @@ exp_mpn (mp1 ex, mp1 x) memset (xp, 0, sizeof (mp1)); memset (ex, 0, sizeof (mp1)); - xp[FRAC / mpbpl] = 1 << FRAC % mpbpl; + xp[FRAC / mpbpl] = (mp_limb_t)1 << FRAC % mpbpl; memset (tol,0, sizeof (mp1)); - tol[(FRAC - TOL) / mpbpl] = 1 << (FRAC - TOL) % mpbpl; + tol[(FRAC - TOL) / mpbpl] = (mp_limb_t)1 << (FRAC - TOL) % mpbpl; n = 0; @@ -119,7 +119,7 @@ main (void) memset (maxerror, 0, sizeof (mp1)); memset (xt, 0, sizeof (mp1)); - xt[(FRAC - N2) / mpbpl] = 1 << (FRAC - N2) % mpbpl; + xt[(FRAC - N2) / mpbpl] = (mp_limb_t)1 << (FRAC - N2) % mpbpl; for (i = 0; i < 1 << N2; i++) { @@ -166,7 +166,7 @@ main (void) /* Check exp_mpn against precomputed value of exp(1). */ memset (x, '\0', sizeof (mp1)); - x[FRAC / mpbpl] = 1 << FRAC % mpbpl; + x[FRAC / mpbpl] = (mp_limb_t)1 << FRAC % mpbpl; exp_mpn (ex, x); memset (e2, '\0', sizeof (mp1)); -- cgit 1.4.1