Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1311175 - Remove inline keyword from mpi.c functions as they are …
…used outside this file. r=ttaubert
  • Loading branch information
David Major committed Oct 27, 2016
1 parent cfa27e4 commit 550838c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lib/freebl/mpi/mpi.c
Expand Up @@ -19,10 +19,6 @@
#undef MP_ASSEMBLY_SQUARE
#endif

#if defined(_MSC_VER) && _MSC_VER < 1900
#define inline __inline
#endif

#if MP_LOGTAB
/*
A table of the logs of 2 for various bases (the 0 and 1 entries of
Expand Down Expand Up @@ -2761,7 +2757,7 @@ s_mp_pad(mp_int *mp, mp_size min)
/* {{{ s_mp_setz(dp, count) */

/* Set 'count' digits pointed to by dp to be zeroes */
inline void
void
s_mp_setz(mp_digit *dp, mp_size count)
{
#if MP_MEMSET == 0
Expand All @@ -2780,7 +2776,7 @@ s_mp_setz(mp_digit *dp, mp_size count)
/* {{{ s_mp_copy(sp, dp, count) */

/* Copy 'count' digits from sp to dp */
inline void
void
s_mp_copy(const mp_digit *sp, mp_digit *dp, mp_size count)
{
#if MP_MEMCPY == 0
Expand All @@ -2798,7 +2794,7 @@ s_mp_copy(const mp_digit *sp, mp_digit *dp, mp_size count)
/* {{{ s_mp_alloc(nb, ni) */

/* Allocate ni records of nb bytes each, and return a pointer to that */
inline void *
void *
s_mp_alloc(size_t nb, size_t ni)
{
return calloc(nb, ni);
Expand All @@ -2810,7 +2806,7 @@ s_mp_alloc(size_t nb, size_t ni)
/* {{{ s_mp_free(ptr) */

/* Free the memory pointed to by ptr */
inline void
void
s_mp_free(void *ptr)
{
if (ptr) {
Expand All @@ -2823,7 +2819,7 @@ s_mp_free(void *ptr)
/* {{{ s_mp_clamp(mp) */

/* Remove leading zeroes from the given value */
inline void
void
s_mp_clamp(mp_int *mp)
{
mp_size used = MP_USED(mp);
Expand Down

0 comments on commit 550838c

Please sign in to comment.