platform/upstream/linaro-glibc.git
12 years agoAdd sysdeps/x86_64/preconfigure
H.J. Lu [Thu, 22 Mar 2012 15:28:39 +0000 (08:28 -0700)]
Add sysdeps/x86_64/preconfigure

12 years agoFix exp2l inaccuracy (bug 13824).
Joseph Myers [Thu, 22 Mar 2012 12:55:19 +0000 (12:55 +0000)]
Fix exp2l inaccuracy (bug 13824).

12 years agoFix low-part sign handling in sin/cos for ldbl-128 and ldbl-128ibm.
Joseph Myers [Thu, 22 Mar 2012 12:52:50 +0000 (12:52 +0000)]
Fix low-part sign handling in sin/cos for ldbl-128 and ldbl-128ibm.

12 years agoAdd 6730 to NEWS.
Carlos O'Donell [Thu, 22 Mar 2012 04:07:37 +0000 (00:07 -0400)]
Add 6730 to NEWS.

12 years agoAdd x32 support to dynamic linker audit
H.J. Lu [Thu, 22 Mar 2012 00:14:49 +0000 (17:14 -0700)]
Add x32 support to dynamic linker audit

12 years agoFix missing overflow/underflow exception in ldbl-128ibm version of powl
Andreas Schwab [Wed, 21 Mar 2012 10:51:17 +0000 (11:51 +0100)]
Fix missing overflow/underflow exception in ldbl-128ibm version of powl

12 years agoUpdate powerpc libm-test ULPs
Andreas Schwab [Tue, 20 Mar 2012 00:02:29 +0000 (01:02 +0100)]
Update powerpc libm-test ULPs

12 years agoDisable use of FMA instructions in branred
Andreas Schwab [Fri, 16 Mar 2012 15:07:57 +0000 (16:07 +0100)]
Disable use of FMA instructions in branred

12 years agoAdd _ITOA_NEEDED and _ITOA_WORD_TYPE
H.J. Lu [Wed, 21 Mar 2012 21:38:47 +0000 (14:38 -0700)]
Add _ITOA_NEEDED and _ITOA_WORD_TYPE

Add _ITOA_NEEDED and _ITOA_WORD_TYPE to override _itoa and _itowa.

12 years agoUpdate sparc ULPs for recently added tests.
David S. Miller [Wed, 21 Mar 2012 21:20:46 +0000 (14:20 -0700)]
Update sparc ULPs for recently added tests.

* sysdeps/sparc/fpu/libm-test-ulps: Update.

12 years agoCheck x86_64* instead of x86_64
H.J. Lu [Wed, 21 Mar 2012 19:37:38 +0000 (12:37 -0700)]
Check x86_64* instead of x86_64

12 years agoDon't document varargs.h.
Joseph Myers [Wed, 21 Mar 2012 17:52:19 +0000 (17:52 +0000)]
Don't document varargs.h.

12 years agoWeaken -fstack-protector configure test to a compile test.
Thomas Schwinge [Wed, 21 Mar 2012 17:51:08 +0000 (17:51 +0000)]
Weaken -fstack-protector configure test to a compile test.

12 years agoDon't tamper with $HOME.
Thomas Schwinge [Wed, 21 Mar 2012 17:10:03 +0000 (18:10 +0100)]
Don't tamper with $HOME.

12 years agoRemove NOTES.
Joseph Myers [Wed, 21 Mar 2012 16:56:28 +0000 (16:56 +0000)]
Remove NOTES.

12 years agoUse autoconf macro for testing compiler options with empty input.
Joseph Myers [Wed, 21 Mar 2012 16:33:57 +0000 (16:33 +0000)]
Use autoconf macro for testing compiler options with empty input.

12 years agoRemove inaccurate x86 cexp implementations (bug 13883).
Joseph Myers [Wed, 21 Mar 2012 15:28:05 +0000 (15:28 +0000)]
Remove inaccurate x86 cexp implementations (bug 13883).

12 years agoDo not install iso3166.tab and zone.tab
Allan McRae [Wed, 21 Mar 2012 15:13:21 +0000 (16:13 +0100)]
Do not install iso3166.tab and zone.tab

2012-03-21  Allan McRae  <allan@archlinux.org>

* timezone/Makefile: Do not install iso3166.tab and zone.tab

12 years agoFix missing exp2 overflow exception (bug 13871).
Joseph Myers [Wed, 21 Mar 2012 12:17:26 +0000 (12:17 +0000)]
Fix missing exp2 overflow exception (bug 13871).

12 years agoFix pow of zero and infinity to large powers.
Joseph Myers [Wed, 21 Mar 2012 12:14:57 +0000 (12:14 +0000)]
Fix pow of zero and infinity to large powers.

12 years agoMove stdio-common/_itoa.h to sysdeps/generic
H.J. Lu [Tue, 20 Mar 2012 23:00:23 +0000 (16:00 -0700)]
Move stdio-common/_itoa.h to sysdeps/generic

12 years agoCheck __x86_64__ instead of __WORDSIZE in mathinline.h
H.J. Lu [Tue, 20 Mar 2012 15:54:58 +0000 (08:54 -0700)]
Check __x86_64__ instead of __WORDSIZE in mathinline.h

12 years agoSupport x86-64 __jmp_buf with __WORDSIZE != 64
H.J. Lu [Tue, 20 Mar 2012 15:53:42 +0000 (08:53 -0700)]
Support x86-64 __jmp_buf with __WORDSIZE != 64

12 years agoTest for overflow exceptions in libm-test.inc.
Joseph Myers [Tue, 20 Mar 2012 10:58:04 +0000 (10:58 +0000)]
Test for overflow exceptions in libm-test.inc.

12 years agoCorrect ChangeLog entry.
H.J. Lu [Tue, 20 Mar 2012 00:47:44 +0000 (17:47 -0700)]
Correct ChangeLog entry.

12 years agoUse atomic64_t with 64bit atomic macros
H.J. Lu [Tue, 20 Mar 2012 00:29:26 +0000 (17:29 -0700)]
Use atomic64_t with 64bit atomic macros

12 years agoUse __asm__("rsp") to get CURRENT_STACK_FRAME
H.J. Lu [Mon, 19 Mar 2012 23:21:21 +0000 (16:21 -0700)]
Use __asm__("rsp") to get CURRENT_STACK_FRAME

12 years agoCheck __x86_64__ instead of __WORDSIZE for fenv_t
H.J. Lu [Mon, 19 Mar 2012 23:10:51 +0000 (16:10 -0700)]
Check __x86_64__ instead of __WORDSIZE for fenv_t

12 years agoCheck __x86_64__ instead of __WORDSIZE in mathdef.h
H.J. Lu [Mon, 19 Mar 2012 23:00:52 +0000 (16:00 -0700)]
Check __x86_64__ instead of __WORDSIZE in mathdef.h

12 years agoUpdate sparc ULPs for newly added tests.
David S. Miller [Mon, 19 Mar 2012 22:45:17 +0000 (15:45 -0700)]
Update sparc ULPs for newly added tests.

* sysdeps/sparc/fpu/libm-test-ulps: Update.

12 years agoAdd x32 support to ldd-rewrite.sed
H.J. Lu [Mon, 19 Mar 2012 22:18:44 +0000 (15:18 -0700)]
Add x32 support to ldd-rewrite.sed

12 years agoUse int64_t in x86_64/fpu/math_private.h
H.J. Lu [Mon, 19 Mar 2012 22:09:58 +0000 (15:09 -0700)]
Use int64_t in x86_64/fpu/math_private.h

12 years agoFix sparc build after math_private.h cleanups.
David S. Miller [Mon, 19 Mar 2012 22:12:50 +0000 (15:12 -0700)]
Fix sparc build after math_private.h cleanups.

* sysdeps/sparc/fpu/fenv_private.h: New file.
* sysdeps/sparc/fpu/math_private.h: Use it.
(libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
Remove.
(libc_feholdexcept_setround, libc_feholdexcept_setroundf,
(libc_feholdexcept_setroundl): Remove.
(libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
Remove.
(libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
(libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.

12 years agoUse __NR_futex to define SYS_futex
H.J. Lu [Mon, 19 Mar 2012 21:54:35 +0000 (14:54 -0700)]
Use __NR_futex to define SYS_futex

12 years agoCast _Unwind_GetCFA return to _Unwind_Ptr first
H.J. Lu [Mon, 19 Mar 2012 20:34:44 +0000 (13:34 -0700)]
Cast _Unwind_GetCFA return to _Unwind_Ptr first

12 years agoCast _Unwind_GetCFA return to _Unwind_Ptr first
H.J. Lu [Mon, 19 Mar 2012 20:33:20 +0000 (13:33 -0700)]
Cast _Unwind_GetCFA return to _Unwind_Ptr first

12 years agoFix clog overflow/underflow (bug 13629).
Joseph Myers [Mon, 19 Mar 2012 20:13:10 +0000 (20:13 +0000)]
Fix clog overflow/underflow (bug 13629).

12 years agoFix atan2 spurious exceptions (bug 11451).
Joseph Myers [Mon, 19 Mar 2012 20:11:09 +0000 (20:11 +0000)]
Fix atan2 spurious exceptions (bug 11451).

12 years agoRemove common-objdir-compile and related sysdeps/unix/Makefile code.
Joseph Myers [Mon, 19 Mar 2012 16:23:26 +0000 (16:23 +0000)]
Remove common-objdir-compile and related sysdeps/unix/Makefile code.

12 years agoOptimize private 387 fenv access; share code between i386 and x86_64.
Richard Henderson [Sun, 18 Mar 2012 22:58:00 +0000 (15:58 -0700)]
Optimize private 387 fenv access; share code between i386 and x86_64.

12 years agoi386/x86_64: Optimize feholdexcept.
Richard Henderson [Sun, 18 Mar 2012 22:51:53 +0000 (15:51 -0700)]
i386/x86_64: Optimize feholdexcept.

12 years agoCreate and use libc_feupdateenv_test.
Richard Henderson [Sat, 10 Mar 2012 16:53:05 +0000 (08:53 -0800)]
Create and use libc_feupdateenv_test.

We can reduce the number of STMXCSR, and often we can avoid the
call to __feraiseexcept.

12 years agoCreate and use SET_RESTORE_ROUND{,_NOEX,_53BIT}{,F,L}.
Richard Henderson [Sat, 10 Mar 2012 16:55:53 +0000 (08:55 -0800)]
Create and use SET_RESTORE_ROUND{,_NOEX,_53BIT}{,F,L}.

12 years agoi386: Convert libc_{feholdexcept_setround,updateenv}_53bit to functions.
Richard Henderson [Sun, 18 Mar 2012 17:12:16 +0000 (10:12 -0700)]
i386: Convert libc_{feholdexcept_setround,updateenv}_53bit to functions.

Also fix a bug in libc_feupdateenv_53bit: don't force the rounding
precision back to _FPU_EXTENDED, instead restore the precision that
the user had in effect beforehand.

12 years agoConvert libc_feholdexcept et al from macros to inline functions.
Richard Henderson [Fri, 9 Mar 2012 20:51:27 +0000 (12:51 -0800)]
Convert libc_feholdexcept et al from macros to inline functions.

12 years agoMake inline __isnan, __isinf_ns, __finite generic.
Richard Henderson [Fri, 9 Mar 2012 20:38:23 +0000 (12:38 -0800)]
Make inline __isnan, __isinf_ns, __finite generic.

For code generation to stay identical on x86_64, this requires that
we define the fp word manipulation macros before including the
generic header.

12 years agoUpdate powerpc libm test ULPs
Andreas Schwab [Fri, 16 Mar 2012 23:29:04 +0000 (00:29 +0100)]
Update powerpc libm test ULPs

12 years agoAdd missing Versions entry for sparc's __getshmlba.
David S. Miller [Sat, 17 Mar 2012 22:55:27 +0000 (15:55 -0700)]
Add missing Versions entry for sparc's __getshmlba.

[BZ #6471]
* sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
for 2.16.

12 years agoFix warnings when uintptr_t is larger than int.
David S. Miller [Sat, 17 Mar 2012 04:02:54 +0000 (21:02 -0700)]
Fix warnings when uintptr_t is larger than int.

* sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
warnings.

12 years agoFix libc-lowlevellock.c sysdep finding more generically.
David S. Miller [Sat, 17 Mar 2012 03:40:54 +0000 (20:40 -0700)]
Fix libc-lowlevellock.c sysdep finding more generically.

nptl/

[BZ #13844]
* sysdeps/unix/sysv/linux/libc-lowlevellock.c: Include using <..>
instead of "...".
* sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c:
Delete, not needed.

12 years agoFix SHMLBA on sparc.
David S. Miller [Sat, 17 Mar 2012 02:28:51 +0000 (19:28 -0700)]
Fix SHMLBA on sparc.

[BZ #6471]
* sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
properly.
* sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
* sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
sysdep_routines when subdir is sysvipc.
* sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
__getshmlba helper.

12 years agoUpdate sparc ULPs.
David S. Miller [Fri, 16 Mar 2012 22:57:08 +0000 (15:57 -0700)]
Update sparc ULPs.

* sysdeps/sparc/fpu/libm-test/ulps: Update.

12 years agoDefine x86-64 ffsl alias only if __LP64__ is defined
H.J. Lu [Fri, 16 Mar 2012 22:16:27 +0000 (15:16 -0700)]
Define x86-64 ffsl alias only if __LP64__ is defined

12 years agoMake lround the alias of llround for wordsize-64
H.J. Lu [Fri, 16 Mar 2012 22:14:56 +0000 (15:14 -0700)]
Make lround the alias of llround for wordsize-64

12 years agoUse greg_t and uintptr_t in x86-64 __makecontext
H.J. Lu [Fri, 16 Mar 2012 22:06:43 +0000 (15:06 -0700)]
Use greg_t and uintptr_t in x86-64 __makecontext

12 years agoAdd x32 support to ldconfig
H.J. Lu [Fri, 16 Mar 2012 22:03:37 +0000 (15:03 -0700)]
Add x32 support to ldconfig

12 years agoFix too long ChangeLog lines.
David S. Miller [Fri, 16 Mar 2012 21:15:05 +0000 (14:15 -0700)]
Fix too long ChangeLog lines.

12 years agoDisable Bessel function TLOSS errors in POSIX mode.
Joseph Myers [Fri, 16 Mar 2012 20:08:02 +0000 (20:08 +0000)]
Disable Bessel function TLOSS errors in POSIX mode.

12 years agoFix tan, tanl for large inputs.
Joseph Myers [Fri, 16 Mar 2012 20:05:04 +0000 (20:05 +0000)]
Fix tan, tanl for large inputs.

12 years ago * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
Jan Kratochvil [Fri, 16 Mar 2012 19:49:23 +0000 (20:49 +0100)]
* sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
(_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.

12 years agoUse sysdeps/*/preconfigure fragments from main source tree.
Roland McGrath [Fri, 16 Mar 2012 18:12:50 +0000 (11:12 -0700)]
Use sysdeps/*/preconfigure fragments from main source tree.

12 years agoUse time_t on ays, rem, y and yg in __offtime
H.J. Lu [Fri, 16 Mar 2012 16:10:12 +0000 (09:10 -0700)]
Use time_t on ays, rem, y and yg in __offtime

12 years agoInclude program generating __sincosl_table in comment.
Joseph Myers [Fri, 16 Mar 2012 15:18:19 +0000 (15:18 +0000)]
Include program generating __sincosl_table in comment.

12 years agoImplement ldbl-96 sinl / cosl / sincosl (bug 13851).
Joseph Myers [Fri, 16 Mar 2012 12:28:25 +0000 (12:28 +0000)]
Implement ldbl-96 sinl / cosl / sincosl (bug 13851).

12 years agoImplement optimized libc_fe*() math routines on sparc.
David S. Miller [Fri, 16 Mar 2012 10:05:49 +0000 (03:05 -0700)]
Implement optimized libc_fe*() math routines on sparc.

* sysdeps/sparc/fpu/math_private.h: New file.

12 years agoAdd sparc vis3 optimized fma/fmaf.
David S. Miller [Fri, 16 Mar 2012 06:09:16 +0000 (23:09 -0700)]
Add sparc vis3 optimized fma/fmaf.

* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
sysdep routines.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.

12 years agoAdd missing sparc32 NPTL file otherwise we use the wrong lowlevellock.c implementation.
David S. Miller [Fri, 16 Mar 2012 04:11:22 +0000 (21:11 -0700)]
Add missing sparc32 NPTL file otherwise we use the wrong lowlevellock.c implementation.

nptl/

[BZ #13844]
* sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: New file.

12 years agoSparc long double is emulated in software, therefore use dbl-64's s_fma.c
David S. Miller [Fri, 16 Mar 2012 03:53:16 +0000 (20:53 -0700)]
Sparc long double is emulated in software, therefore use dbl-64's s_fma.c

* sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
* sysdeps/sparc/sparc64/fpu/s_fma.c: New file.

12 years agoCreate a header for sparc ifunc expansion and use it for VIS3 ifuncs.
David S. Miller [Fri, 16 Mar 2012 03:20:49 +0000 (20:20 -0700)]
Create a header for sparc ifunc expansion and use it for VIS3 ifuncs.

* sysdeps/sparc/sparc-ifunc.h: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use sparc-ifunc.h
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.

12 years agoUse double precision instead of scaling for powerpc __ieee754_hypotf
Andreas Schwab [Thu, 15 Mar 2012 14:16:31 +0000 (15:16 +0100)]
Use double precision instead of scaling for powerpc __ieee754_hypotf

12 years agoUpdate.
Andreas Jaeger [Thu, 15 Mar 2012 17:04:51 +0000 (18:04 +0100)]
Update.

12 years agoUpdate
Andreas Jaeger [Thu, 15 Mar 2012 17:03:38 +0000 (18:03 +0100)]
Update

12 years agoUse 40 digits in tests
Andreas Jaeger [Thu, 15 Mar 2012 17:02:02 +0000 (18:02 +0100)]
Use 40 digits in tests

12 years ago* sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
Andreas Jaeger [Thu, 15 Mar 2012 16:34:24 +0000 (17:34 +0100)]
* sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
ieee754/flt-32 implementation for tan.
* math/libm-test.inc (tan_test): Add tests for large input.
* sysdeps/i386/fpu/libm-test-ulps: Update.

12 years ago [BZ #13852]
Andreas Jaeger [Thu, 15 Mar 2012 16:23:43 +0000 (17:23 +0100)]
[BZ #13852]
* sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
ieee754/flt-32 implementation.
* sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
* sysdeps/i386/fpu/s_cosf.S: Likewise.
* sysdeps/i386/fpu/s_sincosf.S: Likewise.
* sysdeps/i386/fpu/s_sinf.S: Likewise.

* math/libm-test.inc (cos_test): Enable some large input tests for
float as well
(sin_test): Likewise.
(sincos_test): Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Update.

12 years ago [BZ #13658]
Andreas Jaeger [Thu, 15 Mar 2012 15:25:57 +0000 (16:25 +0100)]
[BZ #13658]
* math/libm-test.inc (cos_test): Add more test cases.
(sin_test): Likewise.
(sincos_test): Likewise.

12 years agoFix typo.
Andreas Jaeger [Thu, 15 Mar 2012 15:11:25 +0000 (16:11 +0100)]
Fix typo.

12 years ago [BZ #13837]
Andreas Jaeger [Thu, 15 Mar 2012 13:34:03 +0000 (14:34 +0100)]
[BZ #13837]
* math/libm-test.inc (cos_test): Add a test case for large input
value.
(sin_test): Likewise.
(sincos_test): Likewise.

12 years agoAdd 13658
Andreas Jaeger [Thu, 15 Mar 2012 13:24:20 +0000 (14:24 +0100)]
Add 13658

12 years agoMerge branch 'bug13658-branch'
Andreas Jaeger [Thu, 15 Mar 2012 13:21:59 +0000 (14:21 +0100)]
Merge branch 'bug13658-branch'

12 years agoCleanup formatting.
Andreas Jaeger [Thu, 15 Mar 2012 13:14:39 +0000 (14:14 +0100)]
Cleanup formatting.

12 years agoUpdate powerpc libm ULPs
Andreas Schwab [Thu, 15 Mar 2012 00:05:14 +0000 (01:05 +0100)]
Update powerpc libm ULPs

12 years agoSparc optimized fmin{,f} and fmax{,f}.
David S. Miller [Thu, 15 Mar 2012 09:13:54 +0000 (02:13 -0700)]
Sparc optimized fmin{,f} and fmax{,f}.

* sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
* sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
* sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
* sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
fmin/fmax sysdep routines.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.

12 years agoMerge branch 'master' into bug13658-branch
Andreas Jaeger [Thu, 15 Mar 2012 08:55:49 +0000 (09:55 +0100)]
Merge branch 'master' into bug13658-branch

12 years agoAdd more sparc VIS3 optimized math routines.
David S. Miller [Thu, 15 Mar 2012 07:11:17 +0000 (00:11 -0700)]
Add more sparc VIS3 optimized math routines.

* sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3 routines.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS3 routines.

* sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
New file.

12 years agoUpdate sparc ULPs for newly added csqrt tests.
David S. Miller [Thu, 15 Mar 2012 00:25:35 +0000 (17:25 -0700)]
Update sparc ULPs for newly added csqrt tests.

* sysdeps/sparc/fpu/libm-test-ulps: Update.

12 years agoAdd framework for using sparc VIS3 instructions, use it for copysign/signbit.
David S. Miller [Wed, 14 Mar 2012 23:29:47 +0000 (16:29 -0700)]
Add framework for using sparc VIS3 instructions, use it for copysign/signbit.

* sysdeps/sparc/configure.in: New file.
* sysdeps/sparc/configure: Generate.
* configure.in (libc_cv_sparc_as_vis3): Substitute.
* configure: Regenerate.
* config.h.in (HAVE_AS_VIS3_SUPPORT): New.
* config.make.in (have-as-vis3): New.
* sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
available use -Av9d instead of -Av9a.
* sysdeps/sparc/sparc64/Makefile: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.

12 years agoSmall optimization to sparc 64-bit copysign.
David S. Miller [Wed, 14 Mar 2012 23:21:40 +0000 (16:21 -0700)]
Small optimization to sparc 64-bit copysign.

* sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use fzeros/fnegs
to load 0x80000000 into a float register instead of using the stack.
* sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.

12 years agoInstall bits/syscall.h through install-headers.
Joseph Myers [Wed, 14 Mar 2012 20:09:44 +0000 (20:09 +0000)]
Install bits/syscall.h through install-headers.

12 years agoNEWS update for BZ#13846
Roland McGrath [Wed, 14 Mar 2012 18:13:37 +0000 (11:13 -0700)]
NEWS update for BZ#13846

12 years agoBZ#13846: manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
Roland McGrath [Wed, 14 Mar 2012 17:53:13 +0000 (10:53 -0700)]
BZ#13846: manual/llio.texi (Memory-mapped I/O): Fix wrong function name.

12 years agoUpdate ULPs.
Andreas Jaeger [Wed, 14 Mar 2012 16:23:31 +0000 (17:23 +0100)]
Update ULPs.

12 years agoImplement and use libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit
Andreas Jaeger [Wed, 14 Mar 2012 16:20:10 +0000 (17:20 +0100)]
Implement and use libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit
so that double arithmetic in s_sin is done in 53 bit (without extend i386 double precision)

12 years agoRemove files so that i386 uses the iee754/dbl-64 sin and cos implementation.
Andreas Jaeger [Wed, 14 Mar 2012 15:50:33 +0000 (16:50 +0100)]
Remove files so that i386 uses the iee754/dbl-64 sin and cos implementation.

12 years agoMerge branch 'master' into bug13658-branch
Andreas Jaeger [Wed, 14 Mar 2012 15:36:17 +0000 (16:36 +0100)]
Merge branch 'master' into bug13658-branch

12 years agoFix csqrt overflow/underflow (bug 13841).
Joseph Myers [Wed, 14 Mar 2012 11:53:32 +0000 (11:53 +0000)]
Fix csqrt overflow/underflow (bug 13841).

12 years agoAdd 13840 to NEWS.
Joseph Myers [Wed, 14 Mar 2012 01:18:57 +0000 (01:18 +0000)]
Add 13840 to NEWS.

12 years agoAdd tests for hypot overflow/underflow.
Joseph Myers [Wed, 14 Mar 2012 01:12:05 +0000 (01:12 +0000)]
Add tests for hypot overflow/underflow.

12 years agoFix hypotf overflow/underflow by using double precision instead of scaling.
David S. Miller [Wed, 14 Mar 2012 01:08:58 +0000 (18:08 -0700)]
Fix hypotf overflow/underflow by using double precision instead of scaling.

[BZ #13840]
* sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
double-precision for the calculation instead of scaling.

12 years agoClean up dbl-64 rint, nearbyint.
Joseph Myers [Tue, 13 Mar 2012 14:12:44 +0000 (14:12 +0000)]
Clean up dbl-64 rint, nearbyint.