@@ -107,7 +107,7 @@ static inline void _mpd_qpow_uint(mpd_t *result, const mpd_t *base,
107107 mpd_uint_t exp , uint8_t resultsign ,
108108 const mpd_context_t * ctx , uint32_t * status );
109109
110- mpd_uint_t mpd_qsshiftr (mpd_t * result , const mpd_t * a , mpd_ssize_t n );
110+ static mpd_uint_t mpd_qsshiftr (mpd_t * result , const mpd_t * a , mpd_ssize_t n );
111111
112112
113113/******************************************************************************/
@@ -2301,7 +2301,7 @@ _mpd_get_rnd(const mpd_uint_t *data, mpd_ssize_t len, int use_msd)
23012301 * It is the caller's responsibility to ensure that the coefficient is big
23022302 * enough. The function cannot fail.
23032303 */
2304- mpd_uint_t
2304+ static mpd_uint_t
23052305mpd_qsshiftr (mpd_t * result , const mpd_t * a , mpd_ssize_t n )
23062306{
23072307 mpd_uint_t rnd ;
@@ -5123,7 +5123,7 @@ _karatsuba_rec(mpd_uint_t *c, const mpd_uint_t *a, const mpd_uint_t *b,
51235123 * to the result or NULL in case of failure (malloc error).
51245124 * Conditions: ulen >= vlen, ulen >= 4
51255125 */
5126- mpd_uint_t *
5126+ static mpd_uint_t *
51275127_mpd_kmul (const mpd_uint_t * u , const mpd_uint_t * v ,
51285128 mpd_size_t ulen , mpd_size_t vlen ,
51295129 mpd_size_t * rsize )
@@ -5208,7 +5208,7 @@ _mpd_set_control87(unsigned short cw)
52085208}
52095209#endif
52105210
5211- unsigned int
5211+ static unsigned int
52125212mpd_set_fenv (void )
52135213{
52145214 unsigned int cw ;
@@ -5228,7 +5228,7 @@ mpd_set_fenv(void)
52285228 return cw ;
52295229}
52305230
5231- void
5231+ static void
52325232mpd_restore_fenv (unsigned int cw )
52335233{
52345234#ifdef _MSC_VER
@@ -5246,7 +5246,7 @@ mpd_restore_fenv(unsigned int cw)
52465246 * Multiply u and v, using the fast number theoretic transform. Returns
52475247 * a pointer to the result or NULL in case of failure (malloc error).
52485248 */
5249- mpd_uint_t *
5249+ static mpd_uint_t *
52505250_mpd_fntmul (const mpd_uint_t * u , const mpd_uint_t * v ,
52515251 mpd_size_t ulen , mpd_size_t vlen ,
52525252 mpd_size_t * rsize )
@@ -5432,7 +5432,7 @@ _karatsuba_rec_fnt(mpd_uint_t *c, const mpd_uint_t *a, const mpd_uint_t *b,
54325432 * base case. Returns a pointer to the result or NULL in case of failure
54335433 * (malloc error). Conditions: ulen >= vlen, ulen >= 4.
54345434 */
5435- mpd_uint_t *
5435+ static mpd_uint_t *
54365436_mpd_kmul_fnt (const mpd_uint_t * u , const mpd_uint_t * v ,
54375437 mpd_size_t ulen , mpd_size_t vlen ,
54385438 mpd_size_t * rsize )
0 commit comments