aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
AgeCommit message (Collapse)Author
2013-09-19Consolidate common code into macrosSiddhesh Poyarekar
Consolidated common Taylor series polynomials into macros in s_sin.c to make it a bit cleaner.
2013-09-19Consolidate sin/cos table lookup codeSiddhesh Poyarekar
2013-09-19Consolidate sin/cos computation for large inputsSiddhesh Poyarekar
2013-09-19Remove redundant goto linesSiddhesh Poyarekar
2013-09-18MIPS: IEEE 754-2008 NaN encoding supportMaciej W. Rozycki
It has been a long practice for software using IEEE 754 floating-point arithmetic run on MIPS processors to use an encoding of Not-a-Number (NaN) data different to one used by software run on other processors. And as of IEEE 754-2008 revision [1] this encoding does not follow one recommended in the standard, as specified in section 6.2.1, where it is stated that quiet NaNs should have the first bit (d1) of their significand set to 1 while signalling NaNs should have that bit set to 0, but MIPS software interprets the two bits in the opposite manner. As from revision 3.50 [2][3] the MIPS Architecture provides for processors that support the IEEE 754-2008 preferred NaN encoding format. As the two formats (further referred to as "legacy NaN" and "2008 NaN") are incompatible to each other, tools have to provide support for the two formats to help people avoid using incompatible binary modules. The change is comprised of two functional groups of features, both of which are required for correct support. 1. Dynamic linker support. To enforce the NaN encoding requirement in dynamic linking a new ELF file header flag has been defined. This flag is set for 2008-NaN shared modules and executables and clear for legacy-NaN ones. The dynamic linker silently ignores any incompatible modules it encounters in dependency processing. To avoid unnecessary processing of incompatible modules in the presence of a shared module cache, a set of new cache flags has been defined to mark 2008-NaN modules for the three ABIs supported. Changes to sysdeps/unix/sysv/linux/mips/readelflib.c have been made following an earlier code quality suggestion made here: http://sourceware.org/ml/libc-ports/2009-03/msg00036.html and are therefore a little bit more extensive than the minimum required. Finally a new name has been defined for the dynamic linker so that 2008-NaN and legacy-NaN binaries can coexist on a single system that supports dual-mode operation and that a legacy dynamic linker that does not support verifying the 2008-NaN ELF file header flag is not chosen to interpret a 2008-NaN binary by accident. 2. Floating environment support. IEEE 754-2008 features are controlled in the Floating-Point Control and Status (FCSR) register and updates are needed to floating environment support so that the 2008-NaN flag is set correctly and the kernel default, inferred from the 2008-NaN ELF file header flag at the time an executable is loaded, respected. As the NaN encoding format is a property of GCC code generation that is both a user-selected GCC configuration default and can be overridden with GCC options, code that needs to know what NaN encoding standard it has been configured for checks for the __mips_nan2008 macro that is defined internally by GCC whenever the 2008-NaN mode has been selected. This mode is determined at the glibc configuration time and therefore a few consistency checks have been added to catch cases where compilation flags have been overridden by the user. The 2008 NaN set of features relies on kernel support as the in-kernel floating-point emulator needs to be aware of the NaN encoding used even on hard-float processors and configure the FPU context according to the value of the 2008 NaN ELF file header flag of the executable being started. As at this time work on kernel support is still in progress and the relevant changes have not made their way yet to linux.org master repository. Therefore the minimum version supported has been artificially set to 10.0.0 so that 2008-NaN code is not accidentally run on a Linux kernel that does not suppport it. It is anticipated that the version is adjusted later on to the actual initial linux.org kernel version to support this feature. Legacy NaN encoding support is unaffected, older kernel versions remain supported. [1] "IEEE Standard for Floating-Point Arithmetic", IEEE Computer Society, IEEE Std 754-2008, 29 August 2008 [2] "MIPS Architecture For Programmers, Volume I-A: Introduction to the MIPS32 Architecture", MIPS Technologies, Inc., Document Number: MD00082, Revision 3.50, September 20, 2012 [3] "MIPS Architecture For Programmers, Volume I-A: Introduction to the MIPS64 Architecture", MIPS Technologies, Inc., Document Number: MD00083, Revision 3.50, September 20, 2012
2013-09-18e500 port: fpu_control.h.Joseph Myers
2013-09-18e500 port: setjmp/longjmp.Joseph Myers
2013-09-18Don't force -msoft-float for powerpc --without-fp.Joseph Myers
2013-09-18Format sincos32.cSiddhesh Poyarekar
2013-09-17Fix powerpc fpu_control.h namespace and parenthesis issues (bug 15966).Joseph Myers
2013-09-11Faster strchr implementation.Ondřej Bílka
2013-09-11Update powerpc-fpu ULPs.Adhemerval Zanella
2013-09-11Add O_TMPFILE to <fcntl.h>Andreas Schwab
2013-09-10Remove DO_NOT_USE_THIS conditionals.Ondřej Bílka
2013-09-06Coordinate IPv6 definitions for Linux and glibcCarlos O'Donell
This change synchronizes the glibc headers with the Linux kernel headers and arranges to coordinate the definition of structures already defined the Linux kernel UAPI headers. It is now safe to include glibc's netinet/in.h or Linux's linux/in6.h in any order in a userspace application and you will get the same ABI. The ABI is guaranteed by UAPI and glibc.
2013-09-05PowerPC: fix POWER7 memrchr for some large inputsAdhemerval Zanella
2013-09-05tst-fanotify: skip when we get back EPERMMike Frysinger
Since fanotify_init requires CAP_SYS_ADMIN in order to work (which usually means running as root), we need to handle that error case too. Reported-by: Andreas Jaeger <aj@suse.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-09-04Remove --disable-versioning.Joseph Myers
2013-09-03Fix lgammaf spurious underflow (bug 15427).Joseph Myers
2013-09-03Add unaligned strcmp.Ondřej Bílka
2013-09-02tst-fanotify: new simple testMike Frysinger
Basic test for the fanotify functions. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-09-02Fix spurious jnf underflows (bug 14155).Joseph Myers
2013-09-02Fix typo.Ondřej Bílka
2013-08-30Fix then/than typos.Ondřej Bílka
2013-08-30Fix typos.Ondřej Bílka
2013-08-30Fix rawmemchr regression on bulldozer.Ondřej Bílka
2013-08-29Remove aix specific files.Ondřej Bílka
2013-08-29Hurd: Add ESUCCESS error_t value.Thomas Schwinge
2013-08-29Hurd: Use __executable_start symbol instead of _start.Samuel Thibault
_start points to the first instruction, not to the ELF header. __executable_start does point on the ELF header.
2013-08-29Support ELFOSABI_GNU on all GNU systems.Thomas Schwinge
2013-08-29Use ELFOSABI_GNU instead of ELFOSABI_LINUX.Thomas Schwinge
2013-08-29[BZ #15522] strtod ("nan(N)") returning a sNaN in some casesThomas Schwinge
2013-08-29Fix typos.Ondřej Bílka
2013-08-28Use __glibc_unlikely instead of __builtin_expect (..., 0)Siddhesh Poyarekar
2013-08-27True stub __ifreq.Roland McGrath
2013-08-27Clean up __libc_sa_len helper.Roland McGrath
2013-08-27Replace generic bits/socket.h with 4.4 file.Roland McGrath
2013-08-27Flesh out 4.4 bits/socket.h with SOCK_CLOEXEC, SOCK_NONBLOCK.Roland McGrath
2013-08-27Fix handling LC_CTYPE nonascii-case fallback in i686 SSE4.2 and SSSE3 ↵Andreas Schwab
strcasecmp/strncasecmp
2013-08-21Fix typos.Ondřej Bílka
2013-08-21i686: Skip SSE4_2 version for strcmp, strncmp, strncase, strcasecmpLiubov Dmitrieva
if bit_Slow_SSE4_2 is set.
2013-08-20PowerPC: fix backtrace to handle signal trampolinesAdhemerval Zanella
This patch fixes backtrace for PPC32 and PPC64 to correctly handle signal trampolines. The 'debug/tst-backtrace6.c' also check for SA_SIGINFO handling, where is triggers another vDSO symbols for PPC32.
2013-08-20Fix cproj handling of (finite, NaN) arguments (bug 15531).Joseph Myers
2013-08-20Include <string.h> in sysdeps/unix/sysv/linux/mmap64.c.Joseph Myers
2013-08-20Use __getpagesize and __ffs in MMAP2_PAGE_SHIFT == -1 case of mmap64.Joseph Myers
2013-08-20 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):Andreas Krebbel
Align 32 bit compat elf_greg to 8 bytes.
2013-08-16CVE-2013-4237, BZ #14699: Buffer overflow in readdir_rFlorian Weimer
* sysdeps/posix/dirstream.h (struct __dirstream): Add errcode member. * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode member. * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member. * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit. Return delayed error code. Remove GETDENTS_64BIT_ALIGNED conditional. * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define GETDENTS_64BIT_ALIGNED. * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise. * manual/filesys.texi (Reading/Closing Directory): Document ENAMETOOLONG return value of readdir_r. Recommend readdir more strongly. * manual/conf.texi (Limits for Files): Add portability note to NAME_MAX, PATH_MAX. (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
2013-08-13Fix cbrtl for ldbl-96Andreas Schwab
2013-07-23PowerPC: use _dl_static_init to set GLRO(gl_pagesize)Adhemerval Zanella
This patch fixes dlfcn/tststatic5 for PowerPC where pagesize variable was not properly initialized in certain cases. This patch is based on other architecture code.
2013-07-22S/390: ULPs update.Andreas Krebbel