Commit Graph

22 Commits

Author SHA1 Message Date
Milan Bouchet-Valat b5ca785d4c Avoid redefining endianness macros with some gcc versions
_LITTLE_ENDIAN and _BIG_ENDIAN are built-in on some platforms/versions.
Better use __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__ and __BYTE_ORDER__,
which are standard for gcc and clang, and define them when they are missing.
Also remove the special-case for FreeBSD, which is apprently not needed.
2016-03-02 21:21:25 +01:00
Ed Schouten 78c0afb2a7 Rename _scan_nan() to __scan_nan().
The current tradition of openlibm is to hide all of its internal symbols
into the reserved system namespace. CloudABI has a check in place to
ensure that its C library (which contains openlibm) to not place any
unwanted symbols into the public namespace. openlibm seems to leak
_scan_nan() in there, so we'd better add an additional underscore.
2016-02-27 17:26:15 +01:00
Viral B. Shah c29e8b1b6e Revert "Remove [jy][01n]f(). X/Open only standardizes the double versions."
This reverts commit 8c8693cf79.
2015-11-13 09:06:24 +05:30
Ed Schouten 8c8693cf79 Remove [jy][01n]f(). X/Open only standardizes the double versions. 2015-02-12 13:48:13 +01:00
Ed Schouten ce4982acf8 Remove scalb(). The scalbn() or scalbln() function should be used. 2015-02-12 13:38:13 +01:00
Ed Schouten 532fe1553e Remove the non-standard gamma() function. Use lgamma() instead. 2015-02-12 13:25:30 +01:00
Ed Schouten 08dbb2b517 Never include <complex.h>. Include <openlibm_complex.h> instead.
If we ship with a separate copy of <complex.h>, we should also use this
one instead of the one provided by the system.
2015-01-09 13:30:44 +01:00
Ed Schouten f835657bd8 Remove checks against header guards.
It seems that this header conditionally tests whether <complex.h> is
included, as the 'complex' keyword is otherwise not available. This
version of math_private.h includes <complex.h> unconditionally, so there
is no need to test against this.
2015-01-07 22:11:36 +01:00
Viral B. Shah 9ecf223fc1 Get the ld80 routines from OpenBSD to build on mac and linux.
Bump version number and SO major version, since we have
introduced new long double APIs.
2014-12-04 23:56:11 +05:30
Elliot Saba e9d02ee729 Fix compilation by including cdefs-compat.h in math_private.h
Also fix redefinition of __pure2
2014-06-05 22:08:41 -07:00
Milan Bouchet-Valat 3e769e48b8 Move complex number declarations to openlibm.h
These are used by openspecfun, thus they need to be available
from public headers.
2014-03-29 11:24:31 +01:00
Jameson Nash f7c5ad7088 add DLLEXPORT to files in src and `int isopenlibm() = 1` function" 2013-08-03 05:16:01 -04:00
Steven G. Johnson 67d2324543 use C11 CMPLX or gcc __builtin_complex if available to define cpack macros 2012-12-20 14:04:23 -05:00
Mike Nolta ec53659c6a fixes for freebsd9 2012-10-30 17:54:30 -04:00
Keno Fischer 307d7361c5 automatic arch selection in Makefile 2012-05-25 16:24:37 -04:00
Jameson Nash 0df00dd0f7 initial attempt getting everything to build on windows 2012-04-08 20:03:36 -04:00
Viral B. Shah 7129663350 OpenLIBM builds on linux.
Disable -std=c99 on linux for now, as gcc does freaks out in math_private.h
on the definition of IEEE_WORD_ORDER, and defines ieee_double_shape_type twice.

Disable building s_cbrtl.c for the time being as it requires ieeefp.h
2012-01-05 23:24:14 -05:00
Viral B. Shah f5fb927467 Build with gcc. 2011-12-31 19:26:51 +05:30
Viral B. Shah 394d97b5e2 198 out of 203 files build now. 2011-12-31 00:48:35 +05:30
Viral B. Shah 3c7b5cc6f7 Get much of src/ to build.
Use build.clang.sh or build.gcc.sh for the time being.
2011-12-16 11:00:31 +05:30
Viral B. Shah 16b9264f9d Import entire msun from FreeBSD. 2011-12-15 11:29:35 +05:30
Viral B. Shah aba7ae910f Initialize repo. FreeBSD 8.2 msun code + some tweaks 2011-08-13 00:31:25 +05:30