mul_mod_helper< C, D > Struct Template Reference
#include <modular_int.hpp>
List of all members.
Static Public Member Functions
- static void op (C &dest, const C &s, const C &p)
- static void op (C &dest, const C &s, const C &p, C &carry)
Detailed Description
template<typename V>
template<typename C, typename D>
struct mmx::modulus_mul_int_naive< V >::mul_mod_helper< C, D >
Definition at line 247 of file modular_int.hpp.
Member Function Documentation
static void op |
( |
C & |
dest, |
|
|
const C & |
s, |
|
|
const C & |
p, |
|
|
C & |
carry | |
|
) |
| | [inline, static] |
Definition at line 254 of file modular_int.hpp.
References mmx::C.
00254 {
00255 D a (dest);
00256 a = a * s + carry;
00257 if (p != 0) { carry= a / p; a %= p; }
00258 dest = (C) a;
00259 }
static void op |
( |
C & |
dest, |
|
|
const C & |
s, |
|
|
const C & |
p | |
|
) |
| | [inline, static] |
The documentation for this struct was generated from the following file: