From 661f59838235815b5073a0ef95f410003639519e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 16 Aug 2020 16:14:04 -0400 Subject: rename non-compiled files to *.h --- src/math/FP_FAST_FMA.c | 12 ------------ src/math/FP_FAST_FMA.h | 12 ++++++++++++ src/math/FP_FAST_FMAF.c | 12 ------------ src/math/FP_FAST_FMAF.h | 12 ++++++++++++ src/math/FP_FAST_FMAL.c | 12 ------------ src/math/FP_FAST_FMAL.h | 12 ++++++++++++ src/math/FP_ILOGB0.c | 7 ------- src/math/FP_ILOGB0.h | 7 +++++++ src/math/FP_ILOGBNAN.c | 7 ------- src/math/FP_ILOGBNAN.h | 7 +++++++ src/math/FP_INFINITE.c | 7 ------- src/math/FP_INFINITE.h | 7 +++++++ src/math/FP_NAN.c | 7 ------- src/math/FP_NAN.h | 7 +++++++ src/math/FP_NORMAL.c | 7 ------- src/math/FP_NORMAL.h | 7 +++++++ src/math/FP_SUBNORMAL.c | 7 ------- src/math/FP_SUBNORMAL.h | 7 +++++++ src/math/FP_ZERO.c | 7 ------- src/math/FP_ZERO.h | 7 +++++++ src/math/HUGE_VALF.c | 7 ------- src/math/HUGE_VALF.h | 7 +++++++ src/math/HUGE_VALL.c | 7 ------- src/math/HUGE_VALL.h | 7 +++++++ src/math/INFINITY.c | 7 ------- src/math/INFINITY.h | 7 +++++++ src/math/MATH_ERREXCEPT.c | 7 ------- src/math/MATH_ERREXCEPT.h | 7 +++++++ src/math/MATH_ERRNO.c | 7 ------- src/math/MATH_ERRNO.h | 7 +++++++ src/math/MAXFLOAT.c | 6 ------ src/math/MAXFLOAT.h | 6 ++++++ src/math/M_1_PI.c | 5 ----- src/math/M_1_PI.h | 5 +++++ src/math/M_2_PI.c | 5 ----- src/math/M_2_PI.h | 5 +++++ src/math/M_2_SQRTPI.c | 5 ----- src/math/M_2_SQRTPI.h | 5 +++++ src/math/M_E.c | 5 ----- src/math/M_E.h | 5 +++++ src/math/M_LN10.c | 5 ----- src/math/M_LN10.h | 5 +++++ src/math/M_LN2.c | 5 ----- src/math/M_LN2.h | 5 +++++ src/math/M_LOG10E.c | 5 ----- src/math/M_LOG10E.h | 5 +++++ src/math/M_LOG2E.c | 5 ----- src/math/M_LOG2E.h | 5 +++++ src/math/M_PI.c | 5 ----- src/math/M_PI.h | 5 +++++ src/math/M_PI_2.c | 5 ----- src/math/M_PI_2.h | 5 +++++ src/math/M_PI_4.c | 5 ----- src/math/M_PI_4.h | 5 +++++ src/math/M_SQRT1_2.c | 5 ----- src/math/M_SQRT1_2.h | 5 +++++ src/math/M_SQRT2.c | 5 ----- src/math/M_SQRT2.h | 5 +++++ src/math/NAN.c | 7 ------- src/math/NAN.h | 7 +++++++ src/math/double_t.c | 16 ---------------- src/math/double_t.h | 16 ++++++++++++++++ src/math/float_t.c | 16 ---------------- src/math/float_t.h | 16 ++++++++++++++++ src/math/fpclassify.c | 11 ----------- src/math/fpclassify.h | 11 +++++++++++ src/math/isfinite.c | 8 -------- src/math/isfinite.h | 8 ++++++++ src/math/isinf.c | 8 -------- src/math/isinf.h | 8 ++++++++ src/math/isnan.c | 9 --------- src/math/isnan.h | 9 +++++++++ src/math/isnormal.c | 8 -------- src/math/isnormal.h | 8 ++++++++ src/math/math_errhandling.c | 7 ------- src/math/math_errhandling.h | 7 +++++++ src/math/signbit.c | 23 ----------------------- src/math/signbit.h | 23 +++++++++++++++++++++++ 78 files changed, 304 insertions(+), 304 deletions(-) delete mode 100644 src/math/FP_FAST_FMA.c create mode 100644 src/math/FP_FAST_FMA.h delete mode 100644 src/math/FP_FAST_FMAF.c create mode 100644 src/math/FP_FAST_FMAF.h delete mode 100644 src/math/FP_FAST_FMAL.c create mode 100644 src/math/FP_FAST_FMAL.h delete mode 100644 src/math/FP_ILOGB0.c create mode 100644 src/math/FP_ILOGB0.h delete mode 100644 src/math/FP_ILOGBNAN.c create mode 100644 src/math/FP_ILOGBNAN.h delete mode 100644 src/math/FP_INFINITE.c create mode 100644 src/math/FP_INFINITE.h delete mode 100644 src/math/FP_NAN.c create mode 100644 src/math/FP_NAN.h delete mode 100644 src/math/FP_NORMAL.c create mode 100644 src/math/FP_NORMAL.h delete mode 100644 src/math/FP_SUBNORMAL.c create mode 100644 src/math/FP_SUBNORMAL.h delete mode 100644 src/math/FP_ZERO.c create mode 100644 src/math/FP_ZERO.h delete mode 100644 src/math/HUGE_VALF.c create mode 100644 src/math/HUGE_VALF.h delete mode 100644 src/math/HUGE_VALL.c create mode 100644 src/math/HUGE_VALL.h delete mode 100644 src/math/INFINITY.c create mode 100644 src/math/INFINITY.h delete mode 100644 src/math/MATH_ERREXCEPT.c create mode 100644 src/math/MATH_ERREXCEPT.h delete mode 100644 src/math/MATH_ERRNO.c create mode 100644 src/math/MATH_ERRNO.h delete mode 100644 src/math/MAXFLOAT.c create mode 100644 src/math/MAXFLOAT.h delete mode 100644 src/math/M_1_PI.c create mode 100644 src/math/M_1_PI.h delete mode 100644 src/math/M_2_PI.c create mode 100644 src/math/M_2_PI.h delete mode 100644 src/math/M_2_SQRTPI.c create mode 100644 src/math/M_2_SQRTPI.h delete mode 100644 src/math/M_E.c create mode 100644 src/math/M_E.h delete mode 100644 src/math/M_LN10.c create mode 100644 src/math/M_LN10.h delete mode 100644 src/math/M_LN2.c create mode 100644 src/math/M_LN2.h delete mode 100644 src/math/M_LOG10E.c create mode 100644 src/math/M_LOG10E.h delete mode 100644 src/math/M_LOG2E.c create mode 100644 src/math/M_LOG2E.h delete mode 100644 src/math/M_PI.c create mode 100644 src/math/M_PI.h delete mode 100644 src/math/M_PI_2.c create mode 100644 src/math/M_PI_2.h delete mode 100644 src/math/M_PI_4.c create mode 100644 src/math/M_PI_4.h delete mode 100644 src/math/M_SQRT1_2.c create mode 100644 src/math/M_SQRT1_2.h delete mode 100644 src/math/M_SQRT2.c create mode 100644 src/math/M_SQRT2.h delete mode 100644 src/math/NAN.c create mode 100644 src/math/NAN.h delete mode 100644 src/math/double_t.c create mode 100644 src/math/double_t.h delete mode 100644 src/math/float_t.c create mode 100644 src/math/float_t.h delete mode 100644 src/math/fpclassify.c create mode 100644 src/math/fpclassify.h delete mode 100644 src/math/isfinite.c create mode 100644 src/math/isfinite.h delete mode 100644 src/math/isinf.c create mode 100644 src/math/isinf.h delete mode 100644 src/math/isnan.c create mode 100644 src/math/isnan.h delete mode 100644 src/math/isnormal.c create mode 100644 src/math/isnormal.h delete mode 100644 src/math/math_errhandling.c create mode 100644 src/math/math_errhandling.h delete mode 100644 src/math/signbit.c create mode 100644 src/math/signbit.h (limited to 'src/math') diff --git a/src/math/FP_FAST_FMA.c b/src/math/FP_FAST_FMA.c deleted file mode 100644 index 868c9455..00000000 --- a/src/math/FP_FAST_FMA.c +++ /dev/null @@ -1,12 +0,0 @@ -#include - -#if 0 /* if fma is generally as fast or faster than multiply and add */ -#define FP_FAST_FMA -#else -#undef FP_FAST_FMA -#endif - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_FAST_FMA.h b/src/math/FP_FAST_FMA.h new file mode 100644 index 00000000..868c9455 --- /dev/null +++ b/src/math/FP_FAST_FMA.h @@ -0,0 +1,12 @@ +#include + +#if 0 /* if fma is generally as fast or faster than multiply and add */ +#define FP_FAST_FMA +#else +#undef FP_FAST_FMA +#endif + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/FP_FAST_FMAF.c b/src/math/FP_FAST_FMAF.c deleted file mode 100644 index 7b7b88a4..00000000 --- a/src/math/FP_FAST_FMAF.c +++ /dev/null @@ -1,12 +0,0 @@ -#include - -#if 0 /* if fmaf is generally as fast or faster than multiply and add */ -#define FP_FAST_FMAF -#else -#undef FP_FAST_FMAF -#endif - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_FAST_FMAF.h b/src/math/FP_FAST_FMAF.h new file mode 100644 index 00000000..7b7b88a4 --- /dev/null +++ b/src/math/FP_FAST_FMAF.h @@ -0,0 +1,12 @@ +#include + +#if 0 /* if fmaf is generally as fast or faster than multiply and add */ +#define FP_FAST_FMAF +#else +#undef FP_FAST_FMAF +#endif + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/FP_FAST_FMAL.c b/src/math/FP_FAST_FMAL.c deleted file mode 100644 index 1437ad56..00000000 --- a/src/math/FP_FAST_FMAL.c +++ /dev/null @@ -1,12 +0,0 @@ -#include - -#if 0 /* if fmal is generally as fast or faster than multiply and add */ -#define FP_FAST_FMAL -#else -#undef FP_FAST_FMAL -#endif - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_FAST_FMAL.h b/src/math/FP_FAST_FMAL.h new file mode 100644 index 00000000..1437ad56 --- /dev/null +++ b/src/math/FP_FAST_FMAL.h @@ -0,0 +1,12 @@ +#include + +#if 0 /* if fmal is generally as fast or faster than multiply and add */ +#define FP_FAST_FMAL +#else +#undef FP_FAST_FMAL +#endif + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/FP_ILOGB0.c b/src/math/FP_ILOGB0.c deleted file mode 100644 index 1c3f0e28..00000000 --- a/src/math/FP_ILOGB0.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define FP_ILOGB0 INT_MIN - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_ILOGB0.h b/src/math/FP_ILOGB0.h new file mode 100644 index 00000000..1c3f0e28 --- /dev/null +++ b/src/math/FP_ILOGB0.h @@ -0,0 +1,7 @@ +#include +#define FP_ILOGB0 INT_MIN + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/FP_ILOGBNAN.c b/src/math/FP_ILOGBNAN.c deleted file mode 100644 index 65aa04f1..00000000 --- a/src/math/FP_ILOGBNAN.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define FP_ILOGBNAN INT_MAX - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_ILOGBNAN.h b/src/math/FP_ILOGBNAN.h new file mode 100644 index 00000000..65aa04f1 --- /dev/null +++ b/src/math/FP_ILOGBNAN.h @@ -0,0 +1,7 @@ +#include +#define FP_ILOGBNAN INT_MAX + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/FP_INFINITE.c b/src/math/FP_INFINITE.c deleted file mode 100644 index e5aadaf8..00000000 --- a/src/math/FP_INFINITE.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define FP_INFINITE 0 - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_INFINITE.h b/src/math/FP_INFINITE.h new file mode 100644 index 00000000..e5aadaf8 --- /dev/null +++ b/src/math/FP_INFINITE.h @@ -0,0 +1,7 @@ +#include +#define FP_INFINITE 0 + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/FP_NAN.c b/src/math/FP_NAN.c deleted file mode 100644 index 804765cd..00000000 --- a/src/math/FP_NAN.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define FP_NAN 1 - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_NAN.h b/src/math/FP_NAN.h new file mode 100644 index 00000000..804765cd --- /dev/null +++ b/src/math/FP_NAN.h @@ -0,0 +1,7 @@ +#include +#define FP_NAN 1 + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/FP_NORMAL.c b/src/math/FP_NORMAL.c deleted file mode 100644 index 171ca6bf..00000000 --- a/src/math/FP_NORMAL.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define FP_NORMAL 2 - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_NORMAL.h b/src/math/FP_NORMAL.h new file mode 100644 index 00000000..171ca6bf --- /dev/null +++ b/src/math/FP_NORMAL.h @@ -0,0 +1,7 @@ +#include +#define FP_NORMAL 2 + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/FP_SUBNORMAL.c b/src/math/FP_SUBNORMAL.c deleted file mode 100644 index 500ecd14..00000000 --- a/src/math/FP_SUBNORMAL.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define FP_SUBNORMAL 3 - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_SUBNORMAL.h b/src/math/FP_SUBNORMAL.h new file mode 100644 index 00000000..500ecd14 --- /dev/null +++ b/src/math/FP_SUBNORMAL.h @@ -0,0 +1,7 @@ +#include +#define FP_SUBNORMAL 3 + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/FP_ZERO.c b/src/math/FP_ZERO.c deleted file mode 100644 index 54e5d323..00000000 --- a/src/math/FP_ZERO.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define FP_ZERO 4 - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/FP_ZERO.h b/src/math/FP_ZERO.h new file mode 100644 index 00000000..54e5d323 --- /dev/null +++ b/src/math/FP_ZERO.h @@ -0,0 +1,7 @@ +#include +#define FP_ZERO 4 + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/HUGE_VALF.c b/src/math/HUGE_VALF.c deleted file mode 100644 index 78b612cd..00000000 --- a/src/math/HUGE_VALF.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define HUGE_VALF 0.0 /* TODO: massive positive float */ - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/HUGE_VALF.h b/src/math/HUGE_VALF.h new file mode 100644 index 00000000..78b612cd --- /dev/null +++ b/src/math/HUGE_VALF.h @@ -0,0 +1,7 @@ +#include +#define HUGE_VALF 0.0 /* TODO: massive positive float */ + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/HUGE_VALL.c b/src/math/HUGE_VALL.c deleted file mode 100644 index f82c9b5a..00000000 --- a/src/math/HUGE_VALL.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define HUGE_VALL 0.0 /* TODO: massive positive long double */ - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/HUGE_VALL.h b/src/math/HUGE_VALL.h new file mode 100644 index 00000000..f82c9b5a --- /dev/null +++ b/src/math/HUGE_VALL.h @@ -0,0 +1,7 @@ +#include +#define HUGE_VALL 0.0 /* TODO: massive positive long double */ + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/INFINITY.c b/src/math/INFINITY.c deleted file mode 100644 index e1576810..00000000 --- a/src/math/INFINITY.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define INFINITY 9e300 /* TODO: proper value */ - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/INFINITY.h b/src/math/INFINITY.h new file mode 100644 index 00000000..e1576810 --- /dev/null +++ b/src/math/INFINITY.h @@ -0,0 +1,7 @@ +#include +#define INFINITY 9e300 /* TODO: proper value */ + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/MATH_ERREXCEPT.c b/src/math/MATH_ERREXCEPT.c deleted file mode 100644 index 1ad3a6d6..00000000 --- a/src/math/MATH_ERREXCEPT.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define MATH_ERREXCEPT 2 - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/MATH_ERREXCEPT.h b/src/math/MATH_ERREXCEPT.h new file mode 100644 index 00000000..1ad3a6d6 --- /dev/null +++ b/src/math/MATH_ERREXCEPT.h @@ -0,0 +1,7 @@ +#include +#define MATH_ERREXCEPT 2 + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/MATH_ERRNO.c b/src/math/MATH_ERRNO.c deleted file mode 100644 index 07cb5815..00000000 --- a/src/math/MATH_ERRNO.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define MATH_ERRNO 1 - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/MATH_ERRNO.h b/src/math/MATH_ERRNO.h new file mode 100644 index 00000000..07cb5815 --- /dev/null +++ b/src/math/MATH_ERRNO.h @@ -0,0 +1,7 @@ +#include +#define MATH_ERRNO 1 + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/MAXFLOAT.c b/src/math/MAXFLOAT.c deleted file mode 100644 index a9ebd202..00000000 --- a/src/math/MAXFLOAT.c +++ /dev/null @@ -1,6 +0,0 @@ -#include -#define MAXFLOAT 1E+37 -/* Must be the same as FLT_MAX in */ -/* -XOPEN(4) -*/ diff --git a/src/math/MAXFLOAT.h b/src/math/MAXFLOAT.h new file mode 100644 index 00000000..a9ebd202 --- /dev/null +++ b/src/math/MAXFLOAT.h @@ -0,0 +1,6 @@ +#include +#define MAXFLOAT 1E+37 +/* Must be the same as FLT_MAX in */ +/* +XOPEN(4) +*/ diff --git a/src/math/M_1_PI.c b/src/math/M_1_PI.c deleted file mode 100644 index b448e4be..00000000 --- a/src/math/M_1_PI.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_1_PI 1.0/3.14159 -/* -XOPEN(4) -*/ diff --git a/src/math/M_1_PI.h b/src/math/M_1_PI.h new file mode 100644 index 00000000..b448e4be --- /dev/null +++ b/src/math/M_1_PI.h @@ -0,0 +1,5 @@ +#include +#define M_1_PI 1.0/3.14159 +/* +XOPEN(4) +*/ diff --git a/src/math/M_2_PI.c b/src/math/M_2_PI.c deleted file mode 100644 index d807fce7..00000000 --- a/src/math/M_2_PI.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_2_PI 2.0/3.14159 -/* -XOPEN(4) -*/ diff --git a/src/math/M_2_PI.h b/src/math/M_2_PI.h new file mode 100644 index 00000000..d807fce7 --- /dev/null +++ b/src/math/M_2_PI.h @@ -0,0 +1,5 @@ +#include +#define M_2_PI 2.0/3.14159 +/* +XOPEN(4) +*/ diff --git a/src/math/M_2_SQRTPI.c b/src/math/M_2_SQRTPI.c deleted file mode 100644 index f8d102b5..00000000 --- a/src/math/M_2_SQRTPI.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_2_SQRTPI 2.0/sqrt(3.14159) -/* -XOPEN(4) -*/ diff --git a/src/math/M_2_SQRTPI.h b/src/math/M_2_SQRTPI.h new file mode 100644 index 00000000..f8d102b5 --- /dev/null +++ b/src/math/M_2_SQRTPI.h @@ -0,0 +1,5 @@ +#include +#define M_2_SQRTPI 2.0/sqrt(3.14159) +/* +XOPEN(4) +*/ diff --git a/src/math/M_E.c b/src/math/M_E.c deleted file mode 100644 index 844dec02..00000000 --- a/src/math/M_E.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_E value of e -/* -XOPEN(4) -*/ diff --git a/src/math/M_E.h b/src/math/M_E.h new file mode 100644 index 00000000..844dec02 --- /dev/null +++ b/src/math/M_E.h @@ -0,0 +1,5 @@ +#include +#define M_E value of e +/* +XOPEN(4) +*/ diff --git a/src/math/M_LN10.c b/src/math/M_LN10.c deleted file mode 100644 index 89fc2d9b..00000000 --- a/src/math/M_LN10.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_LN10 // log_e 10 -/* -XOPEN(4) -*/ diff --git a/src/math/M_LN10.h b/src/math/M_LN10.h new file mode 100644 index 00000000..89fc2d9b --- /dev/null +++ b/src/math/M_LN10.h @@ -0,0 +1,5 @@ +#include +#define M_LN10 // log_e 10 +/* +XOPEN(4) +*/ diff --git a/src/math/M_LN2.c b/src/math/M_LN2.c deleted file mode 100644 index 84a110f3..00000000 --- a/src/math/M_LN2.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_LN2 // log_e 2 -/* -XOPEN(4) -*/ diff --git a/src/math/M_LN2.h b/src/math/M_LN2.h new file mode 100644 index 00000000..84a110f3 --- /dev/null +++ b/src/math/M_LN2.h @@ -0,0 +1,5 @@ +#include +#define M_LN2 // log_e 2 +/* +XOPEN(4) +*/ diff --git a/src/math/M_LOG10E.c b/src/math/M_LOG10E.c deleted file mode 100644 index f6c7e2e0..00000000 --- a/src/math/M_LOG10E.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_LOG10E // log_10 e -/* -XOPEN(4) -*/ diff --git a/src/math/M_LOG10E.h b/src/math/M_LOG10E.h new file mode 100644 index 00000000..f6c7e2e0 --- /dev/null +++ b/src/math/M_LOG10E.h @@ -0,0 +1,5 @@ +#include +#define M_LOG10E // log_10 e +/* +XOPEN(4) +*/ diff --git a/src/math/M_LOG2E.c b/src/math/M_LOG2E.c deleted file mode 100644 index 827658e9..00000000 --- a/src/math/M_LOG2E.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_LOG2E // log_2 e -/* -XOPEN(4) -*/ diff --git a/src/math/M_LOG2E.h b/src/math/M_LOG2E.h new file mode 100644 index 00000000..827658e9 --- /dev/null +++ b/src/math/M_LOG2E.h @@ -0,0 +1,5 @@ +#include +#define M_LOG2E // log_2 e +/* +XOPEN(4) +*/ diff --git a/src/math/M_PI.c b/src/math/M_PI.c deleted file mode 100644 index e917cf1a..00000000 --- a/src/math/M_PI.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_PI 3.14159 -/* -XOPEN(4) -*/ diff --git a/src/math/M_PI.h b/src/math/M_PI.h new file mode 100644 index 00000000..e917cf1a --- /dev/null +++ b/src/math/M_PI.h @@ -0,0 +1,5 @@ +#include +#define M_PI 3.14159 +/* +XOPEN(4) +*/ diff --git a/src/math/M_PI_2.c b/src/math/M_PI_2.c deleted file mode 100644 index dad5f0b4..00000000 --- a/src/math/M_PI_2.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_PI_2 3.14159/2.0 -/* -XOPEN(4) -*/ diff --git a/src/math/M_PI_2.h b/src/math/M_PI_2.h new file mode 100644 index 00000000..dad5f0b4 --- /dev/null +++ b/src/math/M_PI_2.h @@ -0,0 +1,5 @@ +#include +#define M_PI_2 3.14159/2.0 +/* +XOPEN(4) +*/ diff --git a/src/math/M_PI_4.c b/src/math/M_PI_4.c deleted file mode 100644 index a20d16f1..00000000 --- a/src/math/M_PI_4.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_PI_4 3.14159/4.0 -/* -XOPEN(4) -*/ diff --git a/src/math/M_PI_4.h b/src/math/M_PI_4.h new file mode 100644 index 00000000..a20d16f1 --- /dev/null +++ b/src/math/M_PI_4.h @@ -0,0 +1,5 @@ +#include +#define M_PI_4 3.14159/4.0 +/* +XOPEN(4) +*/ diff --git a/src/math/M_SQRT1_2.c b/src/math/M_SQRT1_2.c deleted file mode 100644 index 6f4b61e3..00000000 --- a/src/math/M_SQRT1_2.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_SQRT1_2 1.0/sqrt(2.0) -/* -XOPEN(4) -*/ diff --git a/src/math/M_SQRT1_2.h b/src/math/M_SQRT1_2.h new file mode 100644 index 00000000..6f4b61e3 --- /dev/null +++ b/src/math/M_SQRT1_2.h @@ -0,0 +1,5 @@ +#include +#define M_SQRT1_2 1.0/sqrt(2.0) +/* +XOPEN(4) +*/ diff --git a/src/math/M_SQRT2.c b/src/math/M_SQRT2.c deleted file mode 100644 index 96f3f19a..00000000 --- a/src/math/M_SQRT2.c +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define M_SQRT2 sqrt(2.0) -/* -XOPEN(4) -*/ diff --git a/src/math/M_SQRT2.h b/src/math/M_SQRT2.h new file mode 100644 index 00000000..96f3f19a --- /dev/null +++ b/src/math/M_SQRT2.h @@ -0,0 +1,5 @@ +#include +#define M_SQRT2 sqrt(2.0) +/* +XOPEN(4) +*/ diff --git a/src/math/NAN.c b/src/math/NAN.c deleted file mode 100644 index 58ff6aca..00000000 --- a/src/math/NAN.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define NAN 0.0 /* TODO: float quiet NaN */ - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/NAN.h b/src/math/NAN.h new file mode 100644 index 00000000..58ff6aca --- /dev/null +++ b/src/math/NAN.h @@ -0,0 +1,7 @@ +#include +#define NAN 0.0 /* TODO: float quiet NaN */ + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/double_t.c b/src/math/double_t.c deleted file mode 100644 index 47b1fb36..00000000 --- a/src/math/double_t.c +++ /dev/null @@ -1,16 +0,0 @@ -#include - -#if FLT_EVAL_METHOD == 0 -typedef double double_t; -#elif FLT_EVAL_METHOD == 1 -typedef double double_t; -#elif FLT_EVAL_METHOD == 2 -typedef long double double_t; -#else - /* implementation defined */ -#endif - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/double_t.h b/src/math/double_t.h new file mode 100644 index 00000000..47b1fb36 --- /dev/null +++ b/src/math/double_t.h @@ -0,0 +1,16 @@ +#include + +#if FLT_EVAL_METHOD == 0 +typedef double double_t; +#elif FLT_EVAL_METHOD == 1 +typedef double double_t; +#elif FLT_EVAL_METHOD == 2 +typedef long double double_t; +#else + /* implementation defined */ +#endif + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/float_t.c b/src/math/float_t.c deleted file mode 100644 index 251f5b2e..00000000 --- a/src/math/float_t.c +++ /dev/null @@ -1,16 +0,0 @@ -#include - -#if FLT_EVAL_METHOD == 0 -typedef float float_t; -#elif FLT_EVAL_METHOD == 1 -typedef double float_t; -#elif FLT_EVAL_METHOD == 2 -typedef long double float_t; -#else - /* implementation defined */ -#endif - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/float_t.h b/src/math/float_t.h new file mode 100644 index 00000000..251f5b2e --- /dev/null +++ b/src/math/float_t.h @@ -0,0 +1,16 @@ +#include + +#if FLT_EVAL_METHOD == 0 +typedef float float_t; +#elif FLT_EVAL_METHOD == 1 +typedef double float_t; +#elif FLT_EVAL_METHOD == 2 +typedef long double float_t; +#else + /* implementation defined */ +#endif + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/fpclassify.c b/src/math/fpclassify.c deleted file mode 100644 index 131905af..00000000 --- a/src/math/fpclassify.c +++ /dev/null @@ -1,11 +0,0 @@ -#include - -#define fpclassify(__x) \ - ((sizeof (__x) == sizeof (float)) ? __fpclassifyf(__x) : \ - (sizeof (__x) == sizeof (double)) ? __fpclassify(__x) : \ - __fpclassifyl(__x)) - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/fpclassify.h b/src/math/fpclassify.h new file mode 100644 index 00000000..131905af --- /dev/null +++ b/src/math/fpclassify.h @@ -0,0 +1,11 @@ +#include + +#define fpclassify(__x) \ + ((sizeof (__x) == sizeof (float)) ? __fpclassifyf(__x) : \ + (sizeof (__x) == sizeof (double)) ? __fpclassify(__x) : \ + __fpclassifyl(__x)) + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/isfinite.c b/src/math/isfinite.c deleted file mode 100644 index a37b5a2d..00000000 --- a/src/math/isfinite.c +++ /dev/null @@ -1,8 +0,0 @@ -#include - -#define isfinite(__x) (fpclassify(__x) != FP_INFINITE) - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/isfinite.h b/src/math/isfinite.h new file mode 100644 index 00000000..a37b5a2d --- /dev/null +++ b/src/math/isfinite.h @@ -0,0 +1,8 @@ +#include + +#define isfinite(__x) (fpclassify(__x) != FP_INFINITE) + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/isinf.c b/src/math/isinf.c deleted file mode 100644 index be76ecfb..00000000 --- a/src/math/isinf.c +++ /dev/null @@ -1,8 +0,0 @@ -#include - -#define isinf(__x) (fpclassify(__x) == FP_INFINITE) - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/isinf.h b/src/math/isinf.h new file mode 100644 index 00000000..be76ecfb --- /dev/null +++ b/src/math/isinf.h @@ -0,0 +1,8 @@ +#include + +#define isinf(__x) (fpclassify(__x) == FP_INFINITE) + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/isnan.c b/src/math/isnan.c deleted file mode 100644 index 80bbb741..00000000 --- a/src/math/isnan.c +++ /dev/null @@ -1,9 +0,0 @@ -#include - -#define isnan(__x) (fpclassify(__x) == FP_NAN) - -/* -STDC(199901) -LINK(m) -see also SUSv1 -*/ diff --git a/src/math/isnan.h b/src/math/isnan.h new file mode 100644 index 00000000..80bbb741 --- /dev/null +++ b/src/math/isnan.h @@ -0,0 +1,9 @@ +#include + +#define isnan(__x) (fpclassify(__x) == FP_NAN) + +/* +STDC(199901) +LINK(m) +see also SUSv1 +*/ diff --git a/src/math/isnormal.c b/src/math/isnormal.c deleted file mode 100644 index 95e82b1b..00000000 --- a/src/math/isnormal.c +++ /dev/null @@ -1,8 +0,0 @@ -#include - -#define isnormal(__x) (fpclassify(__x) == FP_NORMAL) - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/isnormal.h b/src/math/isnormal.h new file mode 100644 index 00000000..95e82b1b --- /dev/null +++ b/src/math/isnormal.h @@ -0,0 +1,8 @@ +#include + +#define isnormal(__x) (fpclassify(__x) == FP_NORMAL) + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/math_errhandling.c b/src/math/math_errhandling.c deleted file mode 100644 index 2c34327c..00000000 --- a/src/math/math_errhandling.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define math_errhandling (MATH_ERRNO | MATH_ERREXCEPT) - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/math_errhandling.h b/src/math/math_errhandling.h new file mode 100644 index 00000000..2c34327c --- /dev/null +++ b/src/math/math_errhandling.h @@ -0,0 +1,7 @@ +#include +#define math_errhandling (MATH_ERRNO | MATH_ERREXCEPT) + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/math/signbit.c b/src/math/signbit.c deleted file mode 100644 index 77cc3977..00000000 --- a/src/math/signbit.c +++ /dev/null @@ -1,23 +0,0 @@ -#include - -#define signbit(__x) \ - (sizeof(__x) == sizeof(long double) ? \ - ((((union { \ - long double __f; \ - char __c[sizeof(__x)]; \ - }){.__f = (__x)}).__c[sizeof(__x)-1] & 0x80) == 0x80 ? 1 : 0) : \ - sizeof(__x) == sizeof(double) ? \ - ((((union { \ - double __f; \ - char __c[sizeof(__x)]; \ - }){.__f = (__x)}).__c[sizeof(__x)-1] & 0x80) == 0x80 ? 1 : 0) : \ - (((union { \ - float __f; \ - char __c[sizeof(__x)]; \ - }){.__f = (__x)}).__c[sizeof(__x)-1] & 0x80) == 0x80 ? 1 : 0) - - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/math/signbit.h b/src/math/signbit.h new file mode 100644 index 00000000..77cc3977 --- /dev/null +++ b/src/math/signbit.h @@ -0,0 +1,23 @@ +#include + +#define signbit(__x) \ + (sizeof(__x) == sizeof(long double) ? \ + ((((union { \ + long double __f; \ + char __c[sizeof(__x)]; \ + }){.__f = (__x)}).__c[sizeof(__x)-1] & 0x80) == 0x80 ? 1 : 0) : \ + sizeof(__x) == sizeof(double) ? \ + ((((union { \ + double __f; \ + char __c[sizeof(__x)]; \ + }){.__f = (__x)}).__c[sizeof(__x)-1] & 0x80) == 0x80 ? 1 : 0) : \ + (((union { \ + float __f; \ + char __c[sizeof(__x)]; \ + }){.__f = (__x)}).__c[sizeof(__x)-1] & 0x80) == 0x80 ? 1 : 0) + + +/* +STDC(199901) +LINK(m) +*/ -- cgit v1.2.1