aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-06-14Avoid access beyond memory bounds in pthread_attr_getaffinity_npSiddhesh Poyarekar5-2/+81
Resolves BZ #15618. pthread_attr_getaffinity_np may write beyond bounds of the input cpuset buffer if the size of the input buffer is smaller than the buffer present in the input pthread attributes. Fix is to copy to the extent of the minimum of the source and the destination.
2013-06-13Fix NEWS entry about clock precisionSiddhesh Poyarekar2-1/+7
Text by Roland McGrath.
2013-06-13Don't let ld.so that failed its sanity check land in place.Roland McGrath2-2/+10
2013-06-13tile: default to little-endian in bits/endian.hChris Metcalf2-3/+5
This turns out to be helpful when doing a from-scratch cross-compile of gcc and glibc, since you can then do "make install-headers" in glibc even before you have a functioning tile gcc.
2013-06-13Rework tst-strtod-round handling of inexact results.Joseph Myers3-45/+737
2013-06-13Fix formatting of commentAndreas Jaeger1-1/+1
2013-06-13Update sv_FI@euroJohan Heikkila3-3/+7
[BZ#15432] * locales/sv_FI@euro: Add LC_MEASUREMENT.
2013-06-13Update sv_FIJohan Heikkila3-10/+27
[BZ#15431] * locales/sv_FI: Add LC_MEASUREMENT, use copy in LC_TELEPHONE, update LC_ADDRESS with using postal_fmt from Finnish Post Office recommendations at http://www.posti.fi/hinnatjaohjeet/osoitejakuorimerkinnat/osoitemerkinnat.html and add missing entries.
2013-06-13Fix ChangeLog entrySiddhesh Poyarekar1-1/+1
2013-06-13Improve precision of clock() function on LinuxSiddhesh Poyarekar3-30/+34
Resolves #12515. Use CLOCK_PROCESS_CPUTIME_ID instead of times to get better precision in the value returned by clock.
2013-06-12Fix unsafe compiler optimizationAdhemerval Zanella3-1/+16
GCC 4.8 enables -ftree-loop-distribute-patterns at -O3 by default and this optimization may transform loops into memset/memmove calls. Without proper handling this may generate unexpected PLT calls on GLIBC. This patch fixes by create memset/memmove alias to internal GLIBC __GI_memset/__GI_memmove symbols.
2013-06-12Make more libm tests condition exceptions tests with math-tests.h.Joseph Myers4-51/+66
2013-06-12Update Interlingua translation from translation projectAndreas Jaeger2-180/+190
2013-06-12Set/restore rounding mode only when neededSiddhesh Poyarekar4-14/+273
The most common use case of math functions is with default rounding mode, i.e. rounding to nearest. Setting and restoring rounding mode is an unnecessary overhead for this, so I've added support for a context, which does the set/restore only if the FP status needs a change. The code is written such that only x86 uses these. Other architectures should be unaffected by it, but would definitely benefit if the set/restore has as much overhead relative to the rest of the code, as the x86 bits do. Here's a summary of the performance improvement due to these improvements; I've only mentioned functions that use the set/restore and have benchmark inputs for x86_64: Before: cos(): ITERS:4.69335e+08: TOTAL:28884.6Mcy, MAX:4080.28cy, MIN:57.562cy, 16248.6 calls/Mcy exp(): ITERS:4.47604e+08: TOTAL:28796.2Mcy, MAX:207.721cy, MIN:62.385cy, 15543.9 calls/Mcy pow(): ITERS:1.63485e+08: TOTAL:28879.9Mcy, MAX:362.255cy, MIN:172.469cy, 5660.86 calls/Mcy sin(): ITERS:3.89578e+08: TOTAL:28900Mcy, MAX:704.859cy, MIN:47.583cy, 13480.2 calls/Mcy tan(): ITERS:7.0971e+07: TOTAL:28902.2Mcy, MAX:1357.79cy, MIN:388.58cy, 2455.55 calls/Mcy After: cos(): ITERS:6.0014e+08: TOTAL:28875.9Mcy, MAX:364.283cy, MIN:45.716cy, 20783.4 calls/Mcy exp(): ITERS:5.48578e+08: TOTAL:28764.9Mcy, MAX:191.617cy, MIN:51.011cy, 19071.1 calls/Mcy pow(): ITERS:1.70013e+08: TOTAL:28873.6Mcy, MAX:689.522cy, MIN:163.989cy, 5888.18 calls/Mcy sin(): ITERS:4.64079e+08: TOTAL:28891.5Mcy, MAX:6959.3cy, MIN:36.189cy, 16062.8 calls/Mcy tan(): ITERS:7.2354e+07: TOTAL:28898.9Mcy, MAX:1295.57cy, MIN:380.698cy, 2503.7 calls/Mcy So the improvements are: cos: 27.9089% exp: 22.6919% pow: 4.01564% sin: 19.1585% tan: 1.96086% The downside of the change is that it will have an adverse performance impact on non-default rounding modes, but I think the tradeoff is justified.
2013-06-11Convert iso-639.def to utf-8Siddhesh Poyarekar2-5/+9
2013-06-11Add exception information to math-tests.h and use it in libm-test.inc.Joseph Myers5-18/+60
2013-06-11Port remaining string benchmarksSiddhesh Poyarekar7-25/+361
There were a few more string benchmarks (strcpy_chk and stpcpy_check) in the debug directory that needed to be ported over.
2013-06-11PowerPC: Remove redundant ports/sysdeps/powerpc/dl-procinfo.[ch].Ryan S. Arnold3-268/+7
2013-06-11PowerPC: Merge ports/ dl-procinfo.[ch] with base.Ryan S. Arnold5-80/+124
2013-06-11Update BIG5-HKSCS charmap to HKSCS-2008Andreas Schwab9-11832/+13302
2013-06-11Fix indentation and add copyright header to time.hSiddhesh Poyarekar2-4/+23
2013-06-11Remove performance-related bits from string testsSiddhesh Poyarekar26-620/+53
2013-06-11Copy over string performance tests into benchtestsSiddhesh Poyarekar62-1/+5053
Copy over already existing string performance tests into benchtests. Bits not related to performance measurements have been omitted.
2013-06-11Begin porting string performance tests to benchtestsSiddhesh Poyarekar6-3/+447
This is the initial support for string function performance tests, along with copying tests for memcpy and memcpy-ifunc as proof of concept. The string function benchmarks perform operations at different alignments and for different sizes and compare performance between plain operations and the optimized string operations. Due to this their output is incompatible with the function benchmarks where we're interested in fastest time, throughput, etc. In future, the correctness checks in the benchmark tests can be removed. Same goes for the performance measurements in the string/test-*.
2013-06-11Fix handling of netgroup cache in nscdAndreas Schwab5-15/+33
2013-06-11Update Chinese (traditional) translation from translation projectAndreas Jaeger2-1309/+1476
2013-06-11Fix-trailing-whitespaces-in-libidn.Ondrej Bilka5-394/+401
2013-06-11Fix symbol definitions for __clock_* functionsSiddhesh Poyarekar13-25/+50
__clock_gettime and other __clock_* functions could result in an extra PLT reference within libc.so if it actually gets used. None of the code currently uses them, which is why this probably went unnoticed.
2013-06-10Remove trailing whitespace from mach/*.sub.Joseph Myers4-31/+35
2013-06-10x86*: Return syscall error for lll_futex_wake.Carlos O'Donell3-8/+17
It is very very possible that the futex syscall returns an error and that the caller of lll_futex_wake may want to look at that error and propagate the failure. This patch allows a caller to see the syscall error. There are no users of the syscall error at present, but future cleanups are now be able to check for the error. -- nplt/ 2013-06-10 Carlos O'Donell <carlos@redhat.com> * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_futex_wake): Return syscall error. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_futex_wake): Return syscall error.
2013-06-10Add rounding mode information to math-tests.h and use it in libm-test.inc.Joseph Myers5-4/+71
2013-06-10Avoid overwriting earlier flags in CPPFLAGS-nonlib in benchtestsSiddhesh Poyarekar2-1/+6
When setting BENCH_DURATION in CPPFLAGS-nonlib, append to the variable instead of assigning to it, to avoid overwriting earlier set flags, notably the -DNOT_IN_libc=1 flag.
2013-06-08Fix previous commit.Ondrej Bilka1-2/+2
2013-06-08Silence warning: __inline is not at beginning of declaration.Ondrej Bilka2-1/+5
2013-06-08Avoid trailing whitespace in sysdeps/gnu/errlist.c.Joseph Myers3-10/+14
2013-06-08Use (void) in no-arguments function definitions.Joseph Myers81-107/+226
2013-06-07Avoid use of "register" as optimization hint.Joseph Myers79-278/+430
2013-06-07Remove trailing whitespace from localedata.Joseph Myers42-164/+208
2013-06-06Update miscellaneous scripts from upstream.Joseph Myers6-298/+797
2013-06-06Fix leading whitespaces.Ondrej Bilka67-132/+203
2013-06-06Fix ChangeLog.Ondrej Bilka2-3/+3
2013-06-06Remove trailing whitespace in nptl.Joseph Myers15-49/+67
2013-06-05BZ #15583: r7 uninitialized in strcpy.S when ARM_HAS_T2 undefinedRichard Henderson3-2/+8
2013-06-06Fix executable mode.Ondrej Bilka5-0/+9
2013-06-05Remove trailing whitespace.Joseph Myers192-992/+1186
2013-06-05Remove trailing whitespace in ports.Joseph Myers95-189/+307
2013-06-05Add #include <stdint.h> to locale/gen-translit.pl and fix C-translit.h.Ryan S. Arnold3-1/+9
2013-06-05Properly handle %W in strptimeAndreas Schwab4-8/+16
2013-06-05Skip modifying exception mask and flags in SET_RESTORE_ROUND_53BITSiddhesh Poyarekar2-6/+15
We only need to set/restore rounding mode to ensure correct computation for non-default rounding modes.
2013-06-04Add copyright header to test-strchrnul.cSiddhesh Poyarekar2-0/+21