summaryrefslogtreecommitdiffstats
path: root/newlib/libm
Commit message (Collapse)AuthorAgeFilesLines
* Add RISC-V port for libmKito Cheng2017-08-1719-1/+7282
| | | | | | Contributor list: - Michael Neilly <mneilly@yahoo.com> - Kito Cheng <kito.cheng@gmail.com>
* Importing catanl long double complex method from NetBSD.Aditya Upadhyay2017-07-283-4/+88
|
* Fixing HUGE_VALF to HUGE_VALL.Aditya Upadhyay2017-07-281-1/+1
|
* newlib: fix file mode of newly added complex sourcesCorinna Vinschen2017-06-2916-0/+0
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: libm/complex/Makefile.in: regenerateCorinna Vinschen2017-06-291-22/+161
|
* Adding csinl.c in Makefile.amAditya Upadhyay2017-06-291-1/+1
| | | | Signed-off-by: Aditya Upadhyay <aadit0402@gmail.com>
* Importing csinl.c from NetBSD.Aditya Upadhyay2017-06-291-0/+45
|
* Importing csinhl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+46
|
* Importing casinhl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+43
|
* Importing ctanl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+57
|
* Importing ctanhl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+48
|
* Importing cpowl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+57
|
* Importing conjl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+47
|
* Importing catanhl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+43
|
* Importing casinl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+121
|
* Importing ccosl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+46
|
* Importing cacosl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+46
|
* Adding cephes_subrl.h and cephes_subrl.c from NetBSD.Aditya Upadhyay2017-06-293-2/+140
|
* Importing cexpl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+47
|
* Importing cprojl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+65
|
* Importing cargl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+19
|
* Importing csqrtl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+113
|
* Importing clogl.c from NetBSD.Aditya Upadhyay2017-06-292-0/+47
|
* Importing cacoshl.c from NetBSD.Aditya Upadhyay2017-06-292-1/+46
|
* ccoshl: Align formatting to upstreamAditya Upadhyay2017-06-141-6/+6
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Importing ccoshl.c from netbsd.Aditya Upadhyay2017-06-133-4/+55
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: remove __infinity{f,ld} constantsCorinna Vinschen2017-04-183-31/+4
| | | | | | | | | | | | | | | previous commit 4c90db7bc89e7fa1077025fefdd58269dc71a6ac introduced a compile time error because libm/common/s_infconst.c used the remove __fmath, __dmath, and __ldmath union types. Since this is very old, and unused for a very long time, just drop the file and thus the __infinity constants entirely. Exception: Cygwin exports __infinity from the beginning. There's a very, VERY low probability that any existing executable or lib still uses this constant, but we just keep it in for backward compat, nevertheless. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* ARM: Fix IEEE-754 sqrt implementationSebastian Huber2017-03-222-2/+2
| | | | | Older GCC (e.g. 4.9.3) seem to define __ARM_FP even in case soft-float is used.
* ARM: Optimize IEEE-754 sqrt implementationSebastian Huber2017-03-214-1/+108
| | | | Use the vsqrt.f64 and vsqrt.f32 instructions if available.
* Fix versions in documentation (manually for now)Corinna Vinschen2017-01-091-2/+2
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Bump release to 2.5.0 for yearly snapshot.newlib-2_5_0Jeff Johnston2016-12-228-72/+73
|
* Fix pdf build failure with texinfo 6.1.0Thomas Preudhomme2016-10-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, make pdf on Ubuntu 16.04 fail with: newlib/libc/libc.texinfo:9: Missing @endcsname inserted. After a lot of fiddling the reason appears to be the combination of concept and function index despite a lack of concept index entries. Arguably texinfo should not error in that case but here we are, newlib will fail to build its documentation on some systems because of this. Since libc.texinfo only contains function index entries this patch simply removes the combination of indices. It does the same for libm.texinfo which has concept index entries but no function index entries. Tested by running make pdf, make dvi, make info and make html successfully. libc.pdf appears to have only one index as expected. == Proposed commit message == Fix pdf build failure with texinfo 6.1.0 as provided in Ubuntu 16.04. Index combination in libc.texinfo and libm.texinfo fails because both file have only one type of index entries. Removing index combination is thus harmless and solves the problem. Is this ok for master? Best regards, Thomas
* Regenerate newlib MakefilesJon Turney2016-07-0411-30/+164
|
* Make newlib manpages (v3)Jon Turney2016-07-043-1/+34
| | | | | | | | | | | | | | | | | | | | Add makedocbook, a tool to process makedoc markup and output DocBook XML refentries. Process all the source files which are processed with makedoc with makedocbook as well Add chapter-texi2docbook, a tool to automatically generate DocBook XML chapter files from the chapter .texi files. For generating man pages all we care about is the content of the refentries, so all this needs to do is convert the @include of the makedoc generated .def files to xi:include of the makedocbook generated .xml files. Add skeleton Docbook XML book files, lib[cm].in.xml which include these generated chapters, which in turn include the generated files containing refentries, which is processed with xsltproc to generate the lib[cm].xml Add new make targets to generate and install man pages from lib[cm].xml
* Revert "Make newlib manpages via DocBook XML (v3)"Jon Turney2016-06-253-34/+1
| | | | This reverts commit 041ea4106881a3434e63ca95a38c911515793f09.
* Make newlib manpages via DocBook XML (v3)Jon Turney2016-06-253-1/+34
| | | | | | | | | | | | | | | | | | | | Add makedocbook, a tool to process makedoc markup and output DocBook XML refentries. Process all the source files which are processed with makedoc with makedocbook as well Add chapter-texi2docbook, a tool to automatically generate DocBook XML chapter files from the chapter .texi files. For generating man pages all we care about is the content of the refentries, so all this needs to do is convert the @include of the makedoc generated .def files to xi:include of the makedocbook generated .xml files. Add skeleton Docbook XML book files, lib[cm].in.xml which include these generated chapters, which in turn include the generated files containing refentries, which is processed with xsltproc to generate the lib[cm].xml Add new make targets to generate and install man pages from lib[cm].xml
* math: fix isinf/isnan on SPU after move to math.hYaakov Selkowitz2016-04-072-0/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* math: update isinf/isnan function comments after move to math.hYaakov Selkowitz2016-04-056-18/+18
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Bump up newlib version to 2.4.0 due to feature test refactoringnewlib-2_4_0Jeff Johnston2016-03-297-79/+79
|
* finitel: Use correct GCC builtinCorinna Vinschen2016-03-261-1/+1
| | | | | | | | | | __builtin_isinf_sign doesn't reflect the correct return value for NaN to emulate finite function. Use __builtin_isfinite instead whichg is available since GCC 4.4 just as __builtin_isinf_sign. * libm/common/sl_finite.c (finitel): Use __builtin_isfinite. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Enable HW interrupt setup on x86/x86_64 systems by defaultnewlib-snapshot-20160226Corinna Vinschen2016-02-261-1/+1
| | | | | | | | | | | | | * configure.host: Define _I386MACH_DISABLE_HW_INTERRUPTS on rdos. Remove setting _I386MACH_ALLOW_HW_INTERRUPTS anywhere else. * libc/machine/i386/i386mach.h: Replace test for _I386MACH_ALLOW_HW_INTERRUPTS with test for !_I386MACH_DISABLE_HW_INTERRUPTS. * libc/machine/x86_64/x86_64mach.h: Ditto. * libc/sys/linux/machine/i386/i386mach.h: Ditto. * libm/machine/i386/i386mach.h: Ditto. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* libm/complex: add clog10, clog10fYaakov Selkowitz2016-02-225-24/+100
| | | | | | | | | | | | | | newlib/ * libc/include/complex.h (clog10, clog10f): Declare. * libm/complex/Makefile.am (src): Add clog10.c. (fsrc): Add clog10f.c. (CHEWOUT_FILES): Add clog10.def. * libm/complex/Makefile.in: Regenerate. * libm/complex/clog10.c: New file. * libm/complex/clog10f.c: New file. * libm/complex/complex.tex: Add references to clog10 docs. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Also fix libm/machine generated files.Jeff Johnston2016-02-172-19/+12139
|
* Fix libm regenerated files again.Jeff Johnston2016-02-172-134/+2920
|
* Fix regeneration of libm autotool files.Jeff Johnston2016-02-172-7/+9337
|
* Define the newlib version macros in one place: _newlib_version.h.Pieter du Preez2016-02-174-24273/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the newlib version information needs to be updated in two places: - newlib/acinclude.m4 - newlib/libc/include/sys/features.h The goal of this patch is to: - supply a single location for defining the newlib version information: newlib/acinclude.m4 - define __NEWLIB__, __NEWLIB_MINOR__ and __NEWLIB_PATCHLEVEL__ This is in line with what gcc does for its version macros. See: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html This patch moves the definition of the _NEWLIB_VERSION, __NEWLIB__ and __NEWLIB_MINOR__ macros from newlib/libc/include/sys/features.h, to the newly generated newlib/_newlib_version.h file. Additionally, the __NEWLIB_PATCHLEVEL__ macro was created, for completeness. In order to stay backwards compatible, newlib/_newlib_version.h gets included by newlib/newlib.h and newlib/libc/include/sys/features.h. Note: This patch does _not_ include the modifications to the following files, as these should all be generated any way. *Makefile.in, *aclocal.m4, *configure stamp-* files Signed-off-by: Pieter du Preez <pdupreez@gmail.com>
* Fix up errors in regenerated files for 2.3.0 release.newlib-snapshot-20160104Jeff Johnston2016-01-041-10/+10
|
* Regenerate files for newlib 2.3.0.newlib-2_3_0Jeff Johnston2015-12-217-89/+122
|
* Check for 64 FP instructions availability in libm before using themThomas Preud'homme2015-12-096-6/+6
| | | | | | | | | | | | Currently, double precision math functions in newlib/libm/machine/arm detect whether neon instructions can be used for double precision computation by checking the architecture version (>= 8) and the availability of floating-point instructions. However, these instructions would not be available if targeting fpv5-sp-d16 as the FPU, which by definition does not have 64bit float instructions. This patch adds a check that __ARM_FP advertises 64bit float instructions. * libm/machine/arm/s_ceil.c: Also check that 64bit FP instructions are available in the guard. * libm/machine/arm/s_floor.c: Likewise. * libm/machine/arm/s_nearbyint.c: Likewise. * libm/machine/arm/s_rint.c: Likewise. * libm/machine/arm/s_round.c: Likewise. * libm/machine/arm/s_trunc.c: Likewise.
* doc: Fix some inconsistent QUICKREF linesJon Turney2015-11-125-5/+10
| | | | | | | | | | | | | | | | | | | | | | makedoc defines a command as 'all upper case, and alone on a line'. A few QUICKREF lines currently violate this by having some additional text after the QUICKREF. So, currently, these lines are treated as an unknown command. This is benign as QUICKREF currently does nothing but produce some ignored output on stderr. I'm not sure what the intent of QUICKREF is. 2015-11-06 Jon Turney <jon.turney@dronecode.org.uk> * libm/mathfp/s_acos.c: Fix QUICKREF. * libm/mathfp/e_acosh.c: Ditto. * libm/math/w_asin.c: Ditto. * libm/mathfp/e_acosh.c: Ditto. * libm/mathfp/s_acos.c: Ditto. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>