add_mod_helper< C, b > Struct Template Reference

#include <modular_int.hpp>

List of all members.

Static Public Member Functions


Detailed Description

template<typename V>
template<typename C, bool b>
struct mmx::modulus_add_int_naive< V >::add_mod_helper< C, b >

Definition at line 154 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 162 of file modular_int.hpp.

References modulus_add_int_naive< V >::add_mod_without_overflow().

00162                                                    {
00163       typedef typename unsigned_of_helper<C>::type uC;
00164       uC t = dest, up = p, us = s, ucarry= carry;
00165       add_mod_without_overflow (t, us, up, ucarry);
00166       dest = t; carry= ucarry; }

static void op ( C dest,
const C s,
const C p 
) [inline, static]

Definition at line 156 of file modular_int.hpp.

References modulus_add_int_naive< V >::add_mod_without_overflow().

00156                                          {
00157       typedef typename unsigned_of_helper<C>::type uC;
00158       uC t = dest, up = p, us = s;
00159       add_mod_without_overflow (t, us, up);
00160       dest = t; }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1