summaryrefslogtreecommitdiffstats
path: root/libm
Commit message (Collapse)AuthorAgeFilesLines
* nptl: proper soname handlingNatanael Copa2010-04-221-2/+2
| | | | | | | | | | | Since sublevel releases are not ABI compatible we need to adjust the soname to include the sublevel version. This makes it possible to install ABI incompatible versions of the library side by side so clean upgrades are possible. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* prettify make cleanBernhard Reutner-Fischer2010-03-251-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: explain why some funcs are not implemented (yet)Bernhard Reutner-Fischer2010-02-041-1/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: enable log2f and exp2fAurelien Jacobs2010-02-042-3/+5
| | | | | Signed-off-by: Aurelien Jacobs <aurel@gnuage.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* rename exp(onent) to _expBernhard Reutner-Fischer2010-01-211-2/+2
| | | | | | to avoid shadow warnings Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* rename exp(onent) to exBernhard Reutner-Fischer2010-01-161-8/+8
| | | | | | to avoid shadow warnings Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* DO_XSI_MATH: add config knobBernhard Reutner-Fischer2009-11-191-2/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: use int_WRAPPER_C99 macroBernhard Reutner-Fischer2009-11-151-10/+5
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Revert "libm: fix C99_MATH on __NO_LONG_DOUBLE_MATH hosts"Bernhard Reutner-Fischer2009-11-148-28/+44
| | | | | | | | This reverts commit 73d6e5c41b61633e22ea74e3aa2df721512dca57. barking up the wrong tree Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: fix C99_MATH on __NO_LONG_DOUBLE_MATH hostsBernhard Reutner-Fischer2009-11-148-44/+28
| | | | | | | alias l to their normal double counterparts. Works around problems with libgcc blindly calling __finitel on e.g. ppc32 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-181-3/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* honour NO_LONG_DOUBLE_MATHBernhard Reutner-Fischer2009-08-302-1/+11
| | | | | | | | This fixes compilation errors on hosts that turn off long double support for C99 like powerpc32. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* support building out-of-treeBernhard Reutner-Fischer2009-08-171-0/+2
| | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Add a few missing includesRon2009-07-051-0/+1
| | | | | | | | elf.h needs __BYTE_ORDER, and s_scalbn.c needs {LONG,INT}_MAX. shm.c complains about no prototypes for shm_{open,unlink} without its header. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libm/Makefile.in: reformat the list of wrappersDenis Vlasenko2009-02-172-22/+127
| | | | | | | | | | | | | | | so that it is easier to modify, sort, etc; use __ in filenames of wrappers which wrap __functions (it may be useful to have function and file names ALWAYS match); remove names of not implemented wrappers (it was generating useless empty .o files). libm/ldouble_wrappers.c: comment out the wrapper which is not compiled anyway test/math/compile_test.c: improve this test, it was optimizing out some calls, and we don't want that. No actual code changes.
* test/math/compile_test.c: "are long double functions even compile/link?" testDenis Vlasenko2009-02-172-4/+31
| | | | | *: fix everything which prevents above from building
* math.h: fix libm_hidden_proto leak into sanitized headersDenis Vlasenko2009-02-141-4/+4
| | | | | libm/s_nextafterf.c: use /* */ comments
* - scalb{,f,l} depend on UCLIBC_SUSV3_LEGACYBernhard Reutner-Fischer2009-02-131-1/+1
|
* - use existing __stringify macroBernhard Reutner-Fischer2009-02-131-6/+4
|
* docs/probe_math_exception.c:Denis Vlasenko2009-02-113-21/+41
| | | | | | | | | | | | update example libc/sysdeps/linux/i386/bits/mathinline.h: improve __finite() macro, add __finitef macro (why they aren't always macros? why aren't they arch independent?) libm/math_private.h: much better comments on math_opt_barrier() and math_force_eval() libm/s_finite[f].c: improve out-of-line __finite[f]() too (one byte less, yay...)
* ldouble_wrappers.c: add long and long long optimized wrappersDenis Vlasenko2009-02-092-240/+113
| | | | | | | | | | float_wrappers.c: add xxxWRAPPER1(func) macros. no code changes, but makes this file much shorter. text data bss dec hex filename - 42504 188 4 42696 a6c8 lib/libm-0.9.30-svn.so + 42488 188 4 42680 a6b8 lib/libm-0.9.30-svn.so
* Hand-optimize wrappers on i386:Denis Vlasenko2009-02-091-156/+104
| | | | | | | | | | | | | | | | | | | -83 ec 10 sub $0x10,%esp -db 6c 24 14 fldt 0x14(%esp) -dd 5c 24 08 fstpl 0x8(%esp) -dd 44 24 08 fldl 0x8(%esp) -dd 1c 24 fstpl (%esp) -e8 fc ff ff ff call __GI_trunc -83 c4 10 add $0x10,%esp +db 6c 24 04 fldt 0x4(%esp) +dd 5c 24 04 fstpl 0x4(%esp) +e9 fc ff ff ff jmp __GI_trunc c3 ret text data bss dec hex filename - 42749 176 4 42929 a7b1 lib/libm-0.9.30-svn.so + 42085 176 4 42265 a519 lib/libm-0.9.30-svn.so
* ldouble_wrappers.c: fix __signbitl, it was calling itself by mistake.Denis Vlasenko2009-02-092-64/+7
| | | | | | remove wrong casts to long double of long return values. remove lots of empty lines.
* nextafterf: trying to correct FP exception handlingDenis Vlasenko2009-02-082-11/+59
|
* libm/s_nextafterf.c: forgot to "svn add" itDenis Vlasenko2009-02-061-0/+103
|
* fix nextafterf. by Jie Zhang (jie.zhang AT analog.com)Denis Vlasenko2009-02-062-11/+3
|
* libm: add scalbf, gammaf, significandf wrappers.Denis Vlasenko2009-02-052-2/+22
| | | | | | This makes in possible to enable test/math (not it compiles, but has lots of test failures).
* libm/ldouble_wrappers.c: add libm_hidden_def's to fix testsuite buildDenis Vlasenko2009-02-021-0/+2
| | | | | | | test/Rules.mak: don't pass target options to host build test/math/basic-test.c: fix test build error patching file test/unistd/errno.c: fix test build warning
* ldouble_wrappers.c: remove erroneous libm_hidden_def'sDenis Vlasenko2009-01-201-5/+0
|
* libm_sh: fix libm build for shCarmelo Amoroso2009-01-144-7/+5
| | | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libm_sh: Re-added sh specific files erroneously removed recently,Carmelo Amoroso2009-01-143-0/+75
| | | | | | | and moved under a better folder. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* forgot to remove one #endif...Denis Vlasenko2009-01-041-1/+0
|
* libm/e_scalb.c: remove unused #ifdef _SCALB_INT branchesDenis Vlasenko2009-01-033-20/+19
| | | | | libm/s_ldexp.c: add TODO
* fix small goof in last commit: should use "long" function (scalbln)Denis Vlasenko2009-01-031-10/+10
| | | | | as a main one, not "int" one (scalbn).
* libm: remove scalbln implementation, it seems to be less correct than scalbn.Denis Vlasenko2009-01-033-79/+48
| | | | | | | | | | instead, either alias scalbln to scalbn if int == long on this arch, or just call scalbn form scalbln. text data bss dec hex filename - 45297 180 4 45481 b1a9 lib/libm.so + 44969 180 4 45153 b061 lib/libm.so
* libm/e_lgamma_r.c: cosmetic whitespace fixesDenis Vlasenko2008-12-291-4/+1
|
* libm/*: delete many incarnations of logarithmic gamma function,Denis Vlasenko2008-12-2911-216/+68
| | | | | | | | | aliasing them instead af appropriate. Also alias drem to remainder. text data bss dec hex filename - 43568 176 4 43748 aae4 lib/libm.so + 43444 176 4 43624 aa68 lib/libm.so
* libm/s_nearbyint.c: delete (forgot to do it in prev commit)Denis Vlasenko2008-12-294-23/+3
| | | | | libm/*.c: minor style tweaks, no code changes
* - expand SUSv3_LEGACYBernhard Reutner-Fischer2008-12-291-0/+3
| | | | - SUSv4_LEGACY part #1 (non-networking)
* remove many functions which just call __ieee754_<function>,Denis Vlasenko2008-12-2854-911/+550
| | | | | | | | | define them as aliases instead. text data bss dec hex filename - 45402 180 4 45586 b212 lib/libm-0.9.30-svn.so + 45302 180 4 45486 b1ae lib/libm-0.9.30-svn.so
* libm/*: mass removal of:Denis Vlasenko2008-12-22100-1425/+113
| | | | | | | | | 1. static char rcsid[] = "$NetBSD: ..." 2. /* @(#)s_scalbn.c 5.1 93/09/24 */ 3. #ifdef __STDC__ No code changes (verified with objdump)
* - fix fpclassify, signbit, isfinite, isnan, isinf macros for long double ↵Bernhard Reutner-Fischer2008-12-2231-75/+112
| | | | | | math support - add rule to create preprocessor output for float- and long double math wrapper
* make all "XXXhidden_proto(" consistently not use a space before '('Denis Vlasenko2008-12-132-2/+2
|
* *: document __USE_EXTERN_INLINES better;Denis Vlasenko2008-12-1310-4/+30
| | | | | fix uclibc build if it is forcibly enabled
* - less verbose make cleanBernhard Reutner-Fischer2008-11-071-2/+2
|
* - tidy up inline:Bernhard Reutner-Fischer2008-10-241-1/+1
| | | | ldso and syscalls are __always_inline (the latter would need more cleanup)
* - implement log2()Bernhard Reutner-Fischer2008-10-062-1/+15
|
* - add long double math wrappers (Ned Ludd)Bernhard Reutner-Fischer2008-10-033-2/+552
|
* - use c89-style commentsBernhard Reutner-Fischer2008-10-033-3/+3
| | | | Closes issue #5194
* - move libm_hidden_proto to the corresponding headers. Remove from callsites.Bernhard Reutner-Fischer2008-09-2696-236/+70
| | | | Note that gamma_r is not provided by glibc, perhaps add a SUN specific knob later