summaryrefslogtreecommitdiff
path: root/math/modMulIterativ.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'math/modMulIterativ.cpp')
-rw-r--r--math/modMulIterativ.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/math/modMulIterativ.cpp b/math/modMulIterativ.cpp
deleted file mode 100644
index 611f09a..0000000
--- a/math/modMulIterativ.cpp
+++ /dev/null
@@ -1,9 +0,0 @@
-ll mulMod(ll a, ll b, ll n) {
- ll res = 0;
- while (b > 0) {
- if (b & 1) res = (a + res) % n;
- a = (a * 2) % n;
- b /= 2;
- }
- return res;
-}