Skip to content

Commit

Permalink
Simplify uint::modular submodule names (#299)
Browse files Browse the repository at this point in the history
Removes redundant `const_` and `runtime_` prefixes which already exist
on their parent modules.
  • Loading branch information
tarcieri authored Nov 22, 2023
1 parent 650d927 commit 6389c77
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/uint/modular/constant_mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//! Implements `Residue`s, supporting modular arithmetic with a constant modulus.
mod const_add;
mod const_inv;
mod const_mul;
mod const_neg;
mod const_pow;
mod const_sub;
mod add;
mod inv;
mod mul;
mod neg;
mod pow;
mod sub;

use super::{div_by_2::div_by_2, reduction::montgomery_reduction, Retrieve};
use crate::{Limb, Uint, Zero};
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/uint/modular/runtime_mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//! Implements `DynResidue`s, supporting modular arithmetic with a modulus set at runtime.
mod runtime_add;
mod runtime_inv;
mod runtime_mul;
mod runtime_neg;
mod runtime_pow;
mod runtime_sub;
mod add;
mod inv;
mod mul;
mod neg;
mod pow;
mod sub;

use super::{
constant_mod::{Residue, ResidueParams},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6389c77

Please sign in to comment.