Skip to content

Commit

Permalink
bla
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Oct 10, 2024
1 parent 7b03bee commit 5ad475f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/push_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,5 @@ jobs:
- name: "Check parts"
run: |
cd ${REPO}
make check MOD=fq_default_poly ARGS=fq_default_poly_init
make check MOD=fq_default_poly ARGS=fq_default_poly_inlines
make check MOD=fq_default_poly ARGS=fq_default_poly_set_fmpz_poly
make check MOD=fq_default_poly ARGS=fq_default_poly_evaluate
6 changes: 6 additions & 0 deletions src/fq_default/ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@
(at your option) any later version. See <https://www.gnu.org/licenses/>.
*/

#include <stdio.h>
#include "fq_default.h"

void fq_default_ctx_init_type(fq_default_ctx_t ctx,
const fmpz_t p, slong d, const char *var, int type)
{
int bits = fmpz_bits(p);

flint_printf("p = %{fmpz}\n"
"d = %wd\n"
"type = %d\n", p, d, type);
fflush(stdout);

if (type == FQ_DEFAULT_FQ_ZECH || (type == 0 && d > 1 && bits*d <= 16))
{
gr_ctx_init_fq_zech(FQ_DEFAULT_GR_CTX(ctx), *p, d, var);
Expand Down
5 changes: 0 additions & 5 deletions src/fq_default_poly/test/t-evaluate_fq_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
TEST_FUNCTION_START(fq_default_poly_evaluate, state)
{
int i, result;
fmpz_t p;
fq_default_ctx_t ctx;

fmpz_init(p);

/* Given a random fq_default_ctx, compute two random polynomials f1, f2
and a random element a. Ensure f1(a) * f2(b) == (f1 * f2)(a). */
for (i = 0; i < 100 * flint_test_multiplier(); i++)
Expand Down Expand Up @@ -115,7 +112,5 @@ TEST_FUNCTION_START(fq_default_poly_evaluate, state)

}

fmpz_clear(p);

TEST_FUNCTION_END(state);
}

0 comments on commit 5ad475f

Please sign in to comment.