From b09e6b5c0fafd68468e93f847e0fbd20b49aa5be Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sun, 11 Oct 2020 21:16:15 +0900 Subject: [PATCH] Rename `store` to `update` --- src/modint.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modint.rs b/src/modint.rs index 0445de9..8aa5220 100644 --- a/src/modint.rs +++ b/src/modint.rs @@ -355,7 +355,7 @@ impl DynamicModInt { if modulus == 0 { panic!("the modulus must not be 0"); } - I::companion_barrett().store(modulus); + I::companion_barrett().update(modulus); } /// Creates a new `DynamicModInt`. @@ -478,7 +478,7 @@ impl Barrett { } #[inline] - fn store(&self, m: u32) { + fn update(&self, m: u32) { let im = (-1i64 as u64 / m as u64).wrapping_add(1); self.m.store(m, atomic::Ordering::SeqCst); self.im.store(im, atomic::Ordering::SeqCst);