I was looking through the code and I actually wonder about these tables.
|
// These tables are generated by PrintDoubleLookupTable. |
|
pub const DOUBLE_POW5_INV_SPLIT = [][]const u64{ |
|
[]const u64{ 1, 288230376151711744 }, []const u64{ 3689348814741910324, 230584300921369395 }, |
Does the [][]u64 notation mean that it goes through two pointers and that each row can be a different length? If so, wouldn't it then be better to have a [][2]u64 table? Or does it already compile down to that?
I was looking through the code and I actually wonder about these tables.
zig-ryu/src/ryu64_full_table.zig
Lines 18 to 20 in 724f66d
Does the
[][]u64notation mean that it goes through two pointers and that each row can be a different length? If so, wouldn't it then be better to have a [][2]u64 table? Or does it already compile down to that?