rename things
This commit is contained in:
parent
ce5ece34e1
commit
777c5cc1a5
12
makefile
12
makefile
@ -225,16 +225,16 @@ src/singeli/gen/%.c: src/singeli/src/%.singeli preSingeliBin
|
|||||||
ifeq (${i_singeli}, 1)
|
ifeq (${i_singeli}, 1)
|
||||||
# arithmetic singeli generator
|
# arithmetic singeli generator
|
||||||
src/builtins/arithd2.c: src/singeli/c/dyarith2.c
|
src/builtins/arithd2.c: src/singeli/c/dyarith2.c
|
||||||
src/singeli/c/dyarith2.c: src/singeli/gen/dyarithTables.c
|
src/singeli/c/dyarith2.c: src/singeli/gen/arTables.c
|
||||||
src/singeli/src/dyarith2.singeli: src/singeli/gen/dyarithDefs.singeli
|
src/singeli/src/dyarith2.singeli: src/singeli/gen/arDefs.singeli
|
||||||
|
|
||||||
src/singeli/gen/dyarithDefs.singeli: genArithTables
|
src/singeli/gen/arDefs.singeli: genArithTables
|
||||||
src/singeli/gen/dyarithTables.c: genArithTables
|
src/singeli/gen/arTables.c: genArithTables
|
||||||
|
|
||||||
.INTERMEDIATE: genArithTables
|
.INTERMEDIATE: genArithTables
|
||||||
genArithTables: src/singeli/src/genArithTables.bqn preSingeliBin
|
genArithTables: src/singeli/src/genArithTables.bqn preSingeliBin
|
||||||
@echo " generating dyarithDefs.singeli & dyarithTables.c"
|
@echo " generating arDefs.singeli & arTables.c"
|
||||||
@obj/presingeli/BQN src/singeli/src/genArithTables.bqn "$$PWD/src/singeli/gen/dyarithDefs.singeli" "$$PWD/src/singeli/gen/dyarithTables.c"
|
@obj/presingeli/BQN src/singeli/src/genArithTables.bqn "$$PWD/src/singeli/gen/arDefs.singeli" "$$PWD/src/singeli/gen/arTables.c"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ static f64 pfmod(f64 a, f64 b) {
|
|||||||
#define BCALL(N, X) N(b(X))
|
#define BCALL(N, X) N(b(X))
|
||||||
#define interp_f64(X) b(X).f
|
#define interp_f64(X) b(X).f
|
||||||
|
|
||||||
#include "../singeli/c/arithd2Impl.c"
|
#include "../singeli/c/arithdDispatch.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define P2(N) { if(isArr(w)|isArr(x)) { \
|
#define P2(N) { if(isArr(w)|isArr(x)) { \
|
||||||
|
|||||||
@ -173,7 +173,7 @@ static void powAAu_f64_f64_f64(u8* r, u8* w, u8* x, u64 len) { for (u64 i = 0;
|
|||||||
static void stileAAu_f64_f64_f64(u8* r, u8* w, u8* x, u64 len) { for (u64 i = 0; i < len; i++) ((f64*)r)[i] = pfmod(((f64*)x)[i], ((f64*)w)[i]); }
|
static void stileAAu_f64_f64_f64(u8* r, u8* w, u8* x, u64 len) { for (u64 i = 0; i < len; i++) ((f64*)r)[i] = pfmod(((f64*)x)[i], ((f64*)w)[i]); }
|
||||||
static void logAAu_f64_f64_f64(u8* r, u8* w, u8* x, u64 len) { for (u64 i = 0; i < len; i++) ((f64*)r)[i] = log(((f64*)x)[i])/log(((f64*)w)[i]); }
|
static void logAAu_f64_f64_f64(u8* r, u8* w, u8* x, u64 len) { for (u64 i = 0; i < len; i++) ((f64*)r)[i] = log(((f64*)x)[i])/log(((f64*)w)[i]); }
|
||||||
|
|
||||||
#include "../gen/dyarithTables.c"
|
#include "../gen/arTables.c"
|
||||||
|
|
||||||
|
|
||||||
B internalTemp_c2(B t, B w, B x) {
|
B internalTemp_c2(B t, B w, B x) {
|
||||||
@ -131,4 +131,4 @@ def arithAA{mode, F, W, X, R} = {
|
|||||||
else arithAAu{vw, mode, F, W, X, R}
|
else arithAAu{vw, mode, F, W, X, R}
|
||||||
}
|
}
|
||||||
|
|
||||||
include './../gen/dyarithDefs'
|
include './../gen/arDefs'
|
||||||
Loading…
Reference in New Issue
Block a user