modulus_encoding_integer_naive< V > Struct Template Reference

#include <modular_integer.hpp>

List of all members.

Static Public Member Functions


Detailed Description

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

Definition at line 139 of file modular_integer.hpp.


Member Function Documentation

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

Definition at line 152 of file modular_integer.hpp.

00152                                                {
00153     (void) m;
00154     dest = s; }

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

Definition at line 141 of file modular_integer.hpp.

00141                                                {
00142     if (s < 0 && m.p != 0) {
00143       dest = - s;
00144       V::reduce_mod (dest, m);
00145       dest = m.p - dest;
00146     }
00147     else
00148       dest = s;
00149       V::reduce_mod (dest, m);
00150   }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1