mul_mod_helper< C, D > Struct Template Reference

#include <modular_int.hpp>

List of all members.

Static Public Member Functions


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]

Definition at line 248 of file modular_int.hpp.

References mmx::C.

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

00248                                                             {
00249       D a (dest);       
00250       a *= s;
00251       if (p != 0) a %= p;
00252       dest = (C) a;
00253     }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1