#include <modular_int.hpp>
Definition at line 244 of file modular_int.hpp.
static void mul_mod | ( | C & | dest, | |
const C & | s1, | |||
const C & | s2, | |||
const M & | m, | |||
C & | carry | |||
) | [inline, static] |
Definition at line 392 of file modular_int.hpp.
00392 { 00393 dest = s1; 00394 mul_mod (dest, s2, m, carry); }
Definition at line 387 of file modular_int.hpp.
00387 { 00388 dest = s1; 00389 mul_mod (dest, s2, m); }
Definition at line 373 of file modular_int.hpp.
00373 { 00374 if (is_signed_helper<C>::value) { 00375 typedef typename unsigned_of_helper<C>::type uC; 00376 uC t = dest, ucarry= carry; 00377 mul_mod (t, (uC) s, m, ucarry); 00378 dest = t; carry= ucarry; 00379 } 00380 else { 00381 typedef typename unsigned_int_with_double_size_helper<C>::type D; 00382 mul_mod_helper<C,D>::op (dest, s, m.p, carry); 00383 } 00384 }
Definition at line 359 of file modular_int.hpp.
00359 { 00360 if (is_signed_helper<C>::value) { 00361 typedef typename unsigned_of_helper<C>::type uC; 00362 uC t = dest; 00363 mul_mod (t, (uC) s, m); 00364 dest = t; 00365 } 00366 else { 00367 typedef typename unsigned_int_with_double_size_helper<C>::type D; 00368 mul_mod_helper<C,D>::op (dest, s, m.p); 00369 } 00370 }