summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile75
1 files changed, 60 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 54193df..9c565ab 100644
--- a/Makefile
+++ b/Makefile
@@ -4,15 +4,15 @@ CFLAGS=-O3 -mcpu=ev67 -mieee
CCC=ccc
CCFLAGS=-O3 -host
-TESTS= sin_glibc sin_cpml sin_ccc \
- cos_glibc cos_cpml cos_ccc \
- tan_glibc tan_cpml tan_ccc \
- sinh_glibc sinh_cpml sinh_ccc \
- cosh_glibc cosh_cpml cosh_ccc \
- tanh_glibc tanh_cpml tanh_ccc \
- asin_glibc asin_cpml asin_ccc \
- acos_glibc acos_cpml acos_ccc \
- atan_glibc atan_cpml atan_ccc \
+TESTS= sin_glibc sin_cpml sin_ccc sin_ffm \
+ cos_glibc cos_cpml cos_ccc cos_ffm \
+ tan_glibc tan_cpml tan_ccc tan_ffm \
+ sinh_glibc sinh_cpml sinh_ccc sinh_ffm \
+ cosh_glibc cosh_cpml cosh_ccc cosh_ffm \
+ tanh_glibc tanh_cpml tanh_ccc tanh_ffm \
+ asin_glibc asin_cpml asin_ccc asin_ffm \
+ acos_glibc acos_cpml acos_ccc acos_ffm \
+ atan_glibc atan_cpml atan_ccc atan_ffm \
asinh_glibc asinh_cpml asinh_ccc \
acosh_glibc acosh_cpml acosh_ccc \
atanh_glibc atanh_cpml atanh_ccc \
@@ -20,13 +20,13 @@ TESTS= sin_glibc sin_cpml sin_ccc \
ceil_glibc ceil_cpml ceil_ccc \
round_glibc round_cpml round_ccc \
trunc_glibc trunc_cpml trunc_ccc \
- log_glibc log_cpml log_ccc \
- log10_glibc log10_cpml log10_ccc \
- log2_glibc log2_cpml log2_ccc \
+ log_glibc log_cpml log_ccc log_ffm \
+ log10_glibc log10_cpml log10_ccc log10_ffm \
+ log2_glibc log2_cpml log2_ccc log2_ffm \
log1p_glibc log1p_cpml log1p_ccc \
- exp_glibc exp_cpml exp_ccc \
+ exp_glibc exp_cpml exp_ccc exp_ffm \
expm1_glibc expm1_cpml expm1_ccc \
- exp2_glibc exp2_cpml exp2_ccc
+ exp2_glibc exp2_cpml exp2_ccc exp2_ffm
all: $(TESTS)
@@ -49,6 +49,9 @@ sin_cpml: math.c
sin_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=sin -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lcpml
+sin_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=sin -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lffm
+
cos_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=cos -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lm
@@ -56,7 +59,10 @@ cos_cpml: math.c
${CC} ${CFLAGS} -DFUNCTION=cos -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lcpml
cos_ccc: math.c
- ${CCC} ${CCFLAGS} -DFUNCTION=sin -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lcpml
+ ${CCC} ${CCFLAGS} -DFUNCTION=cos -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lcpml
+
+cos_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=cos -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lffm
tan_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=tan -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lm
@@ -67,6 +73,9 @@ tan_cpml: math.c
tan_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=tan -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lcpml
+tan_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=tan -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lffm
+
sinh_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=sinh -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lm
@@ -76,6 +85,9 @@ sinh_cpml: math.c
sinh_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=sinh -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lcpml
+sinh_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=sinh -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lffm
+
cosh_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=cosh -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lm
@@ -85,6 +97,9 @@ cosh_cpml: math.c
cosh_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=cosh -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lcpml
+cosh_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=cosh -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lffm
+
tanh_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=tanh -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lm
@@ -94,6 +109,9 @@ tanh_cpml: math.c
tanh_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=tanh -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lcpml
+tanh_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=tanh -DDOMAIN_START="-2.0*M_PI" -DDOMAIN_END="2.0*M_PI" $< -o $@ -lffm
+
asin_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=asin -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lm
@@ -103,6 +121,9 @@ asin_cpml: math.c
asin_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=asin -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lcpml
+asin_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=asin -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lffm
+
acos_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=acos -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lm
@@ -112,6 +133,9 @@ acos_cpml: math.c
acos_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=acos -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lcpml
+acos_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=acos -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lffm
+
atan_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=atan -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lm
@@ -121,6 +145,9 @@ atan_cpml: math.c
atan_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=atan -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lcpml
+atan_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=atan -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lffm
+
asinh_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=asinh -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lm
@@ -148,6 +175,9 @@ atanh_cpml: math.c
atanh_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=atanh -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lcpml
+atanh_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=atanh -DDOMAIN_START="-1.0" -DDOMAIN_END="1.0" $< -o $@ -lffm
+
floor_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=floor -DDOMAIN_START="-10.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lm
@@ -193,6 +223,9 @@ log_cpml: math.c
log_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=log -DDOMAIN_START="0.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lcpml
+log_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=log -DDOMAIN_START="0.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lffm
+
log10_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=log10 -DDOMAIN_START="0.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lm
@@ -202,6 +235,9 @@ log10_cpml: math.c
log10_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=log10 -DDOMAIN_START="0.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lcpml
+log10_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=log10 -DDOMAIN_START="0.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lffm
+
log2_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=log2 -DDOMAIN_START="0.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lm
@@ -211,6 +247,9 @@ log2_cpml: math.c
log2_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=log2 -DDOMAIN_START="0.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lcpml
+log2_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=log2 -DDOMAIN_START="0.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lffm
+
log1p_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=log1p -DDOMAIN_START="-0.75" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lm
@@ -229,6 +268,9 @@ exp_cpml: math.c
exp_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=exp -DDOMAIN_START="-10.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lcpml
+exp_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=exp -DDOMAIN_START="-10.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lffm
+
expm1_glibc: math.c
${CC} ${CFLAGS} -DFUNCTION=expm1 -DDOMAIN_START="-10.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lm
@@ -247,3 +289,6 @@ exp2_cpml: math.c
exp2_ccc: math.c
${CCC} ${CCFLAGS} -DFUNCTION=exp2 -DDOMAIN_START="-10.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lcpml
+exp2_ffm: math.c
+ ${CC} ${CFLAGS} -DFUNCTION=exp2 -DDOMAIN_START="-10.0" -DDOMAIN_END="10.0" -DINCREMENT="0.25" $< -o $@ -lffm
+