added: UInt::operator>>(int)
UInt::operator>>=(int) UInt::operator<<(int) UInt::operator<<=(int) git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@250 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
2d821bbad9
commit
de150d00ec
|
@ -66,6 +66,10 @@ Version 0.9.0 prerelease (2009.11.24):
|
|||
asm_gcc_64 - with asm for GCC (64 bit)
|
||||
no_asm_32 - pure C++ version (32 bit) - without any asm code
|
||||
no_asm_64 - pure C++ version (64 bit) - without any asm code
|
||||
* added: UInt::operator>>(int)
|
||||
UInt::operator>>=(int)
|
||||
UInt::operator<<(int)
|
||||
UInt::operator<<=(int)
|
||||
* changed: Factorial() is using the Gamma() function now
|
||||
* changed: Big::Div(ss2)
|
||||
Big::Mod(ss2)
|
||||
|
|
|
@ -3242,7 +3242,40 @@ public:
|
|||
}
|
||||
|
||||
|
||||
UInt<value_size> operator>>(int move)
|
||||
{
|
||||
UInt<value_size> temp( *this );
|
||||
|
||||
temp.Rcr(move);
|
||||
|
||||
return temp;
|
||||
}
|
||||
|
||||
|
||||
UInt<value_size> & operator>>=(int move)
|
||||
{
|
||||
Rcr(move);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
UInt<value_size> operator<<(int move)
|
||||
{
|
||||
UInt<value_size> temp( *this );
|
||||
|
||||
temp.Rcl(move);
|
||||
|
||||
return temp;
|
||||
}
|
||||
|
||||
|
||||
UInt<value_size> & operator<<=(int move)
|
||||
{
|
||||
Rcl(move);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in New Issue