// Atributos
//private:
- chunk_type chunk;
+ mutable chunk_type chunk;
sign_type sign;
// Helpers
os << "+ ";
else
os << "- ";
- for (typename number< NN, EE >::const_reverse_iterator i = n.chunk.rbegin();
- i != n.chunk.rend(); ++i)
+ typename number< NN, EE >::const_reverse_iterator i = n.chunk.rbegin();
+ typename number< NN, EE >::const_reverse_iterator end = n.chunk.rend();
+ for (; i != end; ++i)
os << std::setfill('0') << std::setw(sizeof(NN) * 2) << std::hex
<< *i << " ";
return os;
template < typename N, typename E >
-void normalize_length(number< N, E >& u, number< N, E >& v)
+void normalize_length(const number< N, E >& u, const number< N, E >& v)
{
typedef number< N, E > num_type;
typename num_type::size_type max, p, t, pot2;
template < typename N, typename E >
number < N, E > naif(const number< N, E > &u, const number< N, E > &v)
{
+ normalize_length(u, v);
typedef number< N, E > num_type;
// tomo el chunk size de u (el de v DEBE ser el mismo)