Age | Commit message (Collapse) | Author | Files | Lines |
|
* mpi/config.links: Include FreeBSD 10 to 29.
--
Thanks to Yuta SATOH.
GnuPG-bug-id: 1936, 1974
|
|
acinclude.m4 (GNUPG_SYS_SYMBOL_UNDERSCORE): Set
'ac_cv_sys_symbol_underscore=no' on MingW-W64.
mpi/amd64/func_abi.h: New.
mpi/amd64/mpih-add1.S (_gcry_mpih_add_n): Add FUNC_ENTRY and FUNC_EXIT.
mpi/amd64/mpih-lshift.S (_gcry_mpih_lshift): Ditto.
mpi/amd64/mpih-mul1.S (_gcry_mpih_mul_1): Ditto.
mpi/amd64/mpih-mul2.S (_gcry_mpih_addmul_1): Ditto.
mpi/amd64/mpih-mul3.S (_gcry_mpih_submul_1): Ditto.
mpi/amd64/mpih-rshift.S (_gcry_mpih_rshift): Ditto.
mpi/amd64/mpih-sub1.S (_gcry_mpih_sub_n): Ditto.
mpi/config.links [host=x86_64-*mingw*]: Enable assembly modules.
[host=x86_64-*-*]: Append mpi/amd64/func_abi.h to mpi/asm-syntax.h.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
|
|
* mpi/config.links: Disable assembly for host 'x86_64-*mingw32*'.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
|
|
* mpi/config.links: Add separate entry for powerpc-apple-darwin.
--
GnuPG-bug-id: 1616
|
|
* mpi/config.links: Add case for x86_64-apple-darwin.
--
Suggested by gniibe on 2014-04-24.
|
|
* mpi/config.links [m68k-atari-mint]: Do not assume 68020. Suggested
by Alan Hourihane.
(cherry picked from commit 420f42a5752e90a8b27d58ffa1ddfe6e4ab341e8)
|
|
* mpi/config.links (mpi_cpu_arch): Always set for ARM. Set for HPPA.
Set to "undefined" for unknown platforms.
(try_asm_modules): Act upon only after having detected the CPU.
* configure.ac: Move the call to config.links before the platform
specific compiler checks. Check platform specific features only if
the platform is targeted.
--
There is no need to check x86 options if we are targeting ARM and vice
versa. This may only introduce build problems. With this patch the
summary output at the end of the compiler also shows more reasonable
messages.
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 04d478d9b0f92d80105ddaf2c011f40ae8260cfb)
|
|
* mpi/aarch64/mpi-asm-defs.h: New.
* mpi/aarch64/mpih-add1.S: New.
* mpi/aarch64/mpih-mul1.S: New.
* mpi/aarch64/mpih-mul2.S: New.
* mpi/aarch64/mpih-mul3.S: New.
* mpi/aarch64/mpih-sub1.S: New.
* mpi/config.links [host=aarch64-*-*]: Add configguration for aarch64
assembly.
* mpi/longlong.h [__aarch64__] (add_ssaaaa, sub_ddmmss, umul_ppmm)
(count_leading_zeros): New.
--
Add preliminary aarch64 assembly implementations for mpi.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
|
|
* mpi/config.links: remove check for arm >= v6
* mpi/armv6 => mpi/arm: rename directory to reflect that is is generic
enough
--
MPI ARM assembly do not depend on CPU being armv6. Verified on PXA255:
Before:
Algorithm generate 100*sign 100*verify
------------------------------------------------
RSA 1024 bit 3990ms 57980ms 1680ms
RSA 2048 bit 59620ms 389430ms 5690ms
RSA 3072 bit 535850ms 1223200ms 12000ms
RSA 4096 bit 449350ms 2707370ms 20050ms
After:
Algorithm generate 100*sign 100*verify
------------------------------------------------
RSA 1024 bit 2190ms 13730ms 320ms
RSA 2048 bit 12750ms 67640ms 810ms
RSA 3072 bit 110520ms 166100ms 1350ms
RSA 4096 bit 100870ms 357560ms 2170ms
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
[ jk: ARMv6 => ARM in header comments ]
|
|
* mpi/config.links [armv6]: Set mpi_cpu_arch to "arm", instead of
"armv6".
--
Without this change, HAVE_CPU_ARCH_ARM stays undefined.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
|
|
* mpi/armv6/mpi-asm-defs.h: New.
* mpi/armv6/mpih-add1.S: New.
* mpi/armv6/mpih-mul1.S: New.
* mpi/armv6/mpih-mul2.S: New.
* mpi/armv6/mpih-mul3.S: New.
* mpi/armv6/mpih-sub1.S: New.
* mpi/config.links [arm]: Enable ARMv6 assembly.
--
Add mpi assembly for ARMv6 (or later). These are partly based on ARM assembly
found in GMP 4.2.1.
Old vs new (Cortex-A8, 1Ghz):
Algorithm generate 100*sign 100*verify
------------------------------------------------
ECDSA 192 bit 1.14x 1.10x 1.13x
ECDSA 224 bit 1.11x 1.12x 1.12x
ECDSA 256 bit 1.20x 1.13x 1.14x
ECDSA 384 bit 1.13x 1.21x 1.21x
ECDSA 521 bit 1.17x 1.20x 1.22x
Algorithm generate 100*sign 100*verify
------------------------------------------------
RSA 1024 bit - 1.31x 1.60x
RSA 2048 bit - 1.41x 1.47x
RSA 3072 bit - 1.50x 1.63x
RSA 4096 bit - 1.50x 1.57x
Algorithm generate 100*sign 100*verify
------------------------------------------------
DSA 1024/160 - 1.39x 1.38x
DSA 2048/224 - 1.50x 1.51x
DSA 3072/256 - 1.59x 1.64x
NEW:
Algorithm generate 100*sign 100*verify
------------------------------------------------
ECDSA 192 bit 70ms 1750ms 3170ms
ECDSA 224 bit 90ms 2210ms 4250ms
ECDSA 256 bit 100ms 2710ms 5170ms
ECDSA 384 bit 230ms 5670ms 11040ms
ECDSA 521 bit 540ms 13370ms 25870ms
Algorithm generate 100*sign 100*verify
------------------------------------------------
RSA 1024 bit 360ms 2200ms 50ms
RSA 2048 bit 2770ms 11900ms 150ms
RSA 3072 bit 6680ms 32530ms 270ms
RSA 4096 bit 10320ms 69440ms 460ms
Algorithm generate 100*sign 100*verify
------------------------------------------------
DSA 1024/160 - 990ms 910ms
DSA 2048/224 - 3830ms 3410ms
DSA 3072/256 - 8270ms 7030ms
OLD:
Algorithm generate 100*sign 100*verify
------------------------------------------------
ECDSA 192 bit 80ms 1920ms 3580ms
ECDSA 224 bit 100ms 2470ms 4760ms
ECDSA 256 bit 120ms 3050ms 5870ms
ECDSA 384 bit 260ms 6840ms 13330ms
ECDSA 521 bit 630ms 16080ms 31500ms
Algorithm generate 100*sign 100*verify
------------------------------------------------
RSA 1024 bit 450ms 2890ms 80ms
RSA 2048 bit 2320ms 16760ms 220ms
RSA 3072 bit 26300ms 48650ms 440ms
RSA 4096 bit 15700ms 103910ms 720ms
Algorithm generate 100*sign 100*verify
------------------------------------------------
DSA 1024/160 - 1380ms 1260ms
DSA 2048/224 - 5740ms 5140ms
DSA 3072/256 - 13130ms 11510ms
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
|
|
* configure.ac (GCRYPT_HWF_MODULES): New.
(HAVE_CPU_ARCH_X86, HAVE_CPU_ARCH_ALPHA, HAVE_CPU_ARCH_SPARC)
(HAVE_CPU_ARCH_MIPS, HAVE_CPU_ARCH_M68K, HAVE_CPU_ARCH_PPC)
(HAVE_CPU_ARCH_ARM): New AC_DEFINEs.
* mpi/config.links (mpi_cpu_arch): New.
* src/global.c (print_config): Print new tag "cpu-arch".
* src/Makefile.am (libgcrypt_la_SOURCES): Add hwf-common.h
(EXTRA_libgcrypt_la_SOURCES): New.
(gcrypt_hwf_modules): New.
(libgcrypt_la_DEPENDENCIES, libgcrypt_la_LIBADD): Add that one.
* src/hwfeatures.c: Factor most code out to ...
* src/hwf-x86.c: New file.
(detect_x86_gnuc): Return the feature vector.
(_gcry_hwf_detect_x86): New.
* src/hwf-common.h: New.
* src/hwfeatures.c (_gcry_detect_hw_features): Dispatch using
HAVE_CPU_ARCH_ macros.
Signed-off-by: Werner Koch <wk@gnupg.org>
|
|
Check and install the standard git pre-commit hook.
|
|
|
|
|
|
|
|
* configure.ac (ac_cv_mpi_config_done): Unused variable removed.
(ac_cv_mpi_mod_list, MPI_MOD_LIST_LO, MPI_MOD_LIST_O): Removed.
(MPI_MOD_ASM_MPIH_ADD1, MPI_MOD_ASM_MPIH_SUB1,
MPI_MOD_ASM_MPIH_MUL1, MPI_MOD_ASM_MPIH_MUL2,
MPI_MOD_ASM_MPIH_MUL3, MPI_MOD_ASM_MPIH_LSHIFT,
MPI_MOD_ASM_MPIH_RSHIFT, MPI_MOD_ASM_MPIH_UDIV,
MPI_MOD_ASM_MPIH_UDIV_QRNND, MPI_MOD_C_MPIH_ADD1,
MPI_MOD_C_MPIH_SUB1, MPI_MOD_C_MPIH_MUL1, MPI_MOD_C_MPIH_MUL2,
MPI_MOD_C_MPIH_MUL3, MPI_MOD_C_MPIH_LSHIFT, MPI_MOD_C_MPIH_RSHIFT,
MPI_MOD_C_MPIH_UDIV, MPI_MOD_C_MPIH_UDIV_QRNND): New automake
variables.
mpi/
2007-05-09 Marcus Brinkmann <marcus@g10code.de>
* config.links: Rename assembler file links by suffixing "-asm".
* Makefile.am (CCASCOMPILE, LTCCASCOMPILE, CLEANFILES,
libmpi_la_LIBADD, libmpi_la_DEPENDENCIES, SUFFIXES, .S.o, .S.obj,
.S.lo): Removed variables and targets.
(mpih_add1, mpih_sub1, mpih_mul1, mpih_mul2, mpih_mul3,
mpih_lshift, mpih_rshift, mpih_udiv, mpih_udiv_qrnnd,
nodist_libmpi_la_SOURCES): New variables.
(DISTCLEANFILES): Rename assembler file links by suffixing "-asm".
Add variants for C file links.
|
|
Allow colons as delimiters for --enable-mpi-path.
|
|
* README.apichanges: Move to doc/.
* Makefile.am (EXTRA_DIST): Removed that file.
doc/
* HACKING: New. Two items by Marcus.
* README.apichanges: Move from .. to here.
* Makefile.am (EXTRA_DIST): Add new files.
mpi/
* config.links: Create a file mod-source-info.h.
* Makefile.am (DISTCLEANFILES): Add that file.
* mpiutil.c (_gcry_mpi_get_hw_config): New.
src/
* global.c (gcry_control): New.
* gcrypt.h.in (GCRYCTL_DUMP_CONFIG): New.
tests/
* version.c: New.
* Makefile.am (TESTS): Add version.
|
|
* configure.ac: Allow to specify additional search directories
with --enable-mpi-path.
mpi/
2007-04-28 Marcus Brinkmann <marcus@g10code.de>
* config.links: Add additional assembler search directories.
|
|
Cosmetic changes.
|
|
|
|
|
|
before generic powerpc. Suggested by Rafael ��vila de Esp��ndola.
|
|
Debian. Taken from gnupg-1.3.
* longlong.h: Added PowerPC 64 bit code from GPM-4.1.2 but didn't
enable it yet. Some whitespace changes in HPPA to fix assembler
problems on HP-UX. From gnupg 1.3
* mpiutil.c (_gcry_mpi_alloc_limb_space): Better allocate
something even if NLIMBS is passed as 0.
* config.links: Updated system list to match gnupg 1.3.
|
|
gpg_strerror.
Solved a few conflicts.
|
|
|
|
* Makefile.am: Revamped to better handle modules
* configure.ac: Adjusted for new MPI module stuff.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|