Skip to content

Generalize the few functions that are not common across all the core integer modules #2239

Closed
@brson

Description

@brson

The uint/int/i8 etc modules mostly share the same code but there are a few functions that are still specific to a single module. It should be possible to move these to the int-template or uint-template module as appropriate so they can be used for all integer types.

These are they:

  • int::{ hash, parse_buf, from_str, to_str, str, pow }
  • uint::{ div_ceil, div_round, div_floor, hash, iterate }
  • uint::{ next_power_of_two, parse_buf, from_str, to_str, str }
  • u64::{ to_str, str, from_str }

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions