Commit 44a4964e authored by Viral B. Shah's avatar Viral B. Shah

Merge pull request #81 from NuxiNL/openlibm-math

Rename openlibm.h to openlibm_math.h.
parents ee297699 34d44ffa
......@@ -20,6 +20,11 @@ USEGCC = 0
USECLANG = 1
endif
ifeq ($(OS), FreeBSD)
USEGCC = 0
USECLANG = 1
endif
AR = ar
ifeq ($(USECLANG),1)
......
......@@ -31,6 +31,7 @@
#include "cdefs-compat.h"
//__FBSDID("$FreeBSD: src/lib/msun/bsdsrc/b_exp.c,v 1.9 2011/10/16 05:37:20 das Exp $");
#include <openlibm_math.h>
/* EXP(X)
* RETURN THE EXPONENTIAL OF X
......
......@@ -31,8 +31,7 @@
#include "cdefs-compat.h"
//__FBSDID("$FreeBSD: src/lib/msun/bsdsrc/b_log.c,v 1.9 2008/02/22 02:26:51 das Exp $");
#include <openlibm.h>
#include <errno.h>
#include <openlibm_math.h>
#include "mathimpl.h"
......
......@@ -38,7 +38,8 @@
* acknowledged.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "mathimpl.h"
/* METHOD:
......
......@@ -34,8 +34,6 @@
#define _MATHIMPL_H_
#include "cdefs-compat.h"
#include <openlibm.h>
#include "math_private.h"
/*
......
This diff is collapsed.
This diff is collapsed.
......@@ -24,7 +24,7 @@
* acoshl(NaN) is NaN without signal.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -28,7 +28,7 @@
*
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -46,7 +46,7 @@
* only coshl(0)=1 is exact for finite x.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -73,7 +73,7 @@
/* Exponential function */
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -16,7 +16,7 @@
* Method: shift and subtract
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -42,7 +42,7 @@
* than 1 ulps (units in the last place)
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -69,7 +69,7 @@
*
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -59,7 +59,7 @@
*
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -58,7 +58,7 @@
*
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -60,7 +60,7 @@
*
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -59,7 +59,7 @@
*
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -23,7 +23,7 @@
*/
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
#include "fpmath.h"
......
......@@ -44,7 +44,7 @@
* only sinhl(0)=0 is exact for finite x.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -16,7 +16,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -18,7 +18,7 @@
* ld128 version of k_tan.c. See ../src/k_tan.c for most comments.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -21,7 +21,7 @@
* := signl(x)*log1pl(|x| + x^2/(1 + sqrtl(1+x^2)))
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -19,7 +19,7 @@
* Inexact flag raised if x not equal to ceil(x).
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -91,7 +91,7 @@
* erfc/erf(NaN) is NaN
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -28,7 +28,7 @@
//__FBSDID("$FreeBSD: src/lib/msun/ld128/s_exp2l.c,v 1.3 2008/02/13 10:44:44 bde Exp $");
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include <stdint.h>
#include "fpmath.h"
......
......@@ -54,7 +54,7 @@
*/
#include <errno.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -19,7 +19,7 @@
* Inexact flag raised if x not equal to floor(x).
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -54,7 +54,7 @@
* IEEE -1, 8 100000 1.9e-34 4.3e-35
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -20,7 +20,7 @@
* No exception.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -26,7 +26,7 @@
* $FreeBSD: src/lib/msun/ld128/s_nanl.c,v 1.3 2008/03/02 20:16:55 das Exp $
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "fpmath.h"
#include "math_private.h"
......
......@@ -17,7 +17,7 @@
* Special cases:
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -18,7 +18,7 @@
*/
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -10,7 +10,7 @@
* ====================================================
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -14,7 +14,7 @@
#include <machine/ieee.h>
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include <stdint.h>
#include "math_private.h"
......
......@@ -50,7 +50,7 @@
* only tanhl(0)=0 is exact for finite argument.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -24,7 +24,7 @@
#include <machine/ieee.h>
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include <stdint.h>
#include "math_private.h"
......
......@@ -24,7 +24,7 @@
* acoshl(NaN) is NaN without signal.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -28,7 +28,7 @@
*
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -31,7 +31,7 @@
* only coshl(0)=1 is exact for finite x.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -72,7 +72,7 @@
/* Exponential function */
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -14,7 +14,7 @@
//#include <machine/ieee.h>
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include <stdint.h>
#include "math_private.h"
......
......@@ -42,7 +42,7 @@
* than 1 ulps (units in the last place)
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -86,7 +86,7 @@
*
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -63,7 +63,7 @@
* log domain: x < 0; returns MINLOG
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -63,7 +63,7 @@
* log domain: x < 0; returns NAN
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -63,7 +63,7 @@
* log domain: x < 0; returns NAN
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -73,7 +73,7 @@
*/
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -23,7 +23,7 @@
*/
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -28,7 +28,7 @@
* only sinhl(0)=0 is exact for finite x.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -55,7 +55,7 @@
*/
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -28,7 +28,7 @@
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#define BIAS (LDBL_MAX_EXP - 1)
#define MANH_SIZE LDBL_MANH_SIZE
......
......@@ -18,7 +18,7 @@
* ld80 version of k_tan.c. See ../src/k_tan.c for most comments.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -21,7 +21,7 @@
* := signl(x)*log1pl(|x| + x^2/(1 + sqrtl(1+x^2)))
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -19,7 +19,7 @@
* Inexact flag raised if x not equal to ceil(x).
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -99,7 +99,7 @@
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -32,7 +32,7 @@
#include "amd64/bsd_ieeefp.h"
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -57,7 +57,7 @@
*
*/
#include <openlibm.h>
#include <openlibm_math.h>
static const long double MAXLOGL = 1.1356523406294143949492E4L;
......
......@@ -19,7 +19,7 @@
* Inexact flag raised if x not equal to floor(x).
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -59,7 +59,7 @@
* log domain: x-1 < 0; returns NAN
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -20,7 +20,7 @@
* No exception.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -26,7 +26,7 @@
* $FreeBSD: src/lib/msun/ld80/s_nanl.c,v 1.2 2007/12/18 23:46:31 das Exp $
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -17,7 +17,7 @@
* Special cases:
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -17,8 +17,8 @@
* Special cases:
*/
#include <openlibm.h>
#include <float.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -10,8 +10,8 @@
* ====================================================
*/
#include <openlibm.h>
#include <float.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -14,7 +14,7 @@
#include <machine/ieee.h>
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include <stdint.h>
#include "math_private.h"
......
......@@ -34,7 +34,7 @@
* only tanhl(0)=0 is exact for finite argument.
*/
#include <openlibm.h>
#include <openlibm_math.h>
#include "math_private.h"
......
......@@ -24,7 +24,7 @@
//#include <machine/ieee.h>
#include <float.h>
#include <openlibm.h>
#include <openlibm_math.h>
#include <stdint.h>
#include "math_private.h"
......
#include "math_private.h"
DLLEXPORT int isopenlibm() {
DLLEXPORT int isopenlibm(void) {
return 1;
}