diff options
author | Jonas Allmann <jallmann@mozilla.com> | 2017-11-07 16:38:05 +0100 |
---|---|---|
committer | Jonas Allmann <jallmann@mozilla.com> | 2017-11-07 16:38:05 +0100 |
commit | 890c59c0ca42d2f0d7903941c46502d79ac60cf7 (patch) | |
tree | 588ef3359f787a73cd1cf4ad25354541a28db6ac /lib/freebl/mpi | |
parent | 1b92bbffd441265a54d59baa4561b0b4f3fc47a6 (diff) | |
download | nss-hg-890c59c0ca42d2f0d7903941c46502d79ac60cf7.tar.gz |
Bug 1259061, removed MP_MEMCPY from libmpi, r=franziskus
Reviewers: franziskus
Reviewed By: franziskus
Bug #: 1259061
Differential Revision: https://phabricator.services.mozilla.com/D204
Diffstat (limited to 'lib/freebl/mpi')
-rw-r--r-- | lib/freebl/mpi/README | 3 | ||||
-rw-r--r-- | lib/freebl/mpi/mpi-config.h | 4 | ||||
-rw-r--r-- | lib/freebl/mpi/mpi.c | 7 |
3 files changed, 0 insertions, 14 deletions
diff --git a/lib/freebl/mpi/README b/lib/freebl/mpi/README index 42cbe60ff..cf4302758 100644 --- a/lib/freebl/mpi/README +++ b/lib/freebl/mpi/README @@ -502,9 +502,6 @@ MP_LOGTAB - If true, the file "logtab.h" is included, which the library includes <math.h> and uses log(). This typically forces you to link against math libraries. -MP_MEMCPY - If true, use memcpy() to copy buffers. If you run - into weird alignment bugs, set this to zero and an - explicit loop will be used. MP_ARGCHK - Set to 0, 1, or 2. This defines how the argument checking macro, ARGCHK(), gets expanded. If this diff --git a/lib/freebl/mpi/mpi-config.h b/lib/freebl/mpi/mpi-config.h index fe90d5a19..0cc868a14 100644 --- a/lib/freebl/mpi/mpi-config.h +++ b/lib/freebl/mpi/mpi-config.h @@ -28,10 +28,6 @@ #define MP_LOGTAB 1 /* use table of logs instead of log()? */ #endif -#ifndef MP_MEMCPY -#define MP_MEMCPY 1 /* use memcpy() to copy buffers? */ -#endif - #ifndef MP_ARGCHK /* 0 = no parameter checks diff --git a/lib/freebl/mpi/mpi.c b/lib/freebl/mpi/mpi.c index 199d21440..ae404019d 100644 --- a/lib/freebl/mpi/mpi.c +++ b/lib/freebl/mpi/mpi.c @@ -2793,14 +2793,7 @@ s_mp_setz(mp_digit *dp, mp_size count) void s_mp_copy(const mp_digit *sp, mp_digit *dp, mp_size count) { -#if MP_MEMCPY == 0 - int ix; - - for (ix = 0; ix < count; ix++) - dp[ix] = sp[ix]; -#else memcpy(dp, sp, count * sizeof(mp_digit)); -#endif } /* end s_mp_copy() */ /* }}} */ |