numerix_doc 0.4
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 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().

                                            {
    if (is_signed_helper<C>::value) {
      typedef typename unsigned_of_helper<C>::type uC;
      uC t = dest;
      mul_mod (t, (uC) s, m);
      dest = t;
    }
    else {
      typedef typename unsigned_int_with_double_size_helper<C>::type D;
      mul_mod_helper<C,D>::op (dest, s, m.p);
    }
  }
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.

                                                                    {
    dest = s1;
    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.

                                                          {
    dest = s1;
    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.

                                                      {
    if (is_signed_helper<C>::value) {
      typedef typename unsigned_of_helper<C>::type uC;
      uC t = dest, ucarry= carry;
      mul_mod (t, (uC) s, m, ucarry);
      dest = t; carry= ucarry;
    }
    else {
      typedef typename unsigned_int_with_double_size_helper<C>::type D;
      mul_mod_helper<C,D>::op (dest, s, m.p, carry);
    }
  }

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines