modulus_multiplier_int_preinverse_helper< size > Struct Template Reference

#include <multiplier.hpp>

List of all members.

Classes

Public Types

Static Public Member Functions


Detailed Description

template<nat size>
struct mmx::modulus_multiplier_int_preinverse_helper< size >

Definition at line 80 of file multiplier.hpp.


Member Typedef Documentation

Definition at line 81 of file multiplier.hpp.


Member Function Documentation

static void mul ( C dest,
const C src,
const M &  x,
const C presrc 
) [inline, static]

Definition at line 194 of file multiplier.hpp.

References multiplier_helper< C, D, m >::mul(), and mmx::value().

00194                                                            {
00195     static const nat m = size_helper::template maximum_size_helper<C>::value;
00196     typedef typename unsigned_of_helper<C>::type uC;
00197     typedef typename unsigned_int_with_double_size_helper<uC>::type uD;
00198     uC tmp = dest;
00199     multiplier_helper<uC,uD,m>::mul (tmp, (uC) src,
00200                                      (uC) x.p, x.r, (uC) presrc);
00201     dest = tmp; }

static void set ( C dest,
const C src,
const M &  x 
) [inline, static]

Definition at line 183 of file multiplier.hpp.

References multiplier_helper< C, D, m >::set(), mmx::value(), and mmx::x.

00183                                           {
00184     static const nat m = size_helper::template maximum_size_helper<C>::value;
00185     typedef typename unsigned_of_helper<C>::type uC;
00186     typedef typename unsigned_int_with_double_size_helper<uC>::type uD;
00187     uC tmp = dest;
00188     multiplier_helper<uC,uD,m>::set (tmp, (uC) src,
00189                                      (uC) x.p, (uC) x.q, 
00190                                      x.r, x.s, x.t);
00191     dest = tmp; }


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

Generated on 6 Dec 2012 for algebramix by  doxygen 1.6.1