fix math test gen script
authornsz <nsz@port70.net>
Sun, 7 Oct 2012 18:30:57 +0000 (20:30 +0200)
committernsz <nsz@port70.net>
Sun, 7 Oct 2012 18:30:57 +0000 (20:30 +0200)
141 files changed:
Makefile.inc
src/math/acos.c
src/math/acosf.c
src/math/acosh.c
src/math/acoshf.c
src/math/acoshl.c
src/math/acosl.c
src/math/asin.c
src/math/asinf.c
src/math/asinh.c
src/math/asinhf.c
src/math/asinhl.c
src/math/asinl.c
src/math/atan.c
src/math/atan2.c
src/math/atan2f.c
src/math/atan2l.c
src/math/atanf.c
src/math/atanh.c
src/math/atanhf.c
src/math/atanhl.c
src/math/atanl.c
src/math/cbrt.c
src/math/cbrtf.c
src/math/cbrtl.c
src/math/ceil.c
src/math/ceilf.c
src/math/ceill.c
src/math/copysign.c
src/math/copysignf.c
src/math/copysignl.c
src/math/cos.c
src/math/cosf.c
src/math/cosh.c
src/math/coshf.c
src/math/coshl.c
src/math/cosl.c
src/math/erf.c
src/math/erfc.c
src/math/erfcf.c
src/math/erfcl.c
src/math/erff.c
src/math/erfl.c
src/math/exp.c
src/math/exp10.c
src/math/exp10f.c
src/math/exp10l.c
src/math/exp2.c
src/math/exp2f.c
src/math/exp2l.c
src/math/expf.c
src/math/expl.c
src/math/expm1.c
src/math/expm1f.c
src/math/expm1l.c
src/math/fabs.c
src/math/fabsf.c
src/math/fabsl.c
src/math/fdim.c
src/math/fdimf.c
src/math/fdiml.c
src/math/floor.c
src/math/floorf.c
src/math/floorl.c
src/math/fmax.c
src/math/fmaxf.c
src/math/fmaxl.c
src/math/fmin.c
src/math/fminf.c
src/math/fminl.c
src/math/fmod.c
src/math/fmodf.c
src/math/fmodl.c
src/math/gen/gentests.sh
src/math/hypot.c
src/math/hypotf.c
src/math/hypotl.c
src/math/j0.c
src/math/j0f.c
src/math/j1.c
src/math/j1f.c
src/math/log.c
src/math/log10.c
src/math/log10f.c
src/math/log10l.c
src/math/log1p.c
src/math/log1pf.c
src/math/log1pl.c
src/math/log2.c
src/math/log2f.c
src/math/log2l.c
src/math/logb.c
src/math/logbf.c
src/math/logbl.c
src/math/logf.c
src/math/logl.c
src/math/nearbyint.c
src/math/nearbyintf.c
src/math/nearbyintl.c
src/math/nextafterl.c
src/math/nexttowardl.c
src/math/pow.c
src/math/pow10.c
src/math/pow10f.c
src/math/pow10l.c
src/math/powf.c
src/math/powl.c
src/math/remainder.c
src/math/remainderf.c
src/math/remainderl.c
src/math/rint.c
src/math/rintf.c
src/math/rintl.c
src/math/round.c
src/math/roundf.c
src/math/roundl.c
src/math/sin.c
src/math/sinf.c
src/math/sinh.c
src/math/sinhf.c
src/math/sinhl.c
src/math/sinl.c
src/math/sqrt.c
src/math/sqrtf.c
src/math/sqrtl.c
src/math/tan.c
src/math/tanf.c
src/math/tanh.c
src/math/tanhf.c
src/math/tanhl.c
src/math/tanl.c
src/math/tgamma.c
src/math/tgammaf.c
src/math/tgammal.c
src/math/trunc.c
src/math/truncf.c
src/math/truncl.c
src/math/y0.c
src/math/y0f.c
src/math/y1.c
src/math/y1f.c

index f124dac..f23381b 100644 (file)
@@ -4,6 +4,7 @@ LDFLAGS+=-g
 SRC=$(sort $(wildcard *.c))
 OBJ=$(SRC:.c=.o)
 DSOOBJ=$(filter %_dso.o,$(OBJ))
+# TODO: fix this hack
 BINOBJ=$(filter-out $(NONBIN),$(filter-out %_dso.o,$(OBJ)))
 DSO=$(DSOOBJ:.o=.so)
 BIN=$(BINOBJ:.o=)
@@ -12,7 +13,6 @@ ROOT=../..
 include $(ROOT)/config.mak
 
 all: $(BIN) $(DSO)
-       echo $(BIN)
 run: all
        @N=0; for i in $(BIN);do ./$$i || N=$$((N+1)); done; [ "$$N" = 0 ] && echo PASS || echo FAILS: $$N
 clean:
index 16782ee..e8e7743 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/acos.h"
 #include "ucb/acos.h"
 #include "sanity/acos.h"
+
 };
 
 int main(void)
index d9f6843..db12e88 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/acosf.h"
 #include "sanity/acosf.h"
+
 };
 
 int main(void)
index 29a8522..ca5dd8d 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/acosh.h"
+
 };
 
 int main(void)
index ebb3458..0036809 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/acoshf.h"
+
 };
 
 int main(void)
index a767f96..3fd17c1 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/acoshl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/acosh.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/acoshl.h"
+
 #endif
 };
 
index 73d106b..3d3c3fd 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/acosl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/acos.h"
+#include "ucb/acos.h"
+#include "sanity/acos.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/acosl.h"
+
 #endif
 };
 
index 009bff3..3e338d4 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/asin.h"
 #include "ucb/asin.h"
 #include "sanity/asin.h"
+
 };
 
 int main(void)
index b397037..a8dc6da 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/asinf.h"
 #include "sanity/asinf.h"
+
 };
 
 int main(void)
index 36b4350..2a4ebff 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/asinh.h"
+
 };
 
 int main(void)
index d62c96b..84c31ac 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/asinhf.h"
+
 };
 
 int main(void)
index ead85e3..5548268 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/asinhl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/asinh.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/asinhl.h"
+
 #endif
 };
 
index 1743012..76b20ec 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/asinl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/asin.h"
+#include "ucb/asin.h"
+#include "sanity/asin.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/asinl.h"
+
 #endif
 };
 
index 476a82c..2a18f5f 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/atan.h"
 #include "ucb/atan.h"
 #include "sanity/atan.h"
+
 };
 
 int main(void)
index 57d9821..ea09cc2 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct dd_d t[] = {
-
 #include "ucb/atan2.h"
 #include "sanity/atan2.h"
+
 };
 
 int main(void)
index 9a58212..5a83528 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "ucb/atan2f.h"
 #include "sanity/atan2f.h"
+
 };
 
 int main(void)
index 4976186..ad6ee9f 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/atan2l.h"
-#elif LDBL_MANT_DIG == 64
+#include "ucb/atan2.h"
+#include "sanity/atan2.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/atan2l.h"
+
 #endif
 };
 
index 4069e0d..7609bb7 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/atanf.h"
 #include "sanity/atanf.h"
+
 };
 
 int main(void)
index 896cce8..4ddc552 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/atanh.h"
+
 };
 
 int main(void)
index 9c3b688..66e1ce0 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/atanhf.h"
+
 };
 
 int main(void)
index b0c654c..ac744c4 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/atanhl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/atanh.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/atanhl.h"
+
 #endif
 };
 
index 2b3d580..5bf3ee7 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/atanl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/atan.h"
+#include "ucb/atan.h"
+#include "sanity/atan.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/atanl.h"
+
 #endif
 };
 
index 1f84e1c..242ac4e 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/cbrt.h"
+
 };
 
 int main(void)
index 1e178a8..51abd53 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/cbrtf.h"
+
 };
 
 int main(void)
index 5a6e0a4..2b6b095 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/cbrtl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/cbrt.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/cbrtl.h"
+
 #endif
 };
 
index e39d039..e9c4061 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "ucb/ceil.h"
 #include "sanity/ceil.h"
+
 };
 
 int main(void)
index d447833..afbf1ce 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/ceilf.h"
 #include "sanity/ceilf.h"
+
 };
 
 int main(void)
index 56fd82f..5e8857e 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/ceill.h"
-#elif LDBL_MANT_DIG == 64
+#include "ucb/ceil.h"
+#include "sanity/ceil.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/ceill.h"
+
 #endif
 };
 
index 1be4d2f..51ce3ac 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct dd_d t[] = {
-
 #include "sanity/copysign.h"
+
 };
 
 int main(void)
index 6359a71..98e1de5 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "sanity/copysignf.h"
+
 };
 
 int main(void)
index 086f3f8..a9a702f 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/copysignl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/copysign.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/copysignl.h"
+
 #endif
 };
 
index 8f9df66..dcb026d 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/cos.h"
 #include "ucb/cos.h"
 #include "sanity/cos.h"
+
 };
 
 int main(void)
index b88cbba..2103981 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/cosf.h"
 #include "sanity/cosf.h"
+
 };
 
 int main(void)
index 44f9f1b..3fa9466 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/cosh.h"
 #include "ucb/cosh.h"
 #include "sanity/cosh.h"
+
 };
 
 int main(void)
index 079e81b..10a1dd9 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/coshf.h"
 #include "sanity/coshf.h"
+
 };
 
 int main(void)
index 3f43adb..ae2dcc3 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/coshl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/cosh.h"
+#include "ucb/cosh.h"
+#include "sanity/cosh.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/coshl.h"
+
 #endif
 };
 
index 190d84e..d59b519 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/cosl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/cos.h"
+#include "ucb/cos.h"
+#include "sanity/cos.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/cosl.h"
+
 #endif
 };
 
index 92e6e0f..f6e837a 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/erf.h"
+
 };
 
 int main(void)
index 2e83605..f67d30f 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/erfc.h"
+
 };
 
 int main(void)
index 1cf5dca..9c3e2a4 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/erfcf.h"
+
 };
 
 int main(void)
index fab75dc..6a7b34c 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/erfcl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/erfc.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/erfcl.h"
+
 #endif
 };
 
index 5981f00..17430b7 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/erff.h"
+
 };
 
 int main(void)
index 013bf6f..dba10e1 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/erfl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/erf.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/erfl.h"
+
 #endif
 };
 
index 555a56a..4d5202d 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/exp.h"
 #include "ucb/exp.h"
 #include "sanity/exp.h"
+
 };
 
 int main(void)
index 4b3ecda..57367c3 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/exp10.h"
+
 };
 
 int main(void)
index bf2df05..a38b821 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/exp10f.h"
+
 };
 
 int main(void)
index 073fd45..e02da03 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/exp10l.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/exp10.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/exp10l.h"
+
 #endif
 };
 
index 317afb8..7892156 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/exp2.h"
+
 };
 
 int main(void)
index c146593..405cef3 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/exp2f.h"
+
 };
 
 int main(void)
index 1dbc3aa..9870378 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/exp2l.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/exp2.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/exp2l.h"
+
 #endif
 };
 
index 6c8c7b1..1476faa 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/expf.h"
 #include "sanity/expf.h"
+
 };
 
 int main(void)
index 0e5c418..68ad645 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/expl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/exp.h"
+#include "ucb/exp.h"
+#include "sanity/exp.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/expl.h"
+
 #endif
 };
 
index 0b4e739..b8537fd 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/expm1.h"
 #include "sanity/expm1.h"
+
 };
 
 int main(void)
index 29f7de9..ff5afe0 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/expm1f.h"
+
 };
 
 int main(void)
index 3bb90aa..8ce0bec 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/expm1l.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/expm1.h"
+#include "sanity/expm1.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/expm1l.h"
+
 #endif
 };
 
index 48f3dce..cc4cf9a 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "ucb/fabs.h"
 #include "sanity/fabs.h"
+
 };
 
 int main(void)
index 74ec690..4b54a42 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/fabsf.h"
 #include "sanity/fabsf.h"
+
 };
 
 int main(void)
index cd1b014..0670fe8 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/fabsl.h"
-#elif LDBL_MANT_DIG == 64
+#include "ucb/fabs.h"
+#include "sanity/fabs.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/fabsl.h"
+
 #endif
 };
 
index c5b0e39..7ef0ab6 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct dd_d t[] = {
-
 #include "sanity/fdim.h"
+
 };
 
 int main(void)
index 3b6067b..8e1d6d1 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "sanity/fdimf.h"
+
 };
 
 int main(void)
index 1de0744..a8c37e1 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/fdiml.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/fdim.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/fdiml.h"
+
 #endif
 };
 
index da82042..6e16c0b 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "ucb/floor.h"
 #include "sanity/floor.h"
+
 };
 
 int main(void)
index 2e304a3..7013fd8 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/floorf.h"
 #include "sanity/floorf.h"
+
 };
 
 int main(void)
index 76c815e..bb1b756 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/floorl.h"
-#elif LDBL_MANT_DIG == 64
+#include "ucb/floor.h"
+#include "sanity/floor.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/floorl.h"
+
 #endif
 };
 
index bba4da1..80d4770 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct dd_d t[] = {
-
 #include "sanity/fmax.h"
+
 };
 
 int main(void)
index 4be0a15..d0b7d53 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "sanity/fmaxf.h"
+
 };
 
 int main(void)
index 3490623..9dc815e 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/fmaxl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/fmax.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/fmaxl.h"
+
 #endif
 };
 
index 6ee9be2..81e1c5c 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct dd_d t[] = {
-
 #include "sanity/fmin.h"
+
 };
 
 int main(void)
index 1aee1dd..0655668 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "sanity/fminf.h"
+
 };
 
 int main(void)
index 3a7046d..2f71065 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/fminl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/fmin.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/fminl.h"
+
 #endif
 };
 
index fbc4cea..5df9d95 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct dd_d t[] = {
-
 #include "ucb/fmod.h"
 #include "sanity/fmod.h"
+
 };
 
 int main(void)
index eccb2c4..2b83ab1 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "ucb/fmodf.h"
 #include "sanity/fmodf.h"
+
 };
 
 int main(void)
index e09ddfb..fa699ab 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/fmodl.h"
-#elif LDBL_MANT_DIG == 64
+#include "ucb/fmod.h"
+#include "sanity/fmod.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/fmodl.h"
+
 #endif
 };
 
index a998e6a..86ec03c 100755 (executable)
@@ -3,21 +3,21 @@
 D=..
 sed 's/^T(//;s/,//;s/)//' functions.h | while read N T
 do
-       [ -e $D/$N.c ] || {
+#      [ -e $D/$N.c ] || {
                cp template/$T.c $D/$N.c || continue
                ND=`echo $N |sed 's/l$//'`
 
                H=''
                for i in crlibm/$N.h ucb/$N.h sanity/$N.h
                do
-                       [ -e $D/$i ] && H="$H\\n#include \"$i\""
+                       [ -e $D/$i ] && H="$H#include \"$i\"\\n"
                done
                DH=''
                for i in crlibm/$ND.h ucb/$ND.h sanity/$ND.h
                do
-                       [ -e $D/$i ] && DH="$DH\\n#include \"$i\""
+                       [ -e $D/$i ] && DH="$DH#include \"$i\"\\n"
                done
 
-               sed -i "s/___/$N/g;s,HEADERS,$H,;s,DHEADERS,$DH," $D/$N.c
-       }
+               sed -i "s/___/$N/g;s,DHEADERS,$DH,;s,HEADERS,$H," $D/$N.c
+#      }
 done
index 57463d0..5a3add5 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct dd_d t[] = {
-
 #include "ucb/hypot.h"
 #include "sanity/hypot.h"
+
 };
 
 int main(void)
index af3d6e0..01ce636 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "ucb/hypotf.h"
 #include "sanity/hypotf.h"
+
 };
 
 int main(void)
index 25b9e86..6a69746 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/hypotl.h"
-#elif LDBL_MANT_DIG == 64
+#include "ucb/hypot.h"
+#include "sanity/hypot.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/hypotl.h"
+
 #endif
 };
 
index 52c4ad5..ddf4064 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/j0.h"
+
 };
 
 int main(void)
index 8ba059f..63dea2d 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/j0f.h"
+
 };
 
 int main(void)
index 1f735df..895f7d5 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/j1.h"
+
 };
 
 int main(void)
index cfcf80e..7083216 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/j1f.h"
+
 };
 
 int main(void)
index abca524..17a2a55 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/log.h"
 #include "ucb/log.h"
 #include "sanity/log.h"
+
 };
 
 int main(void)
index ab71507..4bd80cc 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/log10.h"
 #include "ucb/log10.h"
 #include "sanity/log10.h"
+
 };
 
 int main(void)
index f0f3f1b..d3ecdfa 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/log10f.h"
 #include "sanity/log10f.h"
+
 };
 
 int main(void)
index b05b4fa..e0f9eee 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/log10l.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/log10.h"
+#include "ucb/log10.h"
+#include "sanity/log10.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/log10l.h"
+
 #endif
 };
 
index e6653e1..8bd027a 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/log1p.h"
 #include "sanity/log1p.h"
+
 };
 
 int main(void)
index b9978f9..3e7bbfb 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/log1pf.h"
+
 };
 
 int main(void)
index 05b353c..625628c 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/log1pl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/log1p.h"
+#include "sanity/log1p.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/log1pl.h"
+
 #endif
 };
 
index 8d75fd1..e1751ba 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/log2.h"
 #include "sanity/log2.h"
+
 };
 
 int main(void)
index 135db4e..3c97dbb 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/log2f.h"
+
 };
 
 int main(void)
index e45f46e..234a4fb 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/log2l.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/log2.h"
+#include "sanity/log2.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/log2l.h"
+
 #endif
 };
 
index a66000d..3c9666a 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/logb.h"
+
 };
 
 int main(void)
index ce66758..38d6608 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/logbf.h"
+
 };
 
 int main(void)
index 4531574..149d19f 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/logbl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/logb.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/logbl.h"
+
 #endif
 };
 
index 6bae867..03bda8f 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/logf.h"
 #include "sanity/logf.h"
+
 };
 
 int main(void)
index 110f26d..0141042 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/logl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/log.h"
+#include "ucb/log.h"
+#include "sanity/log.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/logl.h"
+
 #endif
 };
 
index 2579d76..d3c4850 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/nearbyint.h"
+
 };
 
 int main(void)
index 5e4447d..7ebfd36 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/nearbyintf.h"
+
 };
 
 int main(void)
index 265f27d..82bb73c 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/nearbyintl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/nearbyint.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/nearbyintl.h"
+
 #endif
 };
 
index 41804d4..283e2ab 100644 (file)
@@ -4,7 +4,7 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
+
 #elif LDBL_MANT_DIG == 64
 
 #endif
index d09e2f8..ba372d5 100644 (file)
@@ -4,7 +4,7 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
+
 #elif LDBL_MANT_DIG == 64
 
 #endif
index 57ca123..a3bf732 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct dd_d t[] = {
-
 #include "crlibm/pow.h"
 #include "ucb/pow.h"
 #include "sanity/pow.h"
+
 };
 
 int main(void)
index defc110..3034e21 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/pow10.h"
+
 };
 
 int main(void)
index 5b4eada..145948d 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/pow10f.h"
+
 };
 
 int main(void)
index afc8723..af3bc12 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/pow10l.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/pow10.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/pow10l.h"
+
 #endif
 };
 
index 0bad585..23200d3 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "ucb/powf.h"
 #include "sanity/powf.h"
+
 };
 
 int main(void)
index 3d82b65..c5d5fee 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/powl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/pow.h"
+#include "ucb/pow.h"
+#include "sanity/pow.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/powl.h"
+
 #endif
 };
 
index 218639d..3870fcf 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct dd_d t[] = {
-
 #include "sanity/remainder.h"
+
 };
 
 int main(void)
index e966222..5279c58 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "sanity/remainderf.h"
+
 };
 
 int main(void)
index fef5dff..727a261 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct ll_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/remainderl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/remainder.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/remainderl.h"
+
 #endif
 };
 
index 796bdf7..8ed9af7 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/rint.h"
+
 };
 
 int main(void)
index 5158074..78a0ffc 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/rintf.h"
+
 };
 
 int main(void)
index 87b2432..f232f74 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/rintl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/rint.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/rintl.h"
+
 #endif
 };
 
index 29aad2b..0535fd2 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/round.h"
+
 };
 
 int main(void)
index 6118495..c9a18ce 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/roundf.h"
+
 };
 
 int main(void)
index b0fdc99..ad64c9a 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/roundl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/round.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/roundl.h"
+
 #endif
 };
 
index f40d208..d130d3f 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/sin.h"
 #include "ucb/sin.h"
 #include "sanity/sin.h"
+
 };
 
 int main(void)
index aabf6f5..1983701 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/sinf.h"
 #include "sanity/sinf.h"
+
 };
 
 int main(void)
index 5e108df..78632e7 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/sinh.h"
 #include "ucb/sinh.h"
 #include "sanity/sinh.h"
+
 };
 
 int main(void)
index 9c1e061..4188796 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/sinhf.h"
 #include "sanity/sinhf.h"
+
 };
 
 int main(void)
index d52adb3..99f6215 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/sinhl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/sinh.h"
+#include "ucb/sinh.h"
+#include "sanity/sinh.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/sinhl.h"
+
 #endif
 };
 
index 471d38f..5b29628 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/sinl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/sin.h"
+#include "ucb/sin.h"
+#include "sanity/sin.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/sinl.h"
+
 #endif
 };
 
index 069cd6e..797dba1 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "ucb/sqrt.h"
 #include "sanity/sqrt.h"
+
 };
 
 int main(void)
index 64b80f2..7015ffb 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/sqrtf.h"
 #include "sanity/sqrtf.h"
+
 };
 
 int main(void)
index 93490ab..d07fb43 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/sqrtl.h"
-#elif LDBL_MANT_DIG == 64
+#include "ucb/sqrt.h"
+#include "sanity/sqrt.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/sqrtl.h"
+
 #endif
 };
 
index 0b457a6..5057e21 100644 (file)
@@ -3,10 +3,10 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "crlibm/tan.h"
 #include "ucb/tan.h"
 #include "sanity/tan.h"
+
 };
 
 int main(void)
index cc0424b..5dc5687 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/tanf.h"
 #include "sanity/tanf.h"
+
 };
 
 int main(void)
index 54a6e80..0c39c48 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "ucb/tanh.h"
 #include "sanity/tanh.h"
+
 };
 
 int main(void)
index dcae073..26b6f40 100644 (file)
@@ -3,9 +3,9 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "ucb/tanhf.h"
 #include "sanity/tanhf.h"
+
 };
 
 int main(void)
index e2d7c6a..2d65073 100644 (file)
@@ -4,11 +4,12 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/tanhl.h"
-#elif LDBL_MANT_DIG == 64
+#include "ucb/tanh.h"
+#include "sanity/tanh.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/tanhl.h"
+
 #endif
 };
 
index 4e58ac2..79ac851 100644 (file)
@@ -4,11 +4,13 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/tanl.h"
-#elif LDBL_MANT_DIG == 64
+#include "crlibm/tan.h"
+#include "ucb/tan.h"
+#include "sanity/tan.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/tanl.h"
+
 #endif
 };
 
index c94bb2a..3e4e2a5 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/tgamma.h"
+
 };
 
 int main(void)
index ce46ee2..b72612d 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/tgammaf.h"
+
 };
 
 int main(void)
index a0e8db8..a004d6a 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/tgammal.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/tgamma.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/tgammal.h"
+
 #endif
 };
 
index a756bfd..10b669e 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/trunc.h"
+
 };
 
 int main(void)
index 3f4ff2f..4024273 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/truncf.h"
+
 };
 
 int main(void)
index be59bd2..2b7596a 100644 (file)
@@ -4,11 +4,11 @@
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
-D
-#include "sanity/truncl.h"
-#elif LDBL_MANT_DIG == 64
+#include "sanity/trunc.h"
 
+#elif LDBL_MANT_DIG == 64
 #include "sanity/truncl.h"
+
 #endif
 };
 
index e2d1787..00df016 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/y0.h"
+
 };
 
 int main(void)
index 272eaff..275691d 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/y0f.h"
+
 };
 
 int main(void)
index 93e42e1..5034b1a 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct d_d t[] = {
-
 #include "sanity/y1.h"
+
 };
 
 int main(void)
index bc9148b..0cd9447 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct f_f t[] = {
-
 #include "sanity/y1f.h"
+
 };
 
 int main(void)