Skip to content

Commit

Permalink
fix bits calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik-johansson committed Feb 21, 2024
1 parent c86e41d commit 214855b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fmpz_mat/sqr_bodrato.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ fmpz_mat_sqr_bodrato(fmpz_mat_t B, const fmpz_mat_t A)

if (bits + sign <= 2 * FLINT_BITS)
{
bits = 2 * bits + FLINT_BIT_COUNT(n);

/* todo: specialize for squaring */
_fmpz_mat_mul_double_word_internal(B, A, A, sign, bits);
}
Expand Down

0 comments on commit 214855b

Please sign in to comment.