modulus_mul_int_naive< V > Struct Template Reference

#include <modular_int.hpp>

List of all members.

Classes

Static Public Member Functions


Detailed Description

template<typename V>
struct mmx::modulus_mul_int_naive< V >

Definition at line 244 of file modular_int.hpp.


Member Function Documentation

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); }

static void mul_mod ( C dest,
const C s1,
const C s2,
const M &  m 
) [inline, static]

Definition at line 387 of file modular_int.hpp.

00387                                                           {
00388     dest = s1;
00389     mul_mod (dest, s2, m); }

static void mul_mod ( C dest,
const C s,
const M &  m,
C carry 
) [inline, static]

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   }

static void mul_mod ( C dest,
const C s,
const M &  m 
) [inline, static]

Definition at line 359 of file modular_int.hpp.

Referenced by modulus_mul_int_naive< modulus_add_int_naive< modulus_reduction_int_naive< modulus_normalization_int_naive< modulus_maximum_size_int< size > > > > >::mul_mod().

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   }


The documentation for this struct was generated from the following file:

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1