Skip to content

Commit

Permalink
last aliasing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik-johansson committed Jan 27, 2025
1 parent a3dfd93 commit fdb66f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/gr_poly/div_newton_n_preinv.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ gr_poly_div_newton_n_preinv(gr_poly_t Q,

Qlen = Alen - Blen + 1;

if (Q == A || Q == B)
if (Q == A || Q == B || Q == Binv)
{
gr_poly_t t;
gr_poly_init2(t, Qlen, ctx);
Expand Down
2 changes: 0 additions & 2 deletions src/gr_poly/test/t-div_newton_n_preinv.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ TEST_FUNCTION_START(gr_poly_div_newton_n_preinv, state)
/* different aliasing cases */
switch (n_randint(state, 4))
{
/*
case 0:
status |= gr_poly_set(Q, A, ctx);
status |= gr_poly_div_newton_n_preinv(Q, Q, B, Binv, ctx);
Expand All @@ -56,7 +55,6 @@ TEST_FUNCTION_START(gr_poly_div_newton_n_preinv, state)
status |= gr_poly_set(Q, Binv, ctx);
status |= gr_poly_div_newton_n_preinv(Q, A, B, Q, ctx);
break;
*/
default:
status |= gr_poly_div_newton_n_preinv(Q, A, B, Binv, ctx);
break;
Expand Down

0 comments on commit fdb66f0

Please sign in to comment.