From b2aeff61418f6ee8e4f2eaf4e71da31260ff8960 Mon Sep 17 00:00:00 2001 From: Fredrik Johansson Date: Mon, 15 Jul 2024 07:38:21 +0200 Subject: [PATCH] bump threshold --- src/nfloat/mat_mul.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/nfloat/mat_mul.c b/src/nfloat/mat_mul.c index 57253ed8ed..169722a3ec 100644 --- a/src/nfloat/mat_mul.c +++ b/src/nfloat/mat_mul.c @@ -854,7 +854,12 @@ nfloat_mat_mul_block(gr_mat_t C, const gr_mat_t A, const gr_mat_t B, slong min_b } /* Minimum precision for using fixed-point arithmetic */ -#define NFLOAT_MAT_MUL_FIXED_CUTOFF 192 + +/* TODO: for *unsigned* matrices, there is a speedup already for + prec = 192. Consider inlining fixed-point additions/subtractions for + 4 and 5 limbs to extend this to general matrices. */ +/* #define NFLOAT_MAT_MUL_FIXED_CUTOFF 192 */ +#define NFLOAT_MAT_MUL_FIXED_CUTOFF 320 /* first cutoff: classical -> fixed_classical second cutoff: fixed_classical -> waksman */