Skip to content

Commit

Permalink
bump threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik-johansson committed Jul 15, 2024
1 parent 79b7c89 commit b2aeff6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nfloat/mat_mul.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b2aeff6

Please sign in to comment.