@@ -355,8 +355,9 @@ function pow5invsplit_lookup end
355
355
for T in (Float64, Float32, Float16)
356
356
e2_max = exponent_max (T) - precision (T) - 2
357
357
i_max = log10pow2 (e2_max)
358
- table = Any[pow5invsplit (T, i) for i = 0 : i_max]
359
- @eval pow5invsplit_lookup (:: Type{$T} , i) = @inbounds ($ table[i+ 1 ])
358
+ table_sym = Symbol (" pow5invsplit_table_" , string (T))
359
+ @eval const $ table_sym = Tuple (Any[pow5invsplit ($ T, i) for i = 0 : $ i_max])
360
+ @eval pow5invsplit_lookup (:: Type{$T} , i) = @inbounds ($ table_sym[i+ 1 ])
360
361
end
361
362
362
363
@@ -382,8 +383,9 @@ function pow5split_lookup end
382
383
for T in (Float64, Float32, Float16)
383
384
e2_min = 1 - exponent_bias (T) - significand_bits (T) - 2
384
385
i_max = 1 - e2_min - log10pow5 (- e2_min)
385
- table = Any[pow5split (T, i) for i = 0 : i_max]
386
- @eval pow5split_lookup (:: Type{$T} , i) = @inbounds ($ table[i+ 1 ])
386
+ table_sym = Symbol (" pow5split_table_" , string (T))
387
+ @eval const $ table_sym = Tuple (Any[pow5split ($ T, i) for i = 0 : $ i_max])
388
+ @eval pow5split_lookup (:: Type{$T} , i) = @inbounds ($ table_sym[i+ 1 ])
387
389
end
388
390
389
391
const DIGIT_TABLE = UInt8[
0 commit comments