modulus_normalization_int_naive< V > Struct Template Reference

#include <modular_int.hpp>

List of all members.

Static Public Member Functions


Detailed Description

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

Definition at line 63 of file modular_int.hpp.


Member Function Documentation

static bool normalize ( C p  )  [inline, static]

Definition at line 66 of file modular_int.hpp.

00066                    {
00067     typedef typename unsigned_of_helper<C>::type uC;
00068     static const uC a = MMX_SAFE_LEFT_SHIFT_INT(uC, 1,
00069                          V::template maximum_size_helper<C>::value);
00070     p = abs (p);
00071     if ((uC) p == a || p == 0) { p = a; return true; }
00072     return p <= V::template maximum_value_helper<C>::dyn_value ();
00073   }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1