summaryrefslogtreecommitdiffstats
path: root/libm
Commit message (Collapse)AuthorAgeFilesLines
* DO_XSI_MATH: add config knobBernhard Reutner-Fischer2009-11-221-2/+6
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* libm: use int_WRAPPER_C99 macroBernhard Reutner-Fischer2009-11-221-10/+5
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* honour NO_LONG_DOUBLE_MATHBernhard Reutner-Fischer2009-09-032-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* support building out-of-treeBernhard Reutner-Fischer2009-08-191-0/+2
| | | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Add a few missing includesRon2009-07-091-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* - synch r25316:25325 from trunkBernhard Reutner-Fischer2009-02-182-7/+5
|
* 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
* 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
|
* fix nextafterf. by Jie Zhang (jie.zhang AT analog.com)Denis Vlasenko2009-02-063-11/+106
|
* 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
* - pull r24593:24596 from trunkBernhard Reutner-Fischer2008-12-291-0/+3
|
* 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
* - sync with trunk @r24492Bernhard Reutner-Fischer2008-12-22108-1500/+225
|
* Sync with trunk.Khem Raj2008-12-1516-82/+32
|
* Synch with trunk @ 24075.Carmelo Amoroso2008-11-17116-1958/+1369
| | | | | Step 3 libm and related headers
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-312-10/+10
| | | | | | | Basically trailing whitespaces removal, fix non standard keywords asm -> __asm__ inline -> __inline__ and some minor changes on trunk. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Synch libm with trunkCarmelo Amoroso2008-06-187-25/+230
|
* Synch libm for i386 with trunkCarmelo Amoroso2008-06-1815-0/+794
|
* Synch libm for powerpc with trunkCarmelo Amoroso2008-06-1834-33/+846
|
* Merge nptl branch tree with trunk. Carmelo Amoroso2008-03-161-1/+1
| | | | | | | Step 6: fix Makefiles to use $(VERSION) and the compiler-driver for the link stage Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Add SH minimal support for floating point exceptioins.Carmelo Amoroso2007-11-214-0/+76
| | | | | | Required for example by qt-embedded libraries. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Merge from trunk."Steven J. Hill"2007-01-202-7/+6
|
* Copy from trunk."Steven J. Hill"2006-12-161-0/+94
|
* Merge from trunk."Steven J. Hill"2006-08-215-4/+9
|
* Merge from trunk."Steven J. Hill"2006-02-251-4/+4
|
* Merge from trunk. Going pretty good so far. Kind of. Okay, not really."Steven J. Hill"2006-02-2587-148/+367
|
* Merge from trunk."Steven J. Hill"2006-01-0614-20/+39
|
* Merge from trunk."Steven J. Hill"2005-11-2931-207/+83
|
* Sync up with trunk."Steven J. Hill"2005-11-191-1/+1
|
* Massive merge from trunk."Steven J. Hill"2005-11-182-46/+68
|
* Merge from trunk."Steven J. Hill"2005-11-171-43/+20
|
* Copy from trunk."Steven J. Hill"2005-11-161-0/+75
|