mulmod.h | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 0 | 16 | 0.0 |
line | true | false | branch |
---|---|---|---|
131 | 0 | 0 | if (a >= n) a %= n; |
132 | 0 | 0 | if (n < HALF_WORD) { |
133 | 0 | 0 | while (k) { |
134 | 0 | 0 | if (k & 1) t = (t*a)%n; |
136 | 0 | 0 | if (k) a = (a*a)%n; |
139 | 0 | 0 | while (k) { |
140 | 0 | 0 | if (k & 1) t = mulmod(t, a, n); |
142 | 0 | 0 | if (k) a = sqrmod(a, n); |