aboutsummaryrefslogtreecommitdiffstats
path: root/mpi/mpi-internal.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mpi: Suppress set-but-unused-variables warnings.Werner Koch2014-08-201-1/+2
| | | | | | | | | | | | * include/types.h (GNUPG_GCC_ATTR_UNUSED): Define for gcc >= 3.5. * mpi/mpih-div.c (mpihelp_divmod_1, mpihelp_mod_1): Mark dummy as unused. * mpi/mpi-internal.h (UDIV_QRNND_PREINV): Mark _ql as unused. -- Due to the use of macros and longlong.h, we use variables which are only used by some architectures. At least gcc 4.7.2 prints new warnings about set but not used variables. This patch silences them.
* Fix bug in mpi_tdiv_q_2exp.Werner Koch2013-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | * mpi/mpi-internal.h (MPN_COPY_INCR): Make it work. -- This bug has been with us since the version 0.0.0 of GnuPG. Fortunately it only affects an optimized code path which is rarely used in practice: If the shift size matches the size of a limb (i.e.. 32 or 64); this is is_prime in primegen.c. Over there the Rabin-Miller test may fail with a probability of 2^-31 (that is if the to be tested prime - 1 has the low 32 bits cleared). In practice the probability is even much less because we first do a Fermat test on the randomly generated candidates which sorts out the majority of composite numbers. The bug in MPN_COPY_INCR was found by Sven Bjorn. Signed-off-by: Werner Koch <[email protected]> (back ported from Libgcrypt commit 7f7a5ef59962ae1a819b5060f9b781469bfe27d5)
* Switched to GPLv3.Werner Koch2007-10-231-4/+2
| | | | | Updated gettext.
* Removed the use of g10defs.h.Werner Koch2006-12-111-0/+32
| | | | | | This required some code cleanups and the introduction of a few accessor ducntions in mpi.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-311-1/+2
|
* * mpicoder.c, mpi-inline.h, mpi-inv.c, mpiutil.c, mpih-div.c,David Shaw2003-05-241-6/+6
| | | | | | | mpi-internal.h, mpi-scan.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
* Update head to match stable 1.0David Shaw2002-06-291-0/+259
|
* Removed files from the HEAD revision, because they are now in anotherWerner Koch2000-12-191-277/+0
| | | | | repository
* Some configuration changesWerner Koch2000-11-141-0/+18
|
* See ChangeLog: Mon Jul 17 16:35:47 CEST 2000 Werner KochWerner Koch2000-07-171-1/+18
|
* See ChangeLog: Fri Jul 2 11:45:54 CEST 1999 Werner KochWerner Koch1999-07-021-0/+5
|
* See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1998-12-231-3/+3
|
* Renamed to GNUPGV-0-2-8Werner Koch1998-02-241-4/+4
|
* added some trust model stuffWerner Koch1998-01-161-1/+1
|
* changed configuration stuff, replaced some Makefile.am by distfiles.Werner Koch1997-12-231-0/+18
|
* Improved prime number testWerner Koch1997-11-271-0/+7
|
* changed the dir layoutWerner Koch1997-11-261-5/+19
|
* initially checkinWerner Koch1997-11-181-0/+198