瀏覽代碼

The inline stuff was causing too much pain linking.
Disable inline stuff for now.

Viral B. Shah 13 年之前
父節點
當前提交
6cb8c2aaa0
共有 12 個文件被更改,包括 34 次插入27 次删除
  1. 2 0
      src/Makefile
  2. 2 1
      src/e_rem_pio2.c
  3. 2 1
      src/e_rem_pio2f.c
  4. 2 1
      src/k_cosf.c
  5. 2 1
      src/k_sinf.c
  6. 2 1
      src/k_tanf.c
  7. 2 2
      src/s_cos.c
  8. 6 6
      src/s_cosf.c
  9. 2 2
      src/s_sin.c
  10. 6 6
      src/s_sinf.c
  11. 2 2
      src/s_tan.c
  12. 4 4
      src/s_tanf.c

+ 2 - 0
src/Makefile

@@ -7,9 +7,11 @@ SRCS= \
 	e_gammaf_r.o e_hypot.o e_hypotf.o e_j0.o e_j0f.o e_j1.o e_j1f.o \
 	e_jn.o e_jnf.o e_lgamma.o e_lgamma_r.o e_lgammaf.o e_lgammaf_r.o \
 	e_log.o e_log10.o e_log10f.o e_log2.o e_log2f.o e_logf.o \
+	e_rem_pio2.o e_rem_pio2f.o \
 	e_pow.o e_powf.o e_remainder.o e_remainderf.o e_scalb.o e_scalbf.o \
 	e_sinh.o e_sinhf.o e_sqrt.o e_sqrtf.o \
 	k_cos.o k_exp.o k_expf.o k_rem_pio2.o k_sin.o k_tan.o \
+	k_cosf.o k_sinf.o k_tanf.o \
 	s_asinh.o s_asinhf.o s_atan.o s_atanf.o s_carg.o s_cargf.o s_cargl.o \
 	s_cbrt.o s_cbrtf.o s_ceil.o s_ceilf.o \
 	s_copysign.o s_copysignf.o s_cos.o s_cosf.o \

+ 2 - 1
src/e_rem_pio2.c

@@ -51,7 +51,8 @@ pio2_3t =  8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
 #ifndef INLINE_REM_PIO2
 extern
 #endif
-__inline int
+//__inline int
+int 
 __ieee754_rem_pio2(double x, double *y)
 {
 	double z,w,t,r,fn;

+ 2 - 1
src/e_rem_pio2f.c

@@ -43,7 +43,8 @@ pio2_1t =  1.58932547735281966916e-08; /* 0x3E5110b4, 0x611A6263 */
 #ifndef INLINE_REM_PIO2F
 extern
 #endif
-__inline int
+//__inline int
+int
 __ieee754_rem_pio2f(float x, double *y)
 {
 	double w,r,fn;

+ 2 - 1
src/k_cosf.c

@@ -33,7 +33,8 @@ C3  =  0x199342e0ee5069.0p-68;	/*  0.0000243904487962774090654 */
 #ifndef INLINE_KERNEL_COSDF
 extern
 #endif
-__inline float
+//__inline float
+float
 __kernel_cosdf(double x)
 {
 	double r, w, z;

+ 2 - 1
src/k_sinf.c

@@ -32,7 +32,8 @@ S4 =  0x16cd878c3b46a7.0p-71;	/*  0.0000027183114939898219064 */
 #ifndef INLINE_KERNEL_SINDF
 extern
 #endif
-__inline float
+//__inline float
+float 
 __kernel_sindf(double x)
 {
 	double r, s, w, z;

+ 2 - 1
src/k_tanf.c

@@ -35,7 +35,8 @@ T[] =  {
 #ifndef INLINE_KERNEL_TANDF
 extern
 #endif
-__inline float
+//__inline float
+float
 __kernel_tandf(double x, int iy)
 {
 	double z,r,w,s,t,u;

+ 2 - 2
src/s_cos.c

@@ -47,9 +47,9 @@
 #include <float.h>
 
 #include "openlibm.h"
-#define INLINE_REM_PIO2
+//#define INLINE_REM_PIO2
 #include "math_private.h"
-#include "e_rem_pio2.c"
+//#include "e_rem_pio2.c"
 
 double
 cos(double x)

+ 6 - 6
src/s_cosf.c

@@ -20,13 +20,13 @@
 #include <float.h>
 
 #include "openlibm.h"
-#define	INLINE_KERNEL_COSDF
-#define	INLINE_KERNEL_SINDF
-#define INLINE_REM_PIO2F
+//#define	INLINE_KERNEL_COSDF
+//#define	INLINE_KERNEL_SINDF
+//#define INLINE_REM_PIO2F
 #include "math_private.h"
-#include "e_rem_pio2f.c"
-#include "k_cosf.c"
-#include "k_sinf.c"
+//#include "e_rem_pio2f.c"
+//#include "k_cosf.c"
+//#include "k_sinf.c"
 
 /* Small multiples of pi/2 rounded to double precision. */
 static const double

+ 2 - 2
src/s_sin.c

@@ -47,9 +47,9 @@
 #include <float.h>
 
 #include "openlibm.h"
-#define INLINE_REM_PIO2
+//#define INLINE_REM_PIO2
 #include "math_private.h"
-#include "e_rem_pio2.c"
+//#include "e_rem_pio2.c"
 
 double
 sin(double x)

+ 6 - 6
src/s_sinf.c

@@ -20,13 +20,13 @@
 #include <float.h>
 
 #include "openlibm.h"
-#define	INLINE_KERNEL_COSDF
-#define	INLINE_KERNEL_SINDF
-#define INLINE_REM_PIO2F
+//#define	INLINE_KERNEL_COSDF
+//#define	INLINE_KERNEL_SINDF
+//#define INLINE_REM_PIO2F
 #include "math_private.h"
-#include "e_rem_pio2f.c"
-#include "k_cosf.c"
-#include "k_sinf.c"
+//#include "e_rem_pio2f.c"
+//#include "k_cosf.c"
+//#include "k_sinf.c"
 
 /* Small multiples of pi/2 rounded to double precision. */
 static const double

+ 2 - 2
src/s_tan.c

@@ -46,9 +46,9 @@
 #include <float.h>
 
 #include "openlibm.h"
-#define INLINE_REM_PIO2
+//#define INLINE_REM_PIO2
 #include "math_private.h"
-#include "e_rem_pio2.c"
+//#include "e_rem_pio2.c"
 
 double
 tan(double x)

+ 4 - 4
src/s_tanf.c

@@ -20,11 +20,11 @@
 #include <float.h>
 
 #include "openlibm.h"
-#define	INLINE_KERNEL_TANDF
-#define INLINE_REM_PIO2F
+//#define	INLINE_KERNEL_TANDF
+//#define INLINE_REM_PIO2F
 #include "math_private.h"
-#include "e_rem_pio2f.c"
-#include "k_tanf.c"
+//#include "e_rem_pio2f.c"
+//#include "k_tanf.c"
 
 /* Small multiples of pi/2 rounded to double precision. */
 static const double