From d9d7ffe0d77a92ffb4c40d909c4813d69cdfe882 Mon Sep 17 00:00:00 2001 From: David Given Date: Thu, 21 Jun 2018 23:00:33 +0200 Subject: [PATCH] The maths library is pure. --- lang/cem/libcc.ansi/build.lua | 6 ++--- lang/cem/libcc.ansi/math/LIST | 22 ------------------- lang/cem/libcc.ansi/math/Makefile | 4 ---- lang/cem/libcc.ansi/{ => pure}/math/asin.c | 0 lang/cem/libcc.ansi/{ => pure}/math/atan.c | 0 lang/cem/libcc.ansi/{ => pure}/math/atan2.c | 0 lang/cem/libcc.ansi/{ => pure}/math/ceil.c | 0 lang/cem/libcc.ansi/{ => pure}/math/exp.c | 0 lang/cem/libcc.ansi/{ => pure}/math/fabs.c | 0 lang/cem/libcc.ansi/{ => pure}/math/floor.c | 0 lang/cem/libcc.ansi/{ => pure}/math/fmod.c | 0 lang/cem/libcc.ansi/{ => pure}/math/frexp.e | 0 lang/cem/libcc.ansi/{ => pure}/math/hugeval.c | 0 lang/cem/libcc.ansi/{ => pure}/math/hypot.c | 0 lang/cem/libcc.ansi/{ => pure}/math/isnan.c | 0 lang/cem/libcc.ansi/{ => pure}/math/ldexp.c | 0 .../libcc.ansi/{ => pure}/math/localmath.h | 0 lang/cem/libcc.ansi/{ => pure}/math/log.c | 0 lang/cem/libcc.ansi/{ => pure}/math/log10.c | 0 lang/cem/libcc.ansi/{ => pure}/math/modf.e | 0 lang/cem/libcc.ansi/{ => pure}/math/pow.c | 0 lang/cem/libcc.ansi/{ => pure}/math/sin.c | 0 lang/cem/libcc.ansi/{ => pure}/math/sinh.c | 0 lang/cem/libcc.ansi/{ => pure}/math/sqrt.c | 0 lang/cem/libcc.ansi/{ => pure}/math/tan.c | 0 lang/cem/libcc.ansi/{ => pure}/math/tanh.c | 0 26 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 lang/cem/libcc.ansi/math/LIST delete mode 100644 lang/cem/libcc.ansi/math/Makefile rename lang/cem/libcc.ansi/{ => pure}/math/asin.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/atan.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/atan2.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/ceil.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/exp.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/fabs.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/floor.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/fmod.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/frexp.e (100%) rename lang/cem/libcc.ansi/{ => pure}/math/hugeval.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/hypot.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/isnan.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/ldexp.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/localmath.h (100%) rename lang/cem/libcc.ansi/{ => pure}/math/log.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/log10.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/modf.e (100%) rename lang/cem/libcc.ansi/{ => pure}/math/pow.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/sin.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/sinh.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/sqrt.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/tan.c (100%) rename lang/cem/libcc.ansi/{ => pure}/math/tanh.c (100%) diff --git a/lang/cem/libcc.ansi/build.lua b/lang/cem/libcc.ansi/build.lua index e1845eb69..47d9bc4b3 100644 --- a/lang/cem/libcc.ansi/build.lua +++ b/lang/cem/libcc.ansi/build.lua @@ -38,11 +38,11 @@ for _, plat in ipairs(vars.plats) do "./pure/locale/*.c", "./pure/setjmp/*.c", "./pure/setjmp/*.e", + "./pure/math/*.c", -- hypot.c + "./pure/math/*.e", "./ctype/*.c", "./errno/*.c", "./malloc/*.c", - "./math/*.c", -- hypot.c - "./math/*.e", "./misc/environ.c", -- don't build everything here as it's all obsolete "./signal/*.c", "./assert/*.c", @@ -56,7 +56,7 @@ for _, plat in ipairs(vars.plats) do "lang/cem/libcc.ansi/headers+pkg", "plat/"..plat.."/include+pkg", "./malloc/malloc.h", - "./math/localmath.h", + "./pure/math/localmath.h", "./stdio/loc_incl.h", "./stdlib/ext_fmt.h", "./time/loc_time.h", diff --git a/lang/cem/libcc.ansi/math/LIST b/lang/cem/libcc.ansi/math/LIST deleted file mode 100644 index 09a0b3c06..000000000 --- a/lang/cem/libcc.ansi/math/LIST +++ /dev/null @@ -1,22 +0,0 @@ -localmath.h -asin.c -atan2.c -atan.c -ceil.c -fabs.c -pow.c -log10.c -log.c -sin.c -sinh.c -sqrt.c -tan.c -tanh.c -exp.c -ldexp.c -fmod.c -floor.c -hugeval.c -frexp.e -modf.e -isnan.c diff --git a/lang/cem/libcc.ansi/math/Makefile b/lang/cem/libcc.ansi/math/Makefile deleted file mode 100644 index 1081596a0..000000000 --- a/lang/cem/libcc.ansi/math/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -clean: - rm -f asin.o atan2.o atan.o ceil.o fabs.o pow.o log10.o \ - log.o sin.o sinh.o sqrt.o tan.o tanh.o exp.o ldexp.o \ - fmod.o floor.o hugeval.o frexp.o modf.o isnan.o OLIST diff --git a/lang/cem/libcc.ansi/math/asin.c b/lang/cem/libcc.ansi/pure/math/asin.c similarity index 100% rename from lang/cem/libcc.ansi/math/asin.c rename to lang/cem/libcc.ansi/pure/math/asin.c diff --git a/lang/cem/libcc.ansi/math/atan.c b/lang/cem/libcc.ansi/pure/math/atan.c similarity index 100% rename from lang/cem/libcc.ansi/math/atan.c rename to lang/cem/libcc.ansi/pure/math/atan.c diff --git a/lang/cem/libcc.ansi/math/atan2.c b/lang/cem/libcc.ansi/pure/math/atan2.c similarity index 100% rename from lang/cem/libcc.ansi/math/atan2.c rename to lang/cem/libcc.ansi/pure/math/atan2.c diff --git a/lang/cem/libcc.ansi/math/ceil.c b/lang/cem/libcc.ansi/pure/math/ceil.c similarity index 100% rename from lang/cem/libcc.ansi/math/ceil.c rename to lang/cem/libcc.ansi/pure/math/ceil.c diff --git a/lang/cem/libcc.ansi/math/exp.c b/lang/cem/libcc.ansi/pure/math/exp.c similarity index 100% rename from lang/cem/libcc.ansi/math/exp.c rename to lang/cem/libcc.ansi/pure/math/exp.c diff --git a/lang/cem/libcc.ansi/math/fabs.c b/lang/cem/libcc.ansi/pure/math/fabs.c similarity index 100% rename from lang/cem/libcc.ansi/math/fabs.c rename to lang/cem/libcc.ansi/pure/math/fabs.c diff --git a/lang/cem/libcc.ansi/math/floor.c b/lang/cem/libcc.ansi/pure/math/floor.c similarity index 100% rename from lang/cem/libcc.ansi/math/floor.c rename to lang/cem/libcc.ansi/pure/math/floor.c diff --git a/lang/cem/libcc.ansi/math/fmod.c b/lang/cem/libcc.ansi/pure/math/fmod.c similarity index 100% rename from lang/cem/libcc.ansi/math/fmod.c rename to lang/cem/libcc.ansi/pure/math/fmod.c diff --git a/lang/cem/libcc.ansi/math/frexp.e b/lang/cem/libcc.ansi/pure/math/frexp.e similarity index 100% rename from lang/cem/libcc.ansi/math/frexp.e rename to lang/cem/libcc.ansi/pure/math/frexp.e diff --git a/lang/cem/libcc.ansi/math/hugeval.c b/lang/cem/libcc.ansi/pure/math/hugeval.c similarity index 100% rename from lang/cem/libcc.ansi/math/hugeval.c rename to lang/cem/libcc.ansi/pure/math/hugeval.c diff --git a/lang/cem/libcc.ansi/math/hypot.c b/lang/cem/libcc.ansi/pure/math/hypot.c similarity index 100% rename from lang/cem/libcc.ansi/math/hypot.c rename to lang/cem/libcc.ansi/pure/math/hypot.c diff --git a/lang/cem/libcc.ansi/math/isnan.c b/lang/cem/libcc.ansi/pure/math/isnan.c similarity index 100% rename from lang/cem/libcc.ansi/math/isnan.c rename to lang/cem/libcc.ansi/pure/math/isnan.c diff --git a/lang/cem/libcc.ansi/math/ldexp.c b/lang/cem/libcc.ansi/pure/math/ldexp.c similarity index 100% rename from lang/cem/libcc.ansi/math/ldexp.c rename to lang/cem/libcc.ansi/pure/math/ldexp.c diff --git a/lang/cem/libcc.ansi/math/localmath.h b/lang/cem/libcc.ansi/pure/math/localmath.h similarity index 100% rename from lang/cem/libcc.ansi/math/localmath.h rename to lang/cem/libcc.ansi/pure/math/localmath.h diff --git a/lang/cem/libcc.ansi/math/log.c b/lang/cem/libcc.ansi/pure/math/log.c similarity index 100% rename from lang/cem/libcc.ansi/math/log.c rename to lang/cem/libcc.ansi/pure/math/log.c diff --git a/lang/cem/libcc.ansi/math/log10.c b/lang/cem/libcc.ansi/pure/math/log10.c similarity index 100% rename from lang/cem/libcc.ansi/math/log10.c rename to lang/cem/libcc.ansi/pure/math/log10.c diff --git a/lang/cem/libcc.ansi/math/modf.e b/lang/cem/libcc.ansi/pure/math/modf.e similarity index 100% rename from lang/cem/libcc.ansi/math/modf.e rename to lang/cem/libcc.ansi/pure/math/modf.e diff --git a/lang/cem/libcc.ansi/math/pow.c b/lang/cem/libcc.ansi/pure/math/pow.c similarity index 100% rename from lang/cem/libcc.ansi/math/pow.c rename to lang/cem/libcc.ansi/pure/math/pow.c diff --git a/lang/cem/libcc.ansi/math/sin.c b/lang/cem/libcc.ansi/pure/math/sin.c similarity index 100% rename from lang/cem/libcc.ansi/math/sin.c rename to lang/cem/libcc.ansi/pure/math/sin.c diff --git a/lang/cem/libcc.ansi/math/sinh.c b/lang/cem/libcc.ansi/pure/math/sinh.c similarity index 100% rename from lang/cem/libcc.ansi/math/sinh.c rename to lang/cem/libcc.ansi/pure/math/sinh.c diff --git a/lang/cem/libcc.ansi/math/sqrt.c b/lang/cem/libcc.ansi/pure/math/sqrt.c similarity index 100% rename from lang/cem/libcc.ansi/math/sqrt.c rename to lang/cem/libcc.ansi/pure/math/sqrt.c diff --git a/lang/cem/libcc.ansi/math/tan.c b/lang/cem/libcc.ansi/pure/math/tan.c similarity index 100% rename from lang/cem/libcc.ansi/math/tan.c rename to lang/cem/libcc.ansi/pure/math/tan.c diff --git a/lang/cem/libcc.ansi/math/tanh.c b/lang/cem/libcc.ansi/pure/math/tanh.c similarity index 100% rename from lang/cem/libcc.ansi/math/tanh.c rename to lang/cem/libcc.ansi/pure/math/tanh.c