summaryrefslogtreecommitdiff
path: root/lib/freebl/mpi/mpi.c
diff options
context:
space:
mode:
authorJonas Allmann <jallmann@mozilla.com>2017-11-07 16:38:05 +0100
committerJonas Allmann <jallmann@mozilla.com>2017-11-07 16:38:05 +0100
commit890c59c0ca42d2f0d7903941c46502d79ac60cf7 (patch)
tree588ef3359f787a73cd1cf4ad25354541a28db6ac /lib/freebl/mpi/mpi.c
parent1b92bbffd441265a54d59baa4561b0b4f3fc47a6 (diff)
downloadnss-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/mpi.c')
-rw-r--r--lib/freebl/mpi/mpi.c7
1 files changed, 0 insertions, 7 deletions
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() */
/* }}} */