aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/math')
-rw-r--r--src/math/__cos.c8
-rw-r--r--src/math/__cosdf.c8
-rw-r--r--src/math/__cosl.c8
-rw-r--r--src/math/__expo2.c8
-rw-r--r--src/math/__expo2f.c8
-rw-r--r--src/math/__fpclassify.c8
-rw-r--r--src/math/__fpclassifyf.c8
-rw-r--r--src/math/__fpclassifyl.c8
-rw-r--r--src/math/__math_divzero.c8
-rw-r--r--src/math/__math_divzerof.c8
-rw-r--r--src/math/__math_invalid.c8
-rw-r--r--src/math/__math_invalidf.c8
-rw-r--r--src/math/__math_invalidl.c8
-rw-r--r--src/math/__math_oflow.c8
-rw-r--r--src/math/__math_oflowf.c8
-rw-r--r--src/math/__math_uflow.c8
-rw-r--r--src/math/__math_uflowf.c8
-rw-r--r--src/math/__math_xflow.c8
-rw-r--r--src/math/__math_xflowf.c8
-rw-r--r--src/math/__polevll.c8
-rw-r--r--src/math/__rem_pio2.c8
-rw-r--r--src/math/__rem_pio2_large.c8
-rw-r--r--src/math/__rem_pio2f.c8
-rw-r--r--src/math/__rem_pio2l.c8
-rw-r--r--src/math/__signbit.c8
-rw-r--r--src/math/__signbitf.c8
-rw-r--r--src/math/__signbitl.c8
-rw-r--r--src/math/__sin.c8
-rw-r--r--src/math/__sindf.c8
-rw-r--r--src/math/__sinl.c8
-rw-r--r--src/math/__tan.c8
-rw-r--r--src/math/__tandf.c8
-rw-r--r--src/math/__tanl.c8
-rw-r--r--src/math/acos.c8
-rw-r--r--src/math/acosf.c8
-rw-r--r--src/math/acosh.c8
-rw-r--r--src/math/acoshf.c8
-rw-r--r--src/math/acoshl.c8
-rw-r--r--src/math/asin.c8
-rw-r--r--src/math/asinf.c8
-rw-r--r--src/math/asinh.c8
-rw-r--r--src/math/asinhf.c8
-rw-r--r--src/math/asinhl.c8
-rw-r--r--src/math/atan.c8
-rw-r--r--src/math/atan2.c8
-rw-r--r--src/math/atan2f.c8
-rw-r--r--src/math/atanf.c8
-rw-r--r--src/math/atanh.c8
-rw-r--r--src/math/atanhf.c8
-rw-r--r--src/math/atanhl.c8
-rw-r--r--src/math/cbrt.c8
-rw-r--r--src/math/cbrtf.c8
-rw-r--r--src/math/cbrtl.c8
-rw-r--r--src/math/ceil.c8
-rw-r--r--src/math/ceilf.c8
-rw-r--r--src/math/copysign.c8
-rw-r--r--src/math/copysignf.c8
-rw-r--r--src/math/copysignl.c8
-rw-r--r--src/math/cos.c8
-rw-r--r--src/math/cosf.c8
-rw-r--r--src/math/cosh.c8
-rw-r--r--src/math/coshf.c8
-rw-r--r--src/math/coshl.c8
-rw-r--r--src/math/cosl.c8
-rw-r--r--src/math/erf.c8
-rw-r--r--src/math/erff.c8
-rw-r--r--src/math/erfl.c8
-rw-r--r--src/math/exp.c8
-rw-r--r--src/math/exp10.c8
-rw-r--r--src/math/exp10f.c8
-rw-r--r--src/math/exp10l.c8
-rw-r--r--src/math/exp2.c8
-rw-r--r--src/math/exp2f.c8
-rw-r--r--src/math/exp2f_data.c8
-rw-r--r--src/math/exp_data.c8
-rw-r--r--src/math/expf.c8
-rw-r--r--src/math/expm1.c8
-rw-r--r--src/math/expm1f.c8
-rw-r--r--src/math/fdim.c8
-rw-r--r--src/math/fdimf.c8
-rw-r--r--src/math/fdiml.c8
-rw-r--r--src/math/finite.c8
-rw-r--r--src/math/finitef.c8
-rw-r--r--src/math/floor.c8
-rw-r--r--src/math/floorf.c8
-rw-r--r--src/math/fmal.c8
-rw-r--r--src/math/fmax.c8
-rw-r--r--src/math/fmaxf.c8
-rw-r--r--src/math/fmaxl.c8
-rw-r--r--src/math/fmin.c8
-rw-r--r--src/math/fminf.c8
-rw-r--r--src/math/fminl.c8
-rw-r--r--src/math/fmod.c8
-rw-r--r--src/math/fmodf.c8
-rw-r--r--src/math/frexp.c8
-rw-r--r--src/math/frexpf.c8
-rw-r--r--src/math/frexpl.c8
-rw-r--r--src/math/hypot.c8
-rw-r--r--src/math/hypotf.c8
-rw-r--r--src/math/hypotl.c8
-rw-r--r--src/math/ilogb.c8
-rw-r--r--src/math/ilogbf.c8
-rw-r--r--src/math/ilogbl.c8
-rw-r--r--src/math/j0.c8
-rw-r--r--src/math/j0f.c8
-rw-r--r--src/math/j1.c8
-rw-r--r--src/math/j1f.c8
-rw-r--r--src/math/jn.c8
-rw-r--r--src/math/jnf.c8
-rw-r--r--src/math/ldexp.c8
-rw-r--r--src/math/ldexpf.c8
-rw-r--r--src/math/ldexpl.c8
-rw-r--r--src/math/lgamma.c8
-rw-r--r--src/math/lgamma_r.c8
-rw-r--r--src/math/lgammaf.c8
-rw-r--r--src/math/lgammaf_r.c8
-rw-r--r--src/math/lgammal.c8
-rw-r--r--src/math/llround.c8
-rw-r--r--src/math/llroundf.c8
-rw-r--r--src/math/llroundl.c8
-rw-r--r--src/math/log.c8
-rw-r--r--src/math/log10.c8
-rw-r--r--src/math/log10f.c8
-rw-r--r--src/math/log1p.c8
-rw-r--r--src/math/log1pf.c8
-rw-r--r--src/math/log2.c8
-rw-r--r--src/math/log2_data.c8
-rw-r--r--src/math/log2f.c8
-rw-r--r--src/math/log2f_data.c8
-rw-r--r--src/math/log_data.c8
-rw-r--r--src/math/logb.c8
-rw-r--r--src/math/logbf.c8
-rw-r--r--src/math/logbl.c8
-rw-r--r--src/math/logf.c8
-rw-r--r--src/math/logf_data.c8
-rw-r--r--src/math/lround.c8
-rw-r--r--src/math/lroundf.c8
-rw-r--r--src/math/lroundl.c8
-rw-r--r--src/math/modf.c8
-rw-r--r--src/math/modff.c8
-rw-r--r--src/math/modfl.c8
-rw-r--r--src/math/nan.c8
-rw-r--r--src/math/nanf.c8
-rw-r--r--src/math/nanl.c8
-rw-r--r--src/math/nearbyint.c8
-rw-r--r--src/math/nearbyintf.c8
-rw-r--r--src/math/nearbyintl.c8
-rw-r--r--src/math/nextafter.c8
-rw-r--r--src/math/nextafterf.c8
-rw-r--r--src/math/nextafterl.c8
-rw-r--r--src/math/nexttoward.c8
-rw-r--r--src/math/nexttowardf.c8
-rw-r--r--src/math/nexttowardl.c8
-rw-r--r--src/math/pow.c8
-rw-r--r--src/math/pow_data.c8
-rw-r--r--src/math/powf.c8
-rw-r--r--src/math/powf_data.c8
-rw-r--r--src/math/powl.c8
-rw-r--r--src/math/remainder.c8
-rw-r--r--src/math/remainderf.c8
-rw-r--r--src/math/remquo.c8
-rw-r--r--src/math/remquof.c8
-rw-r--r--src/math/rint.c8
-rw-r--r--src/math/rintf.c8
-rw-r--r--src/math/round.c8
-rw-r--r--src/math/roundf.c8
-rw-r--r--src/math/roundl.c8
-rw-r--r--src/math/scalb.c8
-rw-r--r--src/math/scalbf.c8
-rw-r--r--src/math/scalbln.c8
-rw-r--r--src/math/scalblnf.c8
-rw-r--r--src/math/scalblnl.c8
-rw-r--r--src/math/scalbn.c8
-rw-r--r--src/math/scalbnf.c8
-rw-r--r--src/math/scalbnl.c8
-rw-r--r--src/math/signgam.c8
-rw-r--r--src/math/significand.c8
-rw-r--r--src/math/significandf.c8
-rw-r--r--src/math/sin.c8
-rw-r--r--src/math/sincos.c8
-rw-r--r--src/math/sincosf.c8
-rw-r--r--src/math/sincosl.c8
-rw-r--r--src/math/sinf.c8
-rw-r--r--src/math/sinh.c8
-rw-r--r--src/math/sinhf.c8
-rw-r--r--src/math/sinhl.c8
-rw-r--r--src/math/sinl.c8
-rw-r--r--src/math/sqrt_data.c8
-rw-r--r--src/math/tan.c8
-rw-r--r--src/math/tanf.c8
-rw-r--r--src/math/tanh.c8
-rw-r--r--src/math/tanhf.c8
-rw-r--r--src/math/tanhl.c8
-rw-r--r--src/math/tanl.c8
-rw-r--r--src/math/tgamma.c8
-rw-r--r--src/math/tgammaf.c8
-rw-r--r--src/math/tgammal.c8
-rw-r--r--src/math/trunc.c8
-rw-r--r--src/math/truncf.c8
-rw-r--r--src/math/x86_64/fabs.c8
-rw-r--r--src/math/x86_64/fabsf.c8
-rw-r--r--src/math/x86_64/fabsl.c8
-rw-r--r--src/math/x86_64/fma.c8
-rw-r--r--src/math/x86_64/fmaf.c8
-rw-r--r--src/math/x86_64/fmodl.c8
-rw-r--r--src/math/x86_64/llrint.c8
-rw-r--r--src/math/x86_64/llrintf.c8
-rw-r--r--src/math/x86_64/llrintl.c8
-rw-r--r--src/math/x86_64/lrint.c8
-rw-r--r--src/math/x86_64/lrintf.c8
-rw-r--r--src/math/x86_64/lrintl.c8
-rw-r--r--src/math/x86_64/remainderl.c8
-rw-r--r--src/math/x86_64/remquol.c8
-rw-r--r--src/math/x86_64/rintl.c8
-rw-r--r--src/math/x86_64/sqrt.c8
-rw-r--r--src/math/x86_64/sqrtf.c8
-rw-r--r--src/math/x86_64/sqrtl.c8
217 files changed, 1736 insertions, 0 deletions
diff --git a/src/math/__cos.c b/src/math/__cos.c
index 46cefb38..40038424 100644
--- a/src/math/__cos.c
+++ b/src/math/__cos.c
@@ -69,3 +69,11 @@ double __cos(double x, double y)
w = 1.0-hz;
return w + (((1.0-w)-hz) + (z*r-x*y));
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__cosdf.c b/src/math/__cosdf.c
index 2124989b..5acf4d41 100644
--- a/src/math/__cosdf.c
+++ b/src/math/__cosdf.c
@@ -33,3 +33,11 @@ float __cosdf(double x)
r = C2+z*C3;
return ((1.0+z*C0) + w*C1) + (w*z)*r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__cosl.c b/src/math/__cosl.c
index fa522ddd..ba2f5435 100644
--- a/src/math/__cosl.c
+++ b/src/math/__cosl.c
@@ -94,3 +94,11 @@ long double __cosl(long double x, long double y)
return w + (((1.0-w)-hz) + (z*r-x*y));
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__expo2.c b/src/math/__expo2.c
index 248f052b..3bcf3179 100644
--- a/src/math/__expo2.c
+++ b/src/math/__expo2.c
@@ -15,3 +15,11 @@ double __expo2(double x, double sign)
/* in directed rounding correct sign before rounding or overflow is important */
return exp(x - kln2) * (sign * scale) * scale;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__expo2f.c b/src/math/__expo2f.c
index 538eb09c..937ee404 100644
--- a/src/math/__expo2f.c
+++ b/src/math/__expo2f.c
@@ -15,3 +15,11 @@ float __expo2f(float x, float sign)
/* in directed rounding correct sign before rounding or overflow is important */
return expf(x - kln2) * (sign * scale) * scale;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__fpclassify.c b/src/math/__fpclassify.c
index f7c0e2df..68564fd8 100644
--- a/src/math/__fpclassify.c
+++ b/src/math/__fpclassify.c
@@ -9,3 +9,11 @@ int __fpclassify(double x)
if (e==0x7ff) return u.i<<12 ? FP_NAN : FP_INFINITE;
return FP_NORMAL;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__fpclassifyf.c b/src/math/__fpclassifyf.c
index fd00eb1b..99f22662 100644
--- a/src/math/__fpclassifyf.c
+++ b/src/math/__fpclassifyf.c
@@ -9,3 +9,11 @@ int __fpclassifyf(float x)
if (e==0xff) return u.i<<9 ? FP_NAN : FP_INFINITE;
return FP_NORMAL;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__fpclassifyl.c b/src/math/__fpclassifyl.c
index e41781b6..ac620f8b 100644
--- a/src/math/__fpclassifyl.c
+++ b/src/math/__fpclassifyl.c
@@ -40,3 +40,11 @@ int __fpclassifyl(long double x)
return FP_NORMAL;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_divzero.c b/src/math/__math_divzero.c
index 59d21350..efc85c14 100644
--- a/src/math/__math_divzero.c
+++ b/src/math/__math_divzero.c
@@ -4,3 +4,11 @@ double __math_divzero(uint32_t sign)
{
return fp_barrier(sign ? -1.0 : 1.0) / 0.0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_divzerof.c b/src/math/__math_divzerof.c
index ce046f3e..bd939b0f 100644
--- a/src/math/__math_divzerof.c
+++ b/src/math/__math_divzerof.c
@@ -4,3 +4,11 @@ float __math_divzerof(uint32_t sign)
{
return fp_barrierf(sign ? -1.0f : 1.0f) / 0.0f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_invalid.c b/src/math/__math_invalid.c
index 17740490..1c46c1b9 100644
--- a/src/math/__math_invalid.c
+++ b/src/math/__math_invalid.c
@@ -4,3 +4,11 @@ double __math_invalid(double x)
{
return (x - x) / (x - x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_invalidf.c b/src/math/__math_invalidf.c
index 357d4b12..77f69f66 100644
--- a/src/math/__math_invalidf.c
+++ b/src/math/__math_invalidf.c
@@ -4,3 +4,11 @@ float __math_invalidf(float x)
{
return (x - x) / (x - x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_invalidl.c b/src/math/__math_invalidl.c
index 1fca99de..92cd5c2f 100644
--- a/src/math/__math_invalidl.c
+++ b/src/math/__math_invalidl.c
@@ -7,3 +7,11 @@ long double __math_invalidl(long double x)
return (x - x) / (x - x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_oflow.c b/src/math/__math_oflow.c
index c85dbf98..07117f68 100644
--- a/src/math/__math_oflow.c
+++ b/src/math/__math_oflow.c
@@ -4,3 +4,11 @@ double __math_oflow(uint32_t sign)
{
return __math_xflow(sign, 0x1p769);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_oflowf.c b/src/math/__math_oflowf.c
index fa7d0620..294a4cb4 100644
--- a/src/math/__math_oflowf.c
+++ b/src/math/__math_oflowf.c
@@ -4,3 +4,11 @@ float __math_oflowf(uint32_t sign)
{
return __math_xflowf(sign, 0x1p97f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_uflow.c b/src/math/__math_uflow.c
index b90594ae..1a1ed53e 100644
--- a/src/math/__math_uflow.c
+++ b/src/math/__math_uflow.c
@@ -4,3 +4,11 @@ double __math_uflow(uint32_t sign)
{
return __math_xflow(sign, 0x1p-767);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_uflowf.c b/src/math/__math_uflowf.c
index 94d50f2b..3da4015d 100644
--- a/src/math/__math_uflowf.c
+++ b/src/math/__math_uflowf.c
@@ -4,3 +4,11 @@ float __math_uflowf(uint32_t sign)
{
return __math_xflowf(sign, 0x1p-95f);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_xflow.c b/src/math/__math_xflow.c
index 744203c4..7b79baa0 100644
--- a/src/math/__math_xflow.c
+++ b/src/math/__math_xflow.c
@@ -4,3 +4,11 @@ double __math_xflow(uint32_t sign, double y)
{
return eval_as_double(fp_barrier(sign ? -y : y) * y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__math_xflowf.c b/src/math/__math_xflowf.c
index f2c84784..359b4618 100644
--- a/src/math/__math_xflowf.c
+++ b/src/math/__math_xflowf.c
@@ -4,3 +4,11 @@ float __math_xflowf(uint32_t sign, float y)
{
return eval_as_float(fp_barrierf(sign ? -y : y) * y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__polevll.c b/src/math/__polevll.c
index ce1a8404..f7c7b684 100644
--- a/src/math/__polevll.c
+++ b/src/math/__polevll.c
@@ -91,3 +91,11 @@ long double __p1evll(long double x, const long double *P, int n)
return y;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__rem_pio2.c b/src/math/__rem_pio2.c
index dcf672fb..992fc1b8 100644
--- a/src/math/__rem_pio2.c
+++ b/src/math/__rem_pio2.c
@@ -188,3 +188,11 @@ medium:
y[1] = ty[1];
return n;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__rem_pio2_large.c b/src/math/__rem_pio2_large.c
index 958f28c2..0fa1d611 100644
--- a/src/math/__rem_pio2_large.c
+++ b/src/math/__rem_pio2_large.c
@@ -440,3 +440,11 @@ recompute:
}
return n&7;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__rem_pio2f.c b/src/math/__rem_pio2f.c
index e6765643..d89f5e62 100644
--- a/src/math/__rem_pio2f.c
+++ b/src/math/__rem_pio2f.c
@@ -84,3 +84,11 @@ int __rem_pio2f(float x, double *y)
*y = ty[0];
return n;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__rem_pio2l.c b/src/math/__rem_pio2l.c
index 236b2def..2799e6cd 100644
--- a/src/math/__rem_pio2l.c
+++ b/src/math/__rem_pio2l.c
@@ -153,3 +153,11 @@ int __rem_pio2l(long double x, long double *y)
return n;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__signbit.c b/src/math/__signbit.c
index e700b6b7..edfb7d38 100644
--- a/src/math/__signbit.c
+++ b/src/math/__signbit.c
@@ -11,3 +11,11 @@ int __signbit(double x)
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__signbitf.c b/src/math/__signbitf.c
index 40ad3cfd..3288f887 100644
--- a/src/math/__signbitf.c
+++ b/src/math/__signbitf.c
@@ -9,3 +9,11 @@ int __signbitf(float x)
} y = { x };
return y.i>>31;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__signbitl.c b/src/math/__signbitl.c
index 63b3dc5a..179fceeb 100644
--- a/src/math/__signbitl.c
+++ b/src/math/__signbitl.c
@@ -12,3 +12,11 @@ int __signbitl(long double x)
return __signbit(x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__sin.c b/src/math/__sin.c
index 40309496..3cb99c25 100644
--- a/src/math/__sin.c
+++ b/src/math/__sin.c
@@ -62,3 +62,11 @@ double __sin(double x, double y, int iy)
else
return x - ((z*(0.5*y - v*r) - y) - v*S1);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__sindf.c b/src/math/__sindf.c
index 8fec2a3f..1691d620 100644
--- a/src/math/__sindf.c
+++ b/src/math/__sindf.c
@@ -34,3 +34,11 @@ float __sindf(double x)
s = z*x;
return (x + s*(S1 + z*S2)) + s*w*r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__sinl.c b/src/math/__sinl.c
index 2525bbe8..6748969e 100644
--- a/src/math/__sinl.c
+++ b/src/math/__sinl.c
@@ -76,3 +76,11 @@ long double __sinl(long double x, long double y, int iy)
return x-((z*(0.5*y-v*r)-y)-v*S1);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__tan.c b/src/math/__tan.c
index 8019844d..2c67fd3b 100644
--- a/src/math/__tan.c
+++ b/src/math/__tan.c
@@ -108,3 +108,11 @@ double __tan(double x, double y, int odd)
SET_LOW_WORD(a0, 0);
return a0 + a*(1.0 + a0*w0 + a0*v);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__tandf.c b/src/math/__tandf.c
index 25047eee..897b0825 100644
--- a/src/math/__tandf.c
+++ b/src/math/__tandf.c
@@ -52,3 +52,11 @@ float __tandf(double x, int odd)
r = (x + s*u) + (s*w)*(t + w*r);
return odd ? -1.0/r : r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/__tanl.c b/src/math/__tanl.c
index 54abc3da..8f882d53 100644
--- a/src/math/__tanl.c
+++ b/src/math/__tanl.c
@@ -141,3 +141,11 @@ long double __tanl(long double x, long double y, int odd) {
return t + a * (s + t * v);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/acos.c b/src/math/acos.c
index ea9c87bf..e581e0dd 100644
--- a/src/math/acos.c
+++ b/src/math/acos.c
@@ -99,3 +99,11 @@ double acos(double x)
w = R(z)*s+c;
return 2*(df+w);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/acosf.c b/src/math/acosf.c
index 8ee1a71d..c38328f2 100644
--- a/src/math/acosf.c
+++ b/src/math/acosf.c
@@ -69,3 +69,11 @@ float acosf(float x)
w = R(z)*s+c;
return 2*(df+w);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/acosh.c b/src/math/acosh.c
index badbf908..ae8046bd 100644
--- a/src/math/acosh.c
+++ b/src/math/acosh.c
@@ -22,3 +22,11 @@ double acosh(double x)
/* |x| >= 0x1p26 or nan */
return log(x) + 0.693147180559945309417232121458176568;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/acoshf.c b/src/math/acoshf.c
index b773d48e..51f3ca26 100644
--- a/src/math/acoshf.c
+++ b/src/math/acoshf.c
@@ -24,3 +24,11 @@ float acoshf(float x)
/* x >= 0x1p12 or x <= -2 or nan */
return logf(x) + 0.693147180559945309417232121458176568f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/acoshl.c b/src/math/acoshl.c
index 943cec17..708fbffc 100644
--- a/src/math/acoshl.c
+++ b/src/math/acoshl.c
@@ -31,3 +31,11 @@ long double acoshl(long double x)
return acosh(x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/asin.c b/src/math/asin.c
index c926b188..dbd95382 100644
--- a/src/math/asin.c
+++ b/src/math/asin.c
@@ -105,3 +105,11 @@ double asin(double x)
return -x;
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/asinf.c b/src/math/asinf.c
index bcd304a3..43ea0a4c 100644
--- a/src/math/asinf.c
+++ b/src/math/asinf.c
@@ -59,3 +59,11 @@ float asinf(float x)
return -x;
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/asinh.c b/src/math/asinh.c
index 0829f228..a60e5409 100644
--- a/src/math/asinh.c
+++ b/src/math/asinh.c
@@ -26,3 +26,11 @@ double asinh(double x)
}
return s ? -x : x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/asinhf.c b/src/math/asinhf.c
index fc9f0911..e6f2396d 100644
--- a/src/math/asinhf.c
+++ b/src/math/asinhf.c
@@ -26,3 +26,11 @@ float asinhf(float x)
}
return s ? -x : x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/asinhl.c b/src/math/asinhl.c
index 8635f52e..5a333321 100644
--- a/src/math/asinhl.c
+++ b/src/math/asinhl.c
@@ -39,3 +39,11 @@ long double asinhl(long double x)
return asinh(x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/atan.c b/src/math/atan.c
index 63b0ab25..4ad4a83c 100644
--- a/src/math/atan.c
+++ b/src/math/atan.c
@@ -114,3 +114,11 @@ double atan(double x)
z = atanhi[id] - (x*(s1+s2) - atanlo[id] - x);
return sign ? -z : z;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/atan2.c b/src/math/atan2.c
index 5a1903c6..d60a431e 100644
--- a/src/math/atan2.c
+++ b/src/math/atan2.c
@@ -105,3 +105,11 @@ double atan2(double y, double x)
return (z-pi_lo) - pi; /* atan(-,-) */
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/atan2f.c b/src/math/atan2f.c
index c634d00f..7b9a1766 100644
--- a/src/math/atan2f.c
+++ b/src/math/atan2f.c
@@ -81,3 +81,11 @@ float atan2f(float y, float x)
return (z-pi_lo) - pi; /* atan(-,-) */
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/atanf.c b/src/math/atanf.c
index 178341b6..93dc7468 100644
--- a/src/math/atanf.c
+++ b/src/math/atanf.c
@@ -92,3 +92,11 @@ float atanf(float x)
z = atanhi[id] - ((x*(s1+s2) - atanlo[id]) - x);
return sign ? -z : z;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/atanh.c b/src/math/atanh.c
index 63a035d7..b0f489f3 100644
--- a/src/math/atanh.c
+++ b/src/math/atanh.c
@@ -27,3 +27,11 @@ double atanh(double x)
}
return s ? -y : y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/atanhf.c b/src/math/atanhf.c
index 65f07c0f..01d16dde 100644
--- a/src/math/atanhf.c
+++ b/src/math/atanhf.c
@@ -26,3 +26,11 @@ float atanhf(float x)
}
return s ? -y : y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/atanhl.c b/src/math/atanhl.c
index 87cd1cdb..e991ec65 100644
--- a/src/math/atanhl.c
+++ b/src/math/atanhl.c
@@ -33,3 +33,11 @@ long double atanhl(long double x)
return s ? -x : x;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/cbrt.c b/src/math/cbrt.c
index 7599d3e3..cc777359 100644
--- a/src/math/cbrt.c
+++ b/src/math/cbrt.c
@@ -101,3 +101,11 @@ double cbrt(double x)
t = t+t*r; /* error <= 0.5 + 0.5/3 + epsilon */
return t;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/cbrtf.c b/src/math/cbrtf.c
index 89c2c865..b0c35fff 100644
--- a/src/math/cbrtf.c
+++ b/src/math/cbrtf.c
@@ -64,3 +64,11 @@ float cbrtf(float x)
/* rounding to 24 bits is perfect in round-to-nearest mode */
return T;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/cbrtl.c b/src/math/cbrtl.c
index ceff9136..808f5b52 100644
--- a/src/math/cbrtl.c
+++ b/src/math/cbrtl.c
@@ -122,3 +122,11 @@ long double cbrtl(long double x)
return t;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/ceil.c b/src/math/ceil.c
index b13e6f2d..d7b57d63 100644
--- a/src/math/ceil.c
+++ b/src/math/ceil.c
@@ -29,3 +29,11 @@ double ceil(double x)
return x + y + 1;
return x + y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/ceilf.c b/src/math/ceilf.c
index 869835f3..40a49e9e 100644
--- a/src/math/ceilf.c
+++ b/src/math/ceilf.c
@@ -25,3 +25,11 @@ float ceilf(float x)
}
return u.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/copysign.c b/src/math/copysign.c
index b09331b6..129856f9 100644
--- a/src/math/copysign.c
+++ b/src/math/copysign.c
@@ -6,3 +6,11 @@ double copysign(double x, double y) {
ux.i |= uy.i & 1ULL<<63;
return ux.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/copysignf.c b/src/math/copysignf.c
index 0af6ae9b..c4122c8e 100644
--- a/src/math/copysignf.c
+++ b/src/math/copysignf.c
@@ -8,3 +8,11 @@ float copysignf(float x, float y)
ux.i |= uy.i & 0x80000000;
return ux.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/copysignl.c b/src/math/copysignl.c
index 9dd933cf..78eb9387 100644
--- a/src/math/copysignl.c
+++ b/src/math/copysignl.c
@@ -14,3 +14,11 @@ long double copysignl(long double x, long double y)
return ux.f;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/cos.c b/src/math/cos.c
index ee97f68b..b31f3fbb 100644
--- a/src/math/cos.c
+++ b/src/math/cos.c
@@ -75,3 +75,11 @@ double cos(double x)
return __sin(y[0], y[1], 1);
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/cosf.c b/src/math/cosf.c
index 23f3e5bf..8c4f67e5 100644
--- a/src/math/cosf.c
+++ b/src/math/cosf.c
@@ -76,3 +76,11 @@ float cosf(float x)
return __sindf(y);
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/cosh.c b/src/math/cosh.c
index 490c15fb..6e9f19f7 100644
--- a/src/math/cosh.c
+++ b/src/math/cosh.c
@@ -38,3 +38,11 @@ double cosh(double x)
t = __expo2(x, 1.0);
return t;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/coshf.c b/src/math/coshf.c
index e739cff9..9d039f27 100644
--- a/src/math/coshf.c
+++ b/src/math/coshf.c
@@ -31,3 +31,11 @@ float coshf(float x)
t = __expo2f(x, 1.0f);
return t;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/coshl.c b/src/math/coshl.c
index 06a56fe3..088ced58 100644
--- a/src/math/coshl.c
+++ b/src/math/coshl.c
@@ -45,3 +45,11 @@ long double coshl(long double x)
return cosh(x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/cosl.c b/src/math/cosl.c
index 79c41c77..aa90bd67 100644
--- a/src/math/cosl.c
+++ b/src/math/cosl.c
@@ -37,3 +37,11 @@ long double cosl(long double x)
}
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/erf.c b/src/math/erf.c
index 2f30a298..9b54221a 100644
--- a/src/math/erf.c
+++ b/src/math/erf.c
@@ -271,3 +271,11 @@ double erfc(double x)
}
return sign ? 2 - 0x1p-1022 : 0x1p-1022*0x1p-1022;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/erff.c b/src/math/erff.c
index ed5f3975..86fba5d5 100644
--- a/src/math/erff.c
+++ b/src/math/erff.c
@@ -181,3 +181,11 @@ float erfcf(float x)
}
return sign ? 2 - 0x1p-120f : 0x1p-120f*0x1p-120f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/erfl.c b/src/math/erfl.c
index e267c231..03093b0c 100644
--- a/src/math/erfl.c
+++ b/src/math/erfl.c
@@ -351,3 +351,11 @@ long double erfcl(long double x)
return erfc(x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/exp.c b/src/math/exp.c
index b764d73c..011ea65b 100644
--- a/src/math/exp.c
+++ b/src/math/exp.c
@@ -132,3 +132,11 @@ double exp(double x)
is no spurious underflow here even without fma. */
return eval_as_double(scale + scale * tmp);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/exp10.c b/src/math/exp10.c
index 26899eba..1ff4a713 100644
--- a/src/math/exp10.c
+++ b/src/math/exp10.c
@@ -22,3 +22,11 @@ double exp10(double x)
}
weak_alias(exp10, pow10);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/exp10f.c b/src/math/exp10f.c
index d009f0a8..86ca9210 100644
--- a/src/math/exp10f.c
+++ b/src/math/exp10f.c
@@ -20,3 +20,11 @@ float exp10f(float x)
}
weak_alias(exp10f, pow10f);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/exp10l.c b/src/math/exp10l.c
index f3da1a08..f408a0a3 100644
--- a/src/math/exp10l.c
+++ b/src/math/exp10l.c
@@ -30,3 +30,11 @@ long double exp10l(long double x)
#endif
weak_alias(exp10l, pow10l);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/exp2.c b/src/math/exp2.c
index e0ff54bd..053808e8 100644
--- a/src/math/exp2.c
+++ b/src/math/exp2.c
@@ -119,3 +119,11 @@ double exp2(double x)
is no spurious underflow here even without fma. */
return eval_as_double(scale + scale * tmp);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/exp2f.c b/src/math/exp2f.c
index 0360482c..85e99472 100644
--- a/src/math/exp2f.c
+++ b/src/math/exp2f.c
@@ -67,3 +67,11 @@ float exp2f(float x)
y = y * s;
return eval_as_float(y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/exp2f_data.c b/src/math/exp2f_data.c
index be324727..289c497f 100644
--- a/src/math/exp2f_data.c
+++ b/src/math/exp2f_data.c
@@ -33,3 +33,11 @@ const struct exp2f_data __exp2f_data = {
0x1.c6af84b912394p-5/N/N/N, 0x1.ebfce50fac4f3p-3/N/N, 0x1.62e42ff0c52d6p-1/N,
},
};
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/exp_data.c b/src/math/exp_data.c
index 21be0146..b5e45dbd 100644
--- a/src/math/exp_data.c
+++ b/src/math/exp_data.c
@@ -180,3 +180,11 @@ const struct exp_data __exp_data = {
0x3c5305c14160cc89, 0x3feff3c22b8f71f1,
},
};
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/expf.c b/src/math/expf.c
index f9fbf8e7..86161268 100644
--- a/src/math/expf.c
+++ b/src/math/expf.c
@@ -78,3 +78,11 @@ float expf(float x)
y = y * s;
return eval_as_float(y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/expm1.c b/src/math/expm1.c
index ac1e61e4..b005ad00 100644
--- a/src/math/expm1.c
+++ b/src/math/expm1.c
@@ -199,3 +199,11 @@ double expm1(double x)
y = (x-(e+u.f)+1)*twopk;
return y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/expm1f.c b/src/math/expm1f.c
index 09a41afe..dc2c599c 100644
--- a/src/math/expm1f.c
+++ b/src/math/expm1f.c
@@ -108,3 +108,11 @@ float expm1f(float x)
y = (x-(e+u.f)+1)*twopk;
return y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fdim.c b/src/math/fdim.c
index 95854606..97afec9c 100644
--- a/src/math/fdim.c
+++ b/src/math/fdim.c
@@ -8,3 +8,11 @@ double fdim(double x, double y)
return y;
return x > y ? x - y : 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fdimf.c b/src/math/fdimf.c
index 543c3648..73251cde 100644
--- a/src/math/fdimf.c
+++ b/src/math/fdimf.c
@@ -8,3 +8,11 @@ float fdimf(float x, float y)
return y;
return x > y ? x - y : 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fdiml.c b/src/math/fdiml.c
index 62e29b7d..d8a973fc 100644
--- a/src/math/fdiml.c
+++ b/src/math/fdiml.c
@@ -16,3 +16,11 @@ long double fdiml(long double x, long double y)
return x > y ? x - y : 0;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/finite.c b/src/math/finite.c
index 25a0575f..46776110 100644
--- a/src/math/finite.c
+++ b/src/math/finite.c
@@ -5,3 +5,11 @@ int finite(double x)
{
return isfinite(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/finitef.c b/src/math/finitef.c
index 2c4c7714..a7b78409 100644
--- a/src/math/finitef.c
+++ b/src/math/finitef.c
@@ -5,3 +5,11 @@ int finitef(float x)
{
return isfinite(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/floor.c b/src/math/floor.c
index 14a31cd8..14c1822f 100644
--- a/src/math/floor.c
+++ b/src/math/floor.c
@@ -29,3 +29,11 @@ double floor(double x)
return x + y - 1;
return x + y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/floorf.c b/src/math/floorf.c
index dceec739..d91524b7 100644
--- a/src/math/floorf.c
+++ b/src/math/floorf.c
@@ -25,3 +25,11 @@ float floorf(float x)
}
return u.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fmal.c b/src/math/fmal.c
index 4506aac6..375864c1 100644
--- a/src/math/fmal.c
+++ b/src/math/fmal.c
@@ -291,3 +291,11 @@ long double fmal(long double x, long double y, long double z)
return add_and_denormalize(r.hi, adj, spread);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fmax.c b/src/math/fmax.c
index 94f0caa1..ee52f3fc 100644
--- a/src/math/fmax.c
+++ b/src/math/fmax.c
@@ -11,3 +11,11 @@ double fmax(double x, double y)
return signbit(x) ? y : x;
return x < y ? y : x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fmaxf.c b/src/math/fmaxf.c
index 695d8179..3466618a 100644
--- a/src/math/fmaxf.c
+++ b/src/math/fmaxf.c
@@ -11,3 +11,11 @@ float fmaxf(float x, float y)
return signbit(x) ? y : x;
return x < y ? y : x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fmaxl.c b/src/math/fmaxl.c
index 4b03158e..224ece1e 100644
--- a/src/math/fmaxl.c
+++ b/src/math/fmaxl.c
@@ -19,3 +19,11 @@ long double fmaxl(long double x, long double y)
return x < y ? y : x;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fmin.c b/src/math/fmin.c
index 08a8fd17..bd9d7f77 100644
--- a/src/math/fmin.c
+++ b/src/math/fmin.c
@@ -11,3 +11,11 @@ double fmin(double x, double y)
return signbit(x) ? x : y;
return x < y ? x : y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fminf.c b/src/math/fminf.c
index 3573c7de..d43d6593 100644
--- a/src/math/fminf.c
+++ b/src/math/fminf.c
@@ -11,3 +11,11 @@ float fminf(float x, float y)
return signbit(x) ? x : y;
return x < y ? x : y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fminl.c b/src/math/fminl.c
index 69bc24a7..4a3ea061 100644
--- a/src/math/fminl.c
+++ b/src/math/fminl.c
@@ -19,3 +19,11 @@ long double fminl(long double x, long double y)
return x < y ? x : y;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fmod.c b/src/math/fmod.c
index 6849722b..ebd43412 100644
--- a/src/math/fmod.c
+++ b/src/math/fmod.c
@@ -66,3 +66,11 @@ double fmod(double x, double y)
ux.i = uxi;
return ux.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/fmodf.c b/src/math/fmodf.c
index ff58f933..fccd9f30 100644
--- a/src/math/fmodf.c
+++ b/src/math/fmodf.c
@@ -63,3 +63,11 @@ float fmodf(float x, float y)
ux.i = uxi;
return ux.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/frexp.c b/src/math/frexp.c
index 27b6266e..4ced6bd2 100644
--- a/src/math/frexp.c
+++ b/src/math/frexp.c
@@ -21,3 +21,11 @@ double frexp(double x, int *e)
y.i |= 0x3fe0000000000000ull;
return y.d;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/frexpf.c b/src/math/frexpf.c
index 07870975..c78af9f2 100644
--- a/src/math/frexpf.c
+++ b/src/math/frexpf.c
@@ -21,3 +21,11 @@ float frexpf(float x, int *e)
y.i |= 0x3f000000ul;
return y.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/frexpl.c b/src/math/frexpl.c
index 3c1b5537..51dd82e6 100644
--- a/src/math/frexpl.c
+++ b/src/math/frexpl.c
@@ -27,3 +27,11 @@ long double frexpl(long double x, int *e)
return u.f;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/hypot.c b/src/math/hypot.c
index 6071bf1e..413aca38 100644
--- a/src/math/hypot.c
+++ b/src/math/hypot.c
@@ -65,3 +65,11 @@ double hypot(double x, double y)
sq(&hy, &ly, y);
return z*sqrt(ly+lx+hy+hx);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/hypotf.c b/src/math/hypotf.c
index 2fc214b7..603648f5 100644
--- a/src/math/hypotf.c
+++ b/src/math/hypotf.c
@@ -33,3 +33,11 @@ float hypotf(float x, float y)
}
return z*sqrtf((double)x*x + (double)y*y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/hypotl.c b/src/math/hypotl.c
index 479aa92c..6ee016ec 100644
--- a/src/math/hypotl.c
+++ b/src/math/hypotl.c
@@ -64,3 +64,11 @@ long double hypotl(long double x, long double y)
return z*sqrtl(ly+lx+hy+hx);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/ilogb.c b/src/math/ilogb.c
index 64d40154..a12a1b2e 100644
--- a/src/math/ilogb.c
+++ b/src/math/ilogb.c
@@ -24,3 +24,11 @@ int ilogb(double x)
}
return e - 0x3ff;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/ilogbf.c b/src/math/ilogbf.c
index e23ba209..a83f1b95 100644
--- a/src/math/ilogbf.c
+++ b/src/math/ilogbf.c
@@ -24,3 +24,11 @@ int ilogbf(float x)
}
return e - 0x7f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/ilogbl.c b/src/math/ilogbl.c
index 7b1a9cf8..a77c9816 100644
--- a/src/math/ilogbl.c
+++ b/src/math/ilogbl.c
@@ -53,3 +53,11 @@ int ilogbl(long double x)
return e - 0x3fff;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/j0.c b/src/math/j0.c
index d722d942..256bae35 100644
--- a/src/math/j0.c
+++ b/src/math/j0.c
@@ -373,3 +373,11 @@ static double qzero(double x)
s = 1.0+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*(q[4]+z*q[5])))));
return (-.125 + r/s)/x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/j0f.c b/src/math/j0f.c
index fab554a3..5e94af0c 100644
--- a/src/math/j0f.c
+++ b/src/math/j0f.c
@@ -312,3 +312,11 @@ static float qzerof(float x)
s = 1.0f+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*(q[4]+z*q[5])))));
return (-.125f + r/s)/x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/j1.c b/src/math/j1.c
index df724d17..efaf07d2 100644
--- a/src/math/j1.c
+++ b/src/math/j1.c
@@ -360,3 +360,11 @@ static double qone(double x)
s = 1.0+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*(q[4]+z*q[5])))));
return (.375 + r/s)/x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/j1f.c b/src/math/j1f.c
index 3434c53d..c01b008e 100644
--- a/src/math/j1f.c
+++ b/src/math/j1f.c
@@ -308,3 +308,11 @@ static float qonef(float x)
s = 1.0f+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*(q[4]+z*q[5])))));
return (.375f + r/s)/x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/jn.c b/src/math/jn.c
index 4878a54f..21ca5625 100644
--- a/src/math/jn.c
+++ b/src/math/jn.c
@@ -278,3 +278,11 @@ double yn(int n, double x)
}
return sign ? -b : b;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/jnf.c b/src/math/jnf.c
index f63c062f..12bf66dd 100644
--- a/src/math/jnf.c
+++ b/src/math/jnf.c
@@ -200,3 +200,11 @@ float ynf(int n, float x)
}
return sign ? -b : b;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/ldexp.c b/src/math/ldexp.c
index f4d1cd6a..79c486b0 100644
--- a/src/math/ldexp.c
+++ b/src/math/ldexp.c
@@ -4,3 +4,11 @@ double ldexp(double x, int n)
{
return scalbn(x, n);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/ldexpf.c b/src/math/ldexpf.c
index 3bad5f39..10f5138b 100644
--- a/src/math/ldexpf.c
+++ b/src/math/ldexpf.c
@@ -4,3 +4,11 @@ float ldexpf(float x, int n)
{
return scalbnf(x, n);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/ldexpl.c b/src/math/ldexpl.c
index fd145ccc..79187b26 100644
--- a/src/math/ldexpl.c
+++ b/src/math/ldexpl.c
@@ -4,3 +4,11 @@ long double ldexpl(long double x, int n)
{
return scalbnl(x, n);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/lgamma.c b/src/math/lgamma.c
index 2fc9b478..d0011988 100644
--- a/src/math/lgamma.c
+++ b/src/math/lgamma.c
@@ -5,3 +5,11 @@ double lgamma(double x)
{
return __lgamma_r(x, &__signgam);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/lgamma_r.c b/src/math/lgamma_r.c
index f9984cd0..dcf070d3 100644
--- a/src/math/lgamma_r.c
+++ b/src/math/lgamma_r.c
@@ -281,3 +281,11 @@ double __lgamma_r(double x, int *signgamp)
}
weak_alias(__lgamma_r, lgamma_r);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/lgammaf.c b/src/math/lgammaf.c
index 2ae051d0..5ef0a905 100644
--- a/src/math/lgammaf.c
+++ b/src/math/lgammaf.c
@@ -5,3 +5,11 @@ float lgammaf(float x)
{
return __lgammaf_r(x, &__signgam);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/lgammaf_r.c b/src/math/lgammaf_r.c
index 3f353f19..7605ad15 100644
--- a/src/math/lgammaf_r.c
+++ b/src/math/lgammaf_r.c
@@ -216,3 +216,11 @@ float __lgammaf_r(float x, int *signgamp)
}
weak_alias(__lgammaf_r, lgammaf_r);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/lgammal.c b/src/math/lgammal.c
index abbd4fc6..f64f6d84 100644
--- a/src/math/lgammal.c
+++ b/src/math/lgammal.c
@@ -351,3 +351,11 @@ long double lgammal(long double x)
}
weak_alias(__lgammal_r, lgammal_r);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/llround.c b/src/math/llround.c
index 4d94787d..4bb2d6df 100644
--- a/src/math/llround.c
+++ b/src/math/llround.c
@@ -4,3 +4,11 @@ long long llround(double x)
{
return round(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/llroundf.c b/src/math/llroundf.c
index 19eb77ee..2fbd9607 100644
--- a/src/math/llroundf.c
+++ b/src/math/llroundf.c
@@ -4,3 +4,11 @@ long long llroundf(float x)
{
return roundf(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/llroundl.c b/src/math/llroundl.c
index 2c2ee5ec..ae54e1b2 100644
--- a/src/math/llroundl.c
+++ b/src/math/llroundl.c
@@ -4,3 +4,11 @@ long long llroundl(long double x)
{
return roundl(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log.c b/src/math/log.c
index cc52585a..e369f2ae 100644
--- a/src/math/log.c
+++ b/src/math/log.c
@@ -110,3 +110,11 @@ double log(double x)
r * r2 * (A[1] + r * A[2] + r2 * (A[3] + r * A[4])) + hi;
return eval_as_double(y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log10.c b/src/math/log10.c
index 81026876..d5e7bf71 100644
--- a/src/math/log10.c
+++ b/src/math/log10.c
@@ -99,3 +99,11 @@ double log10(double x)
return val_lo + val_hi;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log10f.c b/src/math/log10f.c
index 9ca2f017..9fdde7d1 100644
--- a/src/math/log10f.c
+++ b/src/math/log10f.c
@@ -75,3 +75,11 @@ float log10f(float x)
dk = k;
return dk*log10_2lo + (lo+hi)*ivln10lo + lo*ivln10hi + hi*ivln10hi + dk*log10_2hi;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log1p.c b/src/math/log1p.c
index 00971349..67e7e403 100644
--- a/src/math/log1p.c
+++ b/src/math/log1p.c
@@ -120,3 +120,11 @@ double log1p(double x)
dk = k;
return s*(hfsq+R) + (dk*ln2_lo+c) - hfsq + f + dk*ln2_hi;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log1pf.c b/src/math/log1pf.c
index 23985c35..1ba9d200 100644
--- a/src/math/log1pf.c
+++ b/src/math/log1pf.c
@@ -75,3 +75,11 @@ float log1pf(float x)
dk = k;
return s*(hfsq+R) + (dk*ln2_lo+c) - hfsq + f + dk*ln2_hi;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log2.c b/src/math/log2.c
index 1276ed4e..f665362d 100644
--- a/src/math/log2.c
+++ b/src/math/log2.c
@@ -120,3 +120,11 @@ double log2(double x)
y = lo + r2 * p + hi;
return eval_as_double(y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log2_data.c b/src/math/log2_data.c
index 3dd1ca51..572a4292 100644
--- a/src/math/log2_data.c
+++ b/src/math/log2_data.c
@@ -199,3 +199,11 @@ that logc + poly(z/c - 1) has small error, however near x == 1 when
},
#endif
};
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log2f.c b/src/math/log2f.c
index c368f88f..a536e4bc 100644
--- a/src/math/log2f.c
+++ b/src/math/log2f.c
@@ -70,3 +70,11 @@ float log2f(float x)
y = y * r2 + p;
return eval_as_float(y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log2f_data.c b/src/math/log2f_data.c
index 24e450f1..3b3795fc 100644
--- a/src/math/log2f_data.c
+++ b/src/math/log2f_data.c
@@ -31,3 +31,11 @@ const struct log2f_data __log2f_data = {
0x1.715475f35c8b8p0,
}
};
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/log_data.c b/src/math/log_data.c
index 1a6ec712..62c37cc0 100644
--- a/src/math/log_data.c
+++ b/src/math/log_data.c
@@ -326,3 +326,11 @@ that logc + poly(z/c - 1) has small error, however near x == 1 when
},
#endif
};
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/logb.c b/src/math/logb.c
index 7f8bdfae..be796dbf 100644
--- a/src/math/logb.c
+++ b/src/math/logb.c
@@ -15,3 +15,11 @@ double logb(double x)
return -1/(x*x);
return ilogb(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/logbf.c b/src/math/logbf.c
index a0a0b5ed..4633a503 100644
--- a/src/math/logbf.c
+++ b/src/math/logbf.c
@@ -8,3 +8,11 @@ float logbf(float x)
return -1/(x*x);
return ilogbf(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/logbl.c b/src/math/logbl.c
index 962973a7..b5b7c392 100644
--- a/src/math/logbl.c
+++ b/src/math/logbl.c
@@ -14,3 +14,11 @@ long double logbl(long double x)
return ilogbl(x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/logf.c b/src/math/logf.c
index e4c2237c..7e901158 100644
--- a/src/math/logf.c
+++ b/src/math/logf.c
@@ -69,3 +69,11 @@ float logf(float x)
y = y * r2 + (y0 + r);
return eval_as_float(y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/logf_data.c b/src/math/logf_data.c
index 857221f7..8d0d1b45 100644
--- a/src/math/logf_data.c
+++ b/src/math/logf_data.c
@@ -31,3 +31,11 @@ const struct logf_data __logf_data = {
-0x1.00ea348b88334p-2, 0x1.5575b0be00b6ap-2, -0x1.ffffef20a4123p-2,
}
};
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/lround.c b/src/math/lround.c
index b8b79547..a8528334 100644
--- a/src/math/lround.c
+++ b/src/math/lround.c
@@ -4,3 +4,11 @@ long lround(double x)
{
return round(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/lroundf.c b/src/math/lroundf.c
index c4707e7d..c7d56174 100644
--- a/src/math/lroundf.c
+++ b/src/math/lroundf.c
@@ -4,3 +4,11 @@ long lroundf(float x)
{
return roundf(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/lroundl.c b/src/math/lroundl.c
index 094fdf64..eab6b216 100644
--- a/src/math/lroundl.c
+++ b/src/math/lroundl.c
@@ -4,3 +4,11 @@ long lroundl(long double x)
{
return roundl(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/modf.c b/src/math/modf.c
index 1c8a1db9..6cb8185a 100644
--- a/src/math/modf.c
+++ b/src/math/modf.c
@@ -32,3 +32,11 @@ double modf(double x, double *iptr)
*iptr = u.f;
return x - u.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/modff.c b/src/math/modff.c
index 639514ef..322d078e 100644
--- a/src/math/modff.c
+++ b/src/math/modff.c
@@ -32,3 +32,11 @@ float modff(float x, float *iptr)
*iptr = u.f;
return x - u.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/modfl.c b/src/math/modfl.c
index a47b1924..3343b798 100644
--- a/src/math/modfl.c
+++ b/src/math/modfl.c
@@ -51,3 +51,11 @@ long double modfl(long double x, long double *iptr)
return -y;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nan.c b/src/math/nan.c
index 9e0826c7..29856062 100644
--- a/src/math/nan.c
+++ b/src/math/nan.c
@@ -4,3 +4,11 @@ double nan(const char *s)
{
return NAN;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nanf.c b/src/math/nanf.c
index 752ce546..36daf41d 100644
--- a/src/math/nanf.c
+++ b/src/math/nanf.c
@@ -4,3 +4,11 @@ float nanf(const char *s)
{
return NAN;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nanl.c b/src/math/nanl.c
index 969af564..4f02078d 100644
--- a/src/math/nanl.c
+++ b/src/math/nanl.c
@@ -4,3 +4,11 @@ long double nanl(const char *s)
{
return NAN;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nearbyint.c b/src/math/nearbyint.c
index f4e8aac4..2711c223 100644
--- a/src/math/nearbyint.c
+++ b/src/math/nearbyint.c
@@ -18,3 +18,11 @@ double nearbyint(double x)
#endif
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nearbyintf.c b/src/math/nearbyintf.c
index 092e9ffa..534a2716 100644
--- a/src/math/nearbyintf.c
+++ b/src/math/nearbyintf.c
@@ -16,3 +16,11 @@ float nearbyintf(float x)
#endif
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nearbyintl.c b/src/math/nearbyintl.c
index 82852492..ec3440b5 100644
--- a/src/math/nearbyintl.c
+++ b/src/math/nearbyintl.c
@@ -24,3 +24,11 @@ long double nearbyintl(long double x)
return x;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nextafter.c b/src/math/nextafter.c
index ab5795a4..ab5389fc 100644
--- a/src/math/nextafter.c
+++ b/src/math/nextafter.c
@@ -29,3 +29,11 @@ double nextafter(double x, double y)
FORCE_EVAL(x*x + ux.f*ux.f);
return ux.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nextafterf.c b/src/math/nextafterf.c
index 75a09f7d..a5ff8a27 100644
--- a/src/math/nextafterf.c
+++ b/src/math/nextafterf.c
@@ -28,3 +28,11 @@ float nextafterf(float x, float y)
FORCE_EVAL(x*x + ux.f*ux.f);
return ux.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nextafterl.c b/src/math/nextafterl.c
index 37e858fb..6879a17e 100644
--- a/src/math/nextafterl.c
+++ b/src/math/nextafterl.c
@@ -73,3 +73,11 @@ long double nextafterl(long double x, long double y)
return ux.f;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nexttoward.c b/src/math/nexttoward.c
index 827ee5c3..78763c1d 100644
--- a/src/math/nexttoward.c
+++ b/src/math/nexttoward.c
@@ -40,3 +40,11 @@ double nexttoward(double x, long double y)
return ux.f;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nexttowardf.c b/src/math/nexttowardf.c
index bbf172f9..6e968e9c 100644
--- a/src/math/nexttowardf.c
+++ b/src/math/nexttowardf.c
@@ -33,3 +33,11 @@ float nexttowardf(float x, long double y)
FORCE_EVAL(x*x + ux.f*ux.f);
return ux.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/nexttowardl.c b/src/math/nexttowardl.c
index 67a63403..3ad7f8a4 100644
--- a/src/math/nexttowardl.c
+++ b/src/math/nexttowardl.c
@@ -4,3 +4,11 @@ long double nexttowardl(long double x, long double y)
{
return nextafterl(x, y);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/pow.c b/src/math/pow.c
index 694c2ef6..8d888670 100644
--- a/src/math/pow.c
+++ b/src/math/pow.c
@@ -341,3 +341,11 @@ double pow(double x, double y)
#endif
return exp_inline(ehi, elo, sign_bias);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/pow_data.c b/src/math/pow_data.c
index 81e760de..4e60d06f 100644
--- a/src/math/pow_data.c
+++ b/src/math/pow_data.c
@@ -178,3 +178,11 @@ A(0x1.6e00000000000p-1, 0x1.57bf753c8d000p-2, 0x1.fadedee5d40efp-46)
A(0x1.6c00000000000p-1, 0x1.5d5bddf596000p-2, -0x1.a0b2a08a465dcp-47)
},
};
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/powf.c b/src/math/powf.c
index de8fab54..253cac4d 100644
--- a/src/math/powf.c
+++ b/src/math/powf.c
@@ -183,3 +183,11 @@ float powf(float x, float y)
}
return exp2_inline(ylogx, sign_bias);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/powf_data.c b/src/math/powf_data.c
index 13e1d9a0..66fe1a20 100644
--- a/src/math/powf_data.c
+++ b/src/math/powf_data.c
@@ -32,3 +32,11 @@ const struct powf_log2_data __powf_log2_data = {
0x1.71547652ab82bp0 * POWF_SCALE,
}
};
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/powl.c b/src/math/powl.c
index 6f64ea71..bffd2435 100644
--- a/src/math/powl.c
+++ b/src/math/powl.c
@@ -528,3 +528,11 @@ long double powl(long double x, long double y)
return pow(x, y);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/remainder.c b/src/math/remainder.c
index 612155fe..25334a43 100644
--- a/src/math/remainder.c
+++ b/src/math/remainder.c
@@ -7,3 +7,11 @@ double remainder(double x, double y)
}
weak_alias(remainder, drem);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/remainderf.c b/src/math/remainderf.c
index bf1d7b28..43966c30 100644
--- a/src/math/remainderf.c
+++ b/src/math/remainderf.c
@@ -7,3 +7,11 @@ float remainderf(float x, float y)
}
weak_alias(remainderf, dremf);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/remquo.c b/src/math/remquo.c
index 59d5ad57..f5fb97fc 100644
--- a/src/math/remquo.c
+++ b/src/math/remquo.c
@@ -80,3 +80,11 @@ end:
*quo = sx^sy ? -(int)q : (int)q;
return sx ? -x : x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/remquof.c b/src/math/remquof.c
index 2f41ff70..fd22a8f5 100644
--- a/src/math/remquof.c
+++ b/src/math/remquof.c
@@ -80,3 +80,11 @@ end:
*quo = sx^sy ? -(int)q : (int)q;
return sx ? -x : x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/rint.c b/src/math/rint.c
index fbba390e..7758ad67 100644
--- a/src/math/rint.c
+++ b/src/math/rint.c
@@ -26,3 +26,11 @@ double rint(double x)
return s ? -0.0 : 0;
return y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/rintf.c b/src/math/rintf.c
index 9047688d..9b3c1366 100644
--- a/src/math/rintf.c
+++ b/src/math/rintf.c
@@ -28,3 +28,11 @@ float rintf(float x)
return s ? -0.0f : 0.0f;
return y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/round.c b/src/math/round.c
index 130d58d2..f7287ff2 100644
--- a/src/math/round.c
+++ b/src/math/round.c
@@ -33,3 +33,11 @@ double round(double x)
y = -y;
return y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/roundf.c b/src/math/roundf.c
index e8210af5..bbe4566c 100644
--- a/src/math/roundf.c
+++ b/src/math/roundf.c
@@ -34,3 +34,11 @@ float roundf(float x)
y = -y;
return y;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/roundl.c b/src/math/roundl.c
index f4ff6820..90e13175 100644
--- a/src/math/roundl.c
+++ b/src/math/roundl.c
@@ -35,3 +35,11 @@ long double roundl(long double x)
return y;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/scalb.c b/src/math/scalb.c
index efe69e60..c4ec0273 100644
--- a/src/math/scalb.c
+++ b/src/math/scalb.c
@@ -33,3 +33,11 @@ double scalb(double x, double fn)
if (-fn > 65000.0) return scalbn(x,-65000);
return scalbn(x,(int)fn);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/scalbf.c b/src/math/scalbf.c
index f44ed5b6..519c92c8 100644
--- a/src/math/scalbf.c
+++ b/src/math/scalbf.c
@@ -30,3 +30,11 @@ float scalbf(float x, float fn)
if (-fn > 65000.0f) return scalbnf(x,-65000);
return scalbnf(x,(int)fn);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/scalbln.c b/src/math/scalbln.c
index e6f3f195..f7b8408e 100644
--- a/src/math/scalbln.c
+++ b/src/math/scalbln.c
@@ -9,3 +9,11 @@ double scalbln(double x, long n)
n = INT_MIN;
return scalbn(x, n);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/scalblnf.c b/src/math/scalblnf.c
index d8e8166b..2b68f7c4 100644
--- a/src/math/scalblnf.c
+++ b/src/math/scalblnf.c
@@ -9,3 +9,11 @@ float scalblnf(float x, long n)
n = INT_MIN;
return scalbnf(x, n);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/scalblnl.c b/src/math/scalblnl.c
index 854c51c4..d95f5a75 100644
--- a/src/math/scalblnl.c
+++ b/src/math/scalblnl.c
@@ -17,3 +17,11 @@ long double scalblnl(long double x, long n)
return scalbnl(x, n);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/scalbn.c b/src/math/scalbn.c
index 182f5610..cedb6aff 100644
--- a/src/math/scalbn.c
+++ b/src/math/scalbn.c
@@ -31,3 +31,11 @@ double scalbn(double x, int n)
x = y * u.f;
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/scalbnf.c b/src/math/scalbnf.c
index a5ad208b..85ca147f 100644
--- a/src/math/scalbnf.c
+++ b/src/math/scalbnf.c
@@ -29,3 +29,11 @@ float scalbnf(float x, int n)
x = y * u.f;
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/scalbnl.c b/src/math/scalbnl.c
index db44dab0..6f3aa55b 100644
--- a/src/math/scalbnl.c
+++ b/src/math/scalbnl.c
@@ -34,3 +34,11 @@ long double scalbnl(long double x, int n)
return x * u.f;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/signgam.c b/src/math/signgam.c
index ee331b27..c55b0a0b 100644
--- a/src/math/signgam.c
+++ b/src/math/signgam.c
@@ -4,3 +4,11 @@
int __signgam = 0;
weak_alias(__signgam, signgam);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/significand.c b/src/math/significand.c
index 40d9aa9f..5d632852 100644
--- a/src/math/significand.c
+++ b/src/math/significand.c
@@ -5,3 +5,11 @@ double significand(double x)
{
return scalbn(x, -ilogb(x));
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/significandf.c b/src/math/significandf.c
index 8a697e1a..623919a4 100644
--- a/src/math/significandf.c
+++ b/src/math/significandf.c
@@ -5,3 +5,11 @@ float significandf(float x)
{
return scalbnf(x, -ilogbf(x));
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sin.c b/src/math/sin.c
index 055e215b..e15af0bb 100644
--- a/src/math/sin.c
+++ b/src/math/sin.c
@@ -76,3 +76,11 @@ double sin(double x)
return -__cos(y[0], y[1]);
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sincos.c b/src/math/sincos.c
index 35b2d923..e16c9513 100644
--- a/src/math/sincos.c
+++ b/src/math/sincos.c
@@ -67,3 +67,11 @@ void sincos(double x, double *sin, double *cos)
break;
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sincosf.c b/src/math/sincosf.c
index f8ca7232..75b5e7cd 100644
--- a/src/math/sincosf.c
+++ b/src/math/sincosf.c
@@ -115,3 +115,11 @@ void sincosf(float x, float *sin, float *cos)
break;
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sincosl.c b/src/math/sincosl.c
index d3ac1c4c..bd20706d 100644
--- a/src/math/sincosl.c
+++ b/src/math/sincosl.c
@@ -58,3 +58,11 @@ void sincosl(long double x, long double *sin, long double *cos)
}
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sinf.c b/src/math/sinf.c
index 64e39f50..fa24b669 100644
--- a/src/math/sinf.c
+++ b/src/math/sinf.c
@@ -74,3 +74,11 @@ float sinf(float x)
return -__cosdf(y);
}
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sinh.c b/src/math/sinh.c
index a01951ae..30aa8f32 100644
--- a/src/math/sinh.c
+++ b/src/math/sinh.c
@@ -37,3 +37,11 @@ double sinh(double x)
t = __expo2(absx, 2*h);
return t;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sinhf.c b/src/math/sinhf.c
index b9caa793..4f66924a 100644
--- a/src/math/sinhf.c
+++ b/src/math/sinhf.c
@@ -29,3 +29,11 @@ float sinhf(float x)
t = __expo2f(absx, 2*h);
return t;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sinhl.c b/src/math/sinhl.c
index b305d4d2..8b607cd7 100644
--- a/src/math/sinhl.c
+++ b/src/math/sinhl.c
@@ -41,3 +41,11 @@ long double sinhl(long double x)
return sinh(x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sinl.c b/src/math/sinl.c
index 9c0b16ee..d9bd1753 100644
--- a/src/math/sinl.c
+++ b/src/math/sinl.c
@@ -39,3 +39,11 @@ long double sinl(long double x)
}
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/sqrt_data.c b/src/math/sqrt_data.c
index 61bc22f4..91fba233 100644
--- a/src/math/sqrt_data.c
+++ b/src/math/sqrt_data.c
@@ -17,3 +17,11 @@ const uint16_t __rsqrt_tab[128] = {
0xc116,0xc03c,0xbf65,0xbe90,0xbdbe,0xbcef,0xbc23,0xbb59,
0xba91,0xb9cc,0xb90a,0xb84a,0xb78c,0xb6d0,0xb617,0xb560,
};
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/tan.c b/src/math/tan.c
index 9c724a45..dc35c001 100644
--- a/src/math/tan.c
+++ b/src/math/tan.c
@@ -68,3 +68,11 @@ double tan(double x)
n = __rem_pio2(x, y);
return __tan(y[0], y[1], n&1);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/tanf.c b/src/math/tanf.c
index aba19777..718da313 100644
--- a/src/math/tanf.c
+++ b/src/math/tanf.c
@@ -62,3 +62,11 @@ float tanf(float x)
n = __rem_pio2f(x, &y);
return __tandf(y, n&1);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/tanh.c b/src/math/tanh.c
index 20d6dbcf..2318ecd4 100644
--- a/src/math/tanh.c
+++ b/src/math/tanh.c
@@ -43,3 +43,11 @@ double tanh(double x)
}
return sign ? -t : t;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/tanhf.c b/src/math/tanhf.c
index 10636fbd..9af8f11d 100644
--- a/src/math/tanhf.c
+++ b/src/math/tanhf.c
@@ -37,3 +37,11 @@ float tanhf(float x)
}
return sign ? -t : t;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/tanhl.c b/src/math/tanhl.c
index 4e1aa9f8..b3a55e28 100644
--- a/src/math/tanhl.c
+++ b/src/math/tanhl.c
@@ -46,3 +46,11 @@ long double tanhl(long double x)
return tanh(x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/tanl.c b/src/math/tanl.c
index 6af06712..8ad31af3 100644
--- a/src/math/tanl.c
+++ b/src/math/tanl.c
@@ -27,3 +27,11 @@ long double tanl(long double x)
return __tanl(y[0], y[1], n&1);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/tgamma.c b/src/math/tgamma.c
index 28f6e0f8..1ff72f1c 100644
--- a/src/math/tgamma.c
+++ b/src/math/tgamma.c
@@ -220,3 +220,11 @@ double __lgamma_r(double x, int *sign)
weak_alias(__lgamma_r, lgamma_r);
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/tgammaf.c b/src/math/tgammaf.c
index b4ca51c9..4d201e48 100644
--- a/src/math/tgammaf.c
+++ b/src/math/tgammaf.c
@@ -4,3 +4,11 @@ float tgammaf(float x)
{
return tgamma(x);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/tgammal.c b/src/math/tgammal.c
index 5336c5b1..540e33e1 100644
--- a/src/math/tgammal.c
+++ b/src/math/tgammal.c
@@ -279,3 +279,11 @@ long double tgammal(long double x)
return tgamma(x);
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/trunc.c b/src/math/trunc.c
index d13711b5..03731387 100644
--- a/src/math/trunc.c
+++ b/src/math/trunc.c
@@ -17,3 +17,11 @@ double trunc(double x)
u.i &= ~m;
return u.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/truncf.c b/src/math/truncf.c
index 1a7d03c3..e0fb7b97 100644
--- a/src/math/truncf.c
+++ b/src/math/truncf.c
@@ -17,3 +17,11 @@ float truncf(float x)
u.i &= ~m;
return u.f;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/fabs.c b/src/math/x86_64/fabs.c
index 16562477..aca2f361 100644
--- a/src/math/x86_64/fabs.c
+++ b/src/math/x86_64/fabs.c
@@ -8,3 +8,11 @@ double fabs(double x)
__asm__ ("andps %1, %0" : "+x"(x) : "x"(t)); // x &= t
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/fabsf.c b/src/math/x86_64/fabsf.c
index 36ea7481..4b84c6e5 100644
--- a/src/math/x86_64/fabsf.c
+++ b/src/math/x86_64/fabsf.c
@@ -8,3 +8,11 @@ float fabsf(float x)
__asm__ ("andps %1, %0" : "+x"(x) : "x"(t)); // x &= t
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/fabsl.c b/src/math/x86_64/fabsl.c
index cc1c9ed9..95e58e87 100644
--- a/src/math/x86_64/fabsl.c
+++ b/src/math/x86_64/fabsl.c
@@ -5,3 +5,11 @@ long double fabsl(long double x)
__asm__ ("fabs" : "+t"(x));
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/fma.c b/src/math/x86_64/fma.c
index 4dd53f2a..6e7fd138 100644
--- a/src/math/x86_64/fma.c
+++ b/src/math/x86_64/fma.c
@@ -21,3 +21,11 @@ double fma(double x, double y, double z)
#include "../fma.c"
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/fmaf.c b/src/math/x86_64/fmaf.c
index 30b971ff..dadc0821 100644
--- a/src/math/x86_64/fmaf.c
+++ b/src/math/x86_64/fmaf.c
@@ -21,3 +21,11 @@ float fmaf(float x, float y, float z)
#include "../fmaf.c"
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/fmodl.c b/src/math/x86_64/fmodl.c
index 3daeab06..f0127707 100644
--- a/src/math/x86_64/fmodl.c
+++ b/src/math/x86_64/fmodl.c
@@ -7,3 +7,11 @@ long double fmodl(long double x, long double y)
while (fpsr & 0x400);
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/llrint.c b/src/math/x86_64/llrint.c
index dd38a722..7ec6383e 100644
--- a/src/math/x86_64/llrint.c
+++ b/src/math/x86_64/llrint.c
@@ -6,3 +6,11 @@ long long llrint(double x)
__asm__ ("cvtsd2si %1, %0" : "=r"(r) : "x"(x));
return r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/llrintf.c b/src/math/x86_64/llrintf.c
index fc8625e8..3883feaa 100644
--- a/src/math/x86_64/llrintf.c
+++ b/src/math/x86_64/llrintf.c
@@ -6,3 +6,11 @@ long long llrintf(float x)
__asm__ ("cvtss2si %1, %0" : "=r"(r) : "x"(x));
return r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/llrintl.c b/src/math/x86_64/llrintl.c
index c439ef28..d74d9e19 100644
--- a/src/math/x86_64/llrintl.c
+++ b/src/math/x86_64/llrintl.c
@@ -6,3 +6,11 @@ long long llrintl(long double x)
__asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
return r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/lrint.c b/src/math/x86_64/lrint.c
index a742fec6..c51ededc 100644
--- a/src/math/x86_64/lrint.c
+++ b/src/math/x86_64/lrint.c
@@ -6,3 +6,11 @@ long lrint(double x)
__asm__ ("cvtsd2si %1, %0" : "=r"(r) : "x"(x));
return r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/lrintf.c b/src/math/x86_64/lrintf.c
index 2ba5639d..78f8fdf2 100644
--- a/src/math/x86_64/lrintf.c
+++ b/src/math/x86_64/lrintf.c
@@ -6,3 +6,11 @@ long lrintf(float x)
__asm__ ("cvtss2si %1, %0" : "=r"(r) : "x"(x));
return r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/lrintl.c b/src/math/x86_64/lrintl.c
index 068e2e4d..8a535734 100644
--- a/src/math/x86_64/lrintl.c
+++ b/src/math/x86_64/lrintl.c
@@ -6,3 +6,11 @@ long lrintl(long double x)
__asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
return r;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/remainderl.c b/src/math/x86_64/remainderl.c
index 8cf75071..0747a6af 100644
--- a/src/math/x86_64/remainderl.c
+++ b/src/math/x86_64/remainderl.c
@@ -7,3 +7,11 @@ long double remainderl(long double x, long double y)
while (fpsr & 0x400);
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/remquol.c b/src/math/x86_64/remquol.c
index 60eef089..d1c69002 100644
--- a/src/math/x86_64/remquol.c
+++ b/src/math/x86_64/remquol.c
@@ -30,3 +30,11 @@ long double remquol(long double x, long double y, int *quo)
*quo = (cx[9]^cy[9]) < 0 ? -qbits : qbits;
return t;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/rintl.c b/src/math/x86_64/rintl.c
index e1a92077..2ce23fa3 100644
--- a/src/math/x86_64/rintl.c
+++ b/src/math/x86_64/rintl.c
@@ -5,3 +5,11 @@ long double rintl(long double x)
__asm__ ("frndint" : "+t"(x));
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/sqrt.c b/src/math/x86_64/sqrt.c
index 657e09e3..03f313d6 100644
--- a/src/math/x86_64/sqrt.c
+++ b/src/math/x86_64/sqrt.c
@@ -5,3 +5,11 @@ double sqrt(double x)
__asm__ ("sqrtsd %1, %0" : "=x"(x) : "x"(x));
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/sqrtf.c b/src/math/x86_64/sqrtf.c
index 720baec6..65c3997b 100644
--- a/src/math/x86_64/sqrtf.c
+++ b/src/math/x86_64/sqrtf.c
@@ -5,3 +5,11 @@ float sqrtf(float x)
__asm__ ("sqrtss %1, %0" : "=x"(x) : "x"(x));
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/math/x86_64/sqrtl.c b/src/math/x86_64/sqrtl.c
index 864cfcc4..81edf51d 100644
--- a/src/math/x86_64/sqrtl.c
+++ b/src/math/x86_64/sqrtl.c
@@ -5,3 +5,11 @@ long double sqrtl(long double x)
__asm__ ("fsqrt" : "+t"(x));
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif