template < typename N, typename E >
number< N, E >& number< N, E >::operator*= (const number< N, E >& n)
{
- number < N, E > r_op = n;
- normalize_length(n);
- n.normalize_length(*this);
- *this = divide_n_conquer(*this, n);
+ //number < N, E > r_op = n;
+ //normalize_length(n);
+ //n.normalize_length(*this);
+ *this = naif(*this, n);
return *this;
}
template < typename N, typename E >
number< N, E > operator* (const number< N, E >& n1, const number< N, E >& n2)
{
- number< N, E > tmp = n1;
- tmp *= n2;
- return tmp;
+ return naif(n1, n2);
}
template < typename N, typename E >
//unsigned buf[3] = { 0xffffffff, 0x1, 0 };
number<> nu(buf, 4);
//number< unsigned > nu2(nu);
- number<> nu2 = 1u;
+ number<> nu2 = 2u;
std::cout << "nu = " << nu << "\n\n";
std::cout << "nu2 = " << nu2 << "\n\n";
std::cout << "nu + nu2 = " << nu + nu2 << "\n\n";
+ std::cout << "nu * nu2 = " << nu * nu2 << "\n\n";
#endif
#if 0