@@ -49,7 +49,7 @@ pow5bits(e) = ((e * 1217359) >> 19) + 1
4949
5050Compute `(m * mul) >> j`, where `j >= 8*sizeof(U)`. The type of the results is the larger of `U` or `UInt32`.
5151"""
52- @inline function mulshift (m:: U , mul, j) where {U<: Unsigned }
52+ function mulshift (m:: U , mul, j) where {U<: Unsigned }
5353 W = widen (U)
5454 nbits = 8 * sizeof (U)
5555 return ((((W (m) * (mul % U)) >> nbits) + W (m) * (mul >> nbits)) >> (j - nbits)) % promote_type (U,UInt32)
@@ -64,7 +64,7 @@ lengthforindex(idx) = div(((Int64(16 * idx) * 1292913986) >> 32) + 1 + 16 + 8, 9
6464
6565Return `true` if `5^p` is a divisor of `x`.
6666"""
67- @inline function pow5 (x, p)
67+ function pow5 (x, p)
6868 x % (5 ^ p) == 0
6969end
7070
@@ -80,7 +80,7 @@ pow2(x, p) = (x & ((Int64(1) << p) - 1)) == 0
8080
8181The number of decimal digits of the integer `v`.
8282"""
83- @inline function decimallength (v)
83+ function decimallength (v)
8484 v >= 10000000000000000 && return 17
8585 v >= 1000000000000000 && return 16
8686 v >= 100000000000000 && return 15
@@ -99,7 +99,7 @@ The number of decimal digits of the integer `v`.
9999 v >= 10 && return 2
100100 return 1
101101end
102- @inline function decimallength (v:: UInt32 )
102+ function decimallength (v:: UInt32 )
103103 v >= 100000000 && return 9
104104 v >= 10000000 && return 8
105105 v >= 1000000 && return 7
@@ -110,23 +110,23 @@ end
110110 v >= 10 && return 2
111111 return 1
112112end
113- @inline function decimallength (v:: UInt16 )
113+ function decimallength (v:: UInt16 )
114114 v >= 10000 && return 5
115115 v >= 1000 && return 4
116116 v >= 100 && return 3
117117 v >= 10 && return 2
118118 return 1
119119end
120120
121- @inline function mulshiftinvsplit (:: Type{T} , mv, mp, mm, i, j) where {T}
121+ function mulshiftinvsplit (:: Type{T} , mv, mp, mm, i, j) where {T}
122122 mul = pow5invsplit_lookup (T, i)
123123 vr = mulshift (mv, mul, j)
124124 vp = mulshift (mp, mul, j)
125125 vm = mulshift (mm, mul, j)
126126 return vr, vp, vm
127127end
128128
129- @inline function mulshiftsplit (:: Type{T} , mv, mp, mm, i, j) where {T}
129+ function mulshiftsplit (:: Type{T} , mv, mp, mm, i, j) where {T}
130130 mul = pow5split_lookup (T, i)
131131 vr = mulshift (mv, mul, j)
132132 vp = mulshift (mp, mul, j)
139139
140140Compute `p = a*b` where `b = bLo + bHi<<64`, returning the result as `pLo, pHi` where `p = pLo + pHi<<128`.
141141"""
142- @inline function umul256 (a, bHi, bLo)
142+ function umul256 (a, bHi, bLo)
143143 aLo = a % UInt64
144144 aHi = (a >> 64 ) % UInt64
145145
@@ -169,14 +169,14 @@ end
169169
170170Compute `pHi = (a*b)>>128` where `b = bLo + bHi<<64`.
171171"""
172- @inline umul256_hi (a, bHi, bLo) = umul256 (a, bHi, bLo)[2 ]
172+ umul256_hi (a, bHi, bLo) = umul256 (a, bHi, bLo)[2 ]
173173
174174"""
175175 Ryu.mulshiftmod1e9(m, mula, mulb, mulc, j)::UInt32
176176
177177Compute `(m * mul) >> j % 10^9` where `mul = mula + mulb<<64 + mulc<<128`, and `j >= 128`.
178178"""
179- @inline function mulshiftmod1e9 (m, mula, mulb, mulc, j)
179+ function mulshiftmod1e9 (m, mula, mulb, mulc, j)
180180 b0 = UInt128 (m) * mula
181181 b1 = UInt128 (m) * mulb
182182 b2 = UInt128 (m) * mulc
@@ -188,7 +188,7 @@ Compute `(m * mul) >> j % 10^9` where `mul = mula + mulb<<64 + mulc<<128`, and `
188188 return (v % UInt32) - UInt32 (1000000000 ) * shifted
189189end
190190
191- @inline function append_sign (x, plus, space, buf, pos)
191+ function append_sign (x, plus, space, buf, pos)
192192 if signbit (x) && ! isnan (x) # suppress minus sign for signaling NaNs
193193 buf[pos] = UInt8 (' -' )
194194 pos += 1
202202 return pos
203203end
204204
205- @inline function append_n_digits (olength, digits, buf, pos)
205+ function append_n_digits (olength, digits, buf, pos)
206206 i = 0
207207 while digits >= 10000
208208 c = digits % 10000
230230 return pos + i
231231end
232232
233- @inline function append_d_digits (olength, digits, buf, pos, decchar)
233+ function append_d_digits (olength, digits, buf, pos, decchar)
234234 i = 0
235235 while digits >= 10000
236236 c = digits % 10000
261261 return pos + i
262262end
263263
264- @inline function append_c_digits (count, digits, buf, pos)
264+ function append_c_digits (count, digits, buf, pos)
265265 i = 0
266266 while i < count - 1
267267 c = (digits % 100 ) << 1
276276 return pos + i
277277end
278278
279- @inline function append_nine_digits (digits, buf, pos)
279+ function append_nine_digits (digits, buf, pos)
280280 if digits == 0
281281 for _ = 1 : 9
282282 buf[pos] = UInt8 (' 0' )
0 commit comments