aboutsummaryrefslogtreecommitdiffstats
path: root/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1997-11-27 11:44:13 +0000
committerWerner Koch <[email protected]>1997-11-27 11:44:13 +0000
commit649eae8f1b689e90695bbf24b636ca941dfb9689 (patch)
tree60b137945a1dc6a64dd5846864229c33dc86cf49 /mpi/mpi-internal.h
parentHow with some assembly support (diff)
downloadgnupg-649eae8f1b689e90695bbf24b636ca941dfb9689.tar.gz
gnupg-649eae8f1b689e90695bbf24b636ca941dfb9689.zip
Improved prime number test
Diffstat (limited to 'mpi/mpi-internal.h')
-rw-r--r--mpi/mpi-internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mpi/mpi-internal.h b/mpi/mpi-internal.h
index 2748ddad9..93ed688ae 100644
--- a/mpi/mpi-internal.h
+++ b/mpi/mpi-internal.h
@@ -54,6 +54,13 @@ typedef int mpi_size_t; /* (must be a signed type) */
(d)[_i] = (s)[_i]; \
} while(0)
+#define MPN_COPY_INCR( d, s, n) \
+ do { \
+ mpi_size_t _i; \
+ for( _i = 0; _i < (n); _i++ ) \
+ (d)[_i] = (d)[_i]; \
+ } while (0)
+
#define MPN_COPY_DECR( d, s, n ) \
do { \
mpi_size_t _i; \