Skip to content

Commit 2e98817

Browse files
committed
FIX: removing use of INLINE in some functions to avoid compilers warnings of type:
*** is static but used in inline function *** which is not static
1 parent db51a20 commit 2e98817

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/core/f-deci.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static const REBCNT P26_1[] = {3825205247u, 3704098002u, 5421010u};
120120
Computes max decimal shift left for nonzero significand a with length 3;
121121
using double arithmetic;
122122
*/
123-
INLINE REBINT max_shift_left (const REBCNT a[]) {
123+
REBINT max_shift_left (const REBCNT a[]) {
124124
REBINT i;
125125
i = (REBINT)(log10((a[2] * two_to_32 + a[1]) * two_to_32 + a[0]) + 0.5);
126126
return m_cmp (3, P[i], a) <= 0 ? 25 - i : 26 - i;
@@ -161,7 +161,7 @@ static const REBCNT Q[][6] = {
161161
to fit length 3;
162162
using double arithmetic;
163163
*/
164-
INLINE REBINT min_shift_right (const REBCNT a[6]) {
164+
REBINT min_shift_right (const REBCNT a[6]) {
165165
REBINT i;
166166
if (m_cmp (6, a, P26) < 0) return 0;
167167
i = (REBINT) (log10 (
@@ -281,7 +281,7 @@ INLINE void m_multiply_1 (REBINT n, REBCNT p[], const REBCNT a[], REBCNT b) {
281281
a must be longer than the complete result;
282282
n is the initial length of a;
283283
*/
284-
INLINE void dsl (REBINT n, REBCNT a[], REBINT shift) {
284+
void dsl (REBINT n, REBCNT a[], REBINT shift) {
285285
REBINT shift1;
286286
for (; shift > 0; shift -= shift1) {
287287
shift1 = 9 <= shift ? 9 : shift;
@@ -335,7 +335,7 @@ INLINE REBCNT m_divide_1 (REBINT n, REBCNT q[], const REBCNT a[], REBCNT b) {
335335
2 - exactly half of the least significant unit truncated
336336
3 - more than half of the least significant unit truncated
337337
*/
338-
INLINE void dsr (REBINT n, REBCNT a[], REBINT shift, REBINT *t_flag) {
338+
void dsr (REBINT n, REBCNT a[], REBINT shift, REBINT *t_flag) {
339339
REBCNT remainder, divisor;
340340
REBINT shift1;
341341
for (; shift > 0; shift -= shift1) {
@@ -563,7 +563,7 @@ deci decimal_to_deci (REBDEC a) {
563563
ta is a truncate flag as described above;
564564
*f is supposed to be in range [-128; 127];
565565
*/
566-
INLINE void m_ldexp (REBCNT a[4], REBINT *f, REBINT e, REBINT ta) {
566+
void m_ldexp (REBCNT a[4], REBINT *f, REBINT e, REBINT ta) {
567567
/* take care of zero significand */
568568
if (m_is_zero (3, a)) {
569569
*f = 0;

0 commit comments

Comments
 (0)