Skip to content

Commit

Permalink
[Fgw.c] fixed error in ASSERT_ALWAYS
Browse files Browse the repository at this point in the history
[batch.c] added missing mpz_clear for s


git-svn-id: svn://scm.gforge.inria.fr/svnroot/ecm/trunk@1614 404564d9-a503-0410-82bf-e18ce2cf3989
  • Loading branch information
Paul Zimmerman committed Sep 29, 2011
1 parent 7716a6b commit f3f84a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Fgw.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ gw_ecm_stage1 (mpz_t f, curve *P, mpmod_t modulus,
or 50 bits long, and the maximum c value is +/-8388607 */
ASSERT_ALWAYS (gw_k == rint (gw_k)); /* check that k is an integer */
ASSERT_ALWAYS (1.0 <= gw_k && gw_k <= 562949953421312.0);
ASSERT_ALWAYS (-8388607 <= c && c <= 8388607);
ASSERT_ALWAYS (-8388607 <= gw_c && gw_c <= 8388607);
#if GMP_NUMB_BITS <= 32
youpi = gwnum_ecmStage1_u32 (gw_k, gw_b, gw_n, gw_c,
PTR(modulus->orig_modulus), ABSIZ(modulus->orig_modulus),
Expand Down
1 change: 1 addition & 0 deletions batch.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ ecm_stage1_batch (mpz_t f, mpres_t x, mpres_t A, mpmod_t n, double B1,
/* P1 <- P1+P2 P2 <- 2*P2 */
dup_add (x2, z2, x1, z1, q, t, u, v, w, d, n);
}
mpz_clear (s);

outputf (OUTPUT_VERBOSE, " MUL=%lu SQR=%lu\n", MUL, SQR);

Expand Down

0 comments on commit f3f84a8

Please sign in to comment.