arkworks-rs / arkworks-rs/std

Rename `log2` to `log2_of_next_power_of_two`

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
42
Forks
45
PR merge metrics
No merged PRs in 30d

Description

Currently, there is a lot of ambiguity in the naming, requiring downstream user to check the original def to get confirmation of what it does. This makes it much clearer.

There is also precedent in the naming in usize methods, for the function `next_power_of_two`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the repository for the `log2` definition and every call site; the issue provides no file or test path. Rename the function to `log2_of_next_power_of_two`, update references, and verify the Rust project's existing checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.