Skip to content

Table data layout question #1

@BarabasGitHub

Description

@BarabasGitHub

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions