Ticket #13947: zn_poly-0.9.p10-p11.diff

File zn_poly-0.9.p10-p11.diff, 1.9 KB (added by leif, 8 years ago)

Diff between the .p10 and the .p11. For reference / review only.

  • .hgtags

    diff --git a/.hgtags b/.hgtags
    a b  
    336cadbc959f3c65759e4b28d3fa5dc2f14af27b97 zn_poly-0.9.p8
    44e1129da71cd4a4cad058e5dc445be24bd2c1287d zn_poly-0.9.p9
    55267a39dab95cd0eda164e198782c06b3d2b83fc8 zn_poly-0.9.p10
     68c7aae78781f37d2fc1e17b620135bbcc35cbc3f zn_poly-0.9.p11
  • SPKG.txt

    diff --git a/SPKG.txt b/SPKG.txt
    a b  
    5858   Fix a potential problem when the value of ZNP_mpn_smp_kara_thresh is
    5959   SIZE_MAX, this is usually irrealistic but can happen at least on linux
    6060   on power7 with gcc-4.7.1 (see #14098).
     61 * fix_fudge_factor_in_nuss-test.c.patch:
     62   As the name says; fix provided by upstream (David Harvey); see #13947.
    6163
    6264== Changelog ==
    6365
     66=== zn_poly-0.9.p11 (Leif Leonhardy, May 24th, 2013) ===
     67 * #13947: Fix `nuss_mul()` test failing especially if tuning happened
     68   under "heavy" load (at least on MacOS X and Cygwin)
     69   Add `fix_fudge_factor_in_nuss-test.c.patch`; fix suggested by David
     70   Harvey.
     71
    6472=== zn_poly-0.9.p10 ( Francois Bissey, 14 February 2013 ) ===
    6573 * Trac #14098: Fix a potential problem with the tests where values can get out of
    6674   range. The problem occurs only in rare case but the code is more sane that way.
  • new file patches/fix_fudge_factor_in_nuss-test.c.patch

    diff --git a/patches/fix_fudge_factor_in_nuss-test.c.patch b/patches/fix_fudge_factor_in_nuss-test.c.patch
    new file mode 100644
    - +  
     1--- src/test/nuss-test.c        2008-09-19 17:37:47.000000000 +0200
     2+++ src/test/nuss-test.c        2013-05-24 08:53:44.133597843 +0200
     3@@ -55,7 +55,7 @@
     4    // compare target implementation against reference implementation
     5    ref_zn_array_negamul (ref, buf1, buf2, n, mod);
     6    nuss_mul (res, buf1, buf2, vec1, vec2);
     7-   ulong x = nuss_mul_fudge (lgL, 0, mod);
     8+   ulong x = nuss_mul_fudge (lgL, sqr, mod);
     9    ref_zn_array_scalar_mul (res, res, n, x, mod);
     10    int success = !zn_array_cmp (ref, res, n);
     11