numerix_doc 0.4
|
#include <modular_int.hpp>
Definition at line 63 of file modular_int.hpp.
static bool normalize | ( | C & | p | ) | [inline, static] |
Definition at line 66 of file modular_int.hpp.
{ typedef typename unsigned_of_helper<C>::type uC; static const uC a = MMX_SAFE_LEFT_SHIFT_INT(uC, 1, V::template maximum_size_helper<C>::value); p = abs (p); if ((uC) p == a || p == 0) { p = a; return true; } return p <= V::template maximum_value_helper<C>::dyn_value (); }