From 48a934bb57524c589bfe69653058cca8e3be0a96 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Wed, 7 Jan 2026 20:03:55 +0000 Subject: Give int conversion functions better names. --- charf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'charf.c') diff --git a/charf.c b/charf.c index 6c8943b..3dd9d5e 100644 --- a/charf.c +++ b/charf.c @@ -28,7 +28,7 @@ #define EXPTYPE double #endif -/*length of the support of f*/ +/*maximum length of the support of f*/ static const int N=16; /*given function df[0] on domain [0,M-1], compute derivatives f' until f^{(K)} and store f^{(K)} in df*/ @@ -54,7 +54,7 @@ void differentiate(VALUETYPE* f, VALUETYPE* df, int D, int K){ /*given function f on domain [0,D-1] compute pth root of integral of |f|^p*/ VALUETYPE integratep(VALUETYPE* f, EXPTYPE p, int D){ - VALUETYPE integralp = convert_int(0); + VALUETYPE integralp = int_to_valuetype(0); for(int i=0;i> n) & 1); + for(int n=0; n> n) & 1); return d; } } @@ -189,7 +189,7 @@ int generate_function(VALUETYPE* f, int i){ void* compute_chunk(void* arguments){ int i = *((int*)arguments); int K = 3; - EXPTYPE p = to_exptype(1); + EXPTYPE p = int_to_exptype(1); VALUETYPE f[N]; int d = generate_function(f,i); @@ -202,7 +202,7 @@ void* compute_chunk(void* arguments){ int main() { /*exponent p of the L^p norm to consider*/ - EXPTYPE p = to_exptype(1); + EXPTYPE p = int_to_exptype(1); pthread_t threads[NUM_THREADS]; int args[NUM_THREADS]; -- cgit v1.2.3