Skip to content
Merged
9 changes: 4 additions & 5 deletions i387/Make.files
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
$(CUR_SRCS) = e_exp.S e_fmod.S e_log.S e_log10.S \
e_remainder.S e_sqrt.S s_ceil.S s_copysign.S \
s_finite.S s_floor.S s_llrint.S s_logb.S s_lrint.S \
s_remquo.S s_rint.S s_significand.S s_tan.S \
s_trunc.S
s_floor.S s_llrint.S s_logb.S s_lrint.S \
s_remquo.S s_rint.S s_tan.S s_trunc.S

ifneq ($(OS), WINNT)
$(CUR_SRCS) += s_scalbn.S s_scalbnf.S s_scalbnl.S
Expand All @@ -12,11 +11,11 @@ endif
$(CUR_SRCS)+= e_log10f.S e_logf.S e_remainderf.S \
e_sqrtf.S s_ceilf.S s_copysignf.S s_floorf.S \
s_llrintf.S s_logbf.S s_lrintf.S \
s_remquof.S s_rintf.S s_significandf.S s_truncf.S
s_remquof.S s_rintf.S s_truncf.S

# long double counterparts
$(CUR_SRCS)+= e_remainderl.S e_sqrtl.S s_ceill.S s_copysignl.S \
s_floorl.S s_llrintl.S \
s_logbl.S s_lrintl.S s_remquol.S s_rintl.S s_truncl.S

$(CUR_SRCS)+= fenv.c
$(CUR_SRCS)+= fenv.c
23 changes: 0 additions & 23 deletions i387/s_finite.S

This file was deleted.

21 changes: 0 additions & 21 deletions i387/s_significand.S

This file was deleted.

22 changes: 0 additions & 22 deletions i387/s_significandf.S

This file was deleted.

45 changes: 7 additions & 38 deletions include/openlibm_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ extern int signgam;
#if defined(__cplusplus)
extern "C" {
#endif
/* Symbol present when OpenLibm is used. */
int isopenlibm(void);

/*
* ANSI/POSIX
*/
Expand Down Expand Up @@ -280,14 +283,6 @@ double jn(int, double);
double y0(double);
double y1(double);
double yn(int, double);

#if __XSI_VISIBLE <= 500 || __BSD_VISIBLE
double gamma(double);
#endif

#if __XSI_VISIBLE <= 600 || __BSD_VISIBLE
double scalb(double, double);
#endif
#endif /* __BSD_VISIBLE || __XSI_VISIBLE */

#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999
Expand All @@ -307,26 +302,18 @@ double trunc(double);
* BSD math library entry points
*/
#if __BSD_VISIBLE
double drem(double, double);
int finite(double) __pure2;
int isnanf(float) __pure2;

/*
* Reentrant version of gamma & lgamma; passes signgam back by reference
* as the second argument; user must allocate space for signgam.
* Reentrant version of lgamma; passes signgam back by reference as the
* second argument; user must allocate space for signgam.
*/
double gamma_r(double, int *);
double lgamma_r(double, int *);

/*
* Single sine/cosine function.
*/
void sincos(double, double *, double *);

/*
* IEEE Test Vector
*/
double significand(double);
#endif /* __BSD_VISIBLE */

/* float versions of ANSI/POSIX functions */
Expand Down Expand Up @@ -400,34 +387,16 @@ float fminf(float, float) __pure2;
* float versions of BSD math library entry points
*/
#if __BSD_VISIBLE
float dremf(float, float);
int finitef(float) __pure2;
float gammaf(float);
float j0f(float);
float j1f(float);
float jnf(int, float);
float scalbf(float, float);
float y0f(float);
float y1f(float);
float ynf(int, float);

/*
* Float versions of reentrant version of gamma & lgamma; passes
* signgam back by reference as the second argument; user must
* allocate space for signgam.
* Float versions of reentrant version of lgamma; passes signgam back by
* reference as the second argument; user must allocate space for signgam.
*/
float gammaf_r(float, int *);
float lgammaf_r(float, int *);

/*
* Single sine/cosine function.
*/
void sincosf(float, float *, float *);

/*
* float version of IEEE Test Vector
*/
float significandf(float);
#endif /* __BSD_VISIBLE */

/*
Expand Down
15 changes: 6 additions & 9 deletions src/Make.files
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
$(CUR_SRCS) = common.c \
e_acos.c e_acosf.c e_acosh.c e_acoshf.c e_asin.c e_asinf.c \
e_atan2.c e_atan2f.c e_atanh.c e_atanhf.c e_cosh.c e_coshf.c e_exp.c \
e_expf.c e_fmod.c e_fmodf.c e_gamma.c e_gamma_r.c e_gammaf.c \
e_gammaf_r.c e_hypot.c e_hypotf.c e_j0.c e_j0f.c e_j1.c e_j1f.c \
e_jn.c e_jnf.c e_lgamma.c e_lgamma_r.c e_lgammaf.c e_lgammaf_r.c \
e_expf.c e_fmod.c e_fmodf.c e_hypot.c e_hypotf.c e_j0.c e_j1.c \
e_jn.c e_lgamma.c e_lgamma_r.c e_lgammaf.c e_lgammaf_r.c \
e_lgammal.c e_log.c e_log10.c e_log10f.c e_log2.c e_log2f.c e_logf.c \
e_pow.c e_powf.c e_remainder.c e_remainderf.c e_scalb.c e_scalbf.c \
e_pow.c e_powf.c e_remainder.c e_remainderf.c \
e_rem_pio2.c e_rem_pio2f.c \
e_sinh.c e_sinhf.c e_sqrt.c e_sqrtf.c \
k_cos.c k_exp.c k_expf.c k_rem_pio2.c k_sin.c k_tan.c \
Expand All @@ -15,7 +14,6 @@ $(CUR_SRCS) = common.c \
s_copysign.c s_copysignf.c s_cos.c s_cosf.c \
s_csqrt.c s_csqrtf.c s_erf.c s_erff.c \
s_exp2.c s_exp2f.c s_expm1.c s_expm1f.c s_fabs.c s_fabsf.c s_fdim.c \
s_finite.c s_finitef.c \
s_floor.c s_floorf.c s_fma.c s_fmaf.c \
s_fmax.c s_fmaxf.c s_fmin.c \
s_fminf.c s_fpclassify.c \
Expand All @@ -28,10 +26,10 @@ $(CUR_SRCS) = common.c \
s_nexttowardf.c s_remquo.c s_remquof.c \
s_rint.c s_rintf.c s_round.c s_roundf.c s_roundl.c \
s_scalbln.c s_scalbn.c s_scalbnf.c s_signbit.c \
s_signgam.c s_significand.c s_significandf.c s_sin.c s_sincos.c \
s_signgam.c s_sin.c s_sincos.c \
s_sinf.c s_sincosf.c s_tan.c s_tanf.c s_tanh.c s_tanhf.c s_tgammaf.c \
s_trunc.c s_truncf.c s_cpow.c s_cpowf.c \
w_cabs.c w_cabsf.c w_drem.c w_dremf.c
w_cabs.c w_cabsf.c

ifneq ($(OS), WINNT)
$(CUR_SRCS) += s_nan.c
Expand All @@ -54,8 +52,7 @@ $(CUR_SRCS) += e_acosl.c e_asinl.c e_atan2l.c e_fmodl.c \
s_casinl.c s_ctanl.c \
s_cimagl.c s_conjl.c s_creall.c s_cacoshl.c s_catanhl.c s_casinhl.c \
s_catanl.c s_csinl.c s_cacosl.c s_cexpl.c s_csinhl.c s_ccoshl.c \
s_clogl.c s_ctanhl.c s_ccosl.c
# s_cbrtl.c
s_clogl.c s_ctanhl.c s_ccosl.c s_cbrtl.c
endif

# C99 complex functions
Expand Down
2 changes: 2 additions & 0 deletions src/common.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <openlibm_math.h>

#include "math_private.h"

DLLEXPORT int isopenlibm(void) {
Expand Down
36 changes: 0 additions & 36 deletions src/e_gamma.c

This file was deleted.

33 changes: 0 additions & 33 deletions src/e_gamma_r.c

This file was deleted.

37 changes: 0 additions & 37 deletions src/e_gammaf.c

This file was deleted.

34 changes: 0 additions & 34 deletions src/e_gammaf_r.c

This file was deleted.

Loading