_dynamic_inverse_helper< C, D > Struct Template Reference

#include <modular_int.hpp>

List of all members.

Public Types

Static Public Member Functions

Static Public Attributes


Detailed Description

template<typename V>
template<typename C, typename D>
struct mmx::modulus_mul_int_preinverse< V >::_dynamic_inverse_helper< C, D >

Definition at line 536 of file modular_int.hpp.


Member Typedef Documentation

Definition at line 537 of file modular_int.hpp.

typedef unsigned_of_helper<D>::type uD

Definition at line 538 of file modular_int.hpp.


Member Function Documentation

static uC op ( const uC p,
nat  r,
nat  s,
nat  t 
) [inline, static]

Definition at line 542 of file modular_int.hpp.

References _dynamic_inverse_helper< C, D >::m.

Referenced by modulus_mul_int_preinverse< modulus_add_int_naive< modulus_reduction_int_naive< modulus_normalization_int_naive< modulus_maximum_size_int< m > > > > >::dyn_q(), and _dynamic_inverse_helper< C, void >::op().

00542                                           {
00543       (void) r;
00544       if (p == 1 && s+t == (nat) -1) return 0; // only case when s+t < 0
00545       uD loc_p = (p == 0) ? ((uD) 1) << m : (uD) ((uC) p);
00546       return (((uD) 1) << (s+t)) / loc_p; }


Member Data Documentation

const nat m = V::template maximum_size_helper<C>::value [static]

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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1