added: 'constgen' directory -- there is a program there to generate some constants used in ttmathbig.h
changed: the size of built-in variables (constants) in ttmathbig.h now they consist of 256 32bit words macro TTMATH_BUILTIN_VARIABLES_SIZE is equal: 256u on a 32bit platform and 128ul on a 64bit platform added: macro CONSTANTSGENERATOR which is useful for generating constants (it's used by 'gen' program in 'constgen' directory) after declaring this macro the methods: ExpSurrounding0() and LnSurrounding1() will be public visible and the inner loop can do more iterations than TTMATH_ARITHMETIC_MAX_LOOP changed: in methods: ExpSurrounding0() and LnSurrounding1() - the way of comparising with the last word (now we're comparing not with the last state but with a state from a few words back) git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@105 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* This file is a part of TTMath Mathematical Library
|
||||
* This file is a part of TTMath Bignum Library
|
||||
* and is distributed under the (new) BSD licence.
|
||||
* Author: Tomasz Sowa <t.sowa@slimaczek.pl>
|
||||
*/
|
||||
@@ -61,51 +61,6 @@ int main()
|
||||
using namespace ttmath;
|
||||
|
||||
|
||||
/*
|
||||
Int<300> uu, oo;
|
||||
|
||||
uu = -2;
|
||||
oo = 5;
|
||||
|
||||
uint ccc = uu.Pow(oo);
|
||||
|
||||
if( ccc )
|
||||
std::cout << "carry: " << ccc << std::endl;
|
||||
else
|
||||
std::cout << uu << std::endl;
|
||||
return 0;
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
UInt<2> w = 100;
|
||||
w.GetBit(64);
|
||||
std::cout << w << std::endl;
|
||||
|
||||
return 0;
|
||||
*/
|
||||
|
||||
/*
|
||||
uint q = 100;
|
||||
uint last = UInt<3>::SetBitInWord(q, 3);
|
||||
std::cout << "nowa wartosc: " << q << ", wczesniejszy bit: " << last << std::endl;
|
||||
return 0;
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
Big<1, 3> a = -26;
|
||||
Int<3> b = -8;
|
||||
|
||||
uint c = a.Pow(b);
|
||||
|
||||
if ( c )
|
||||
std::cout << "carry: " << c << std::endl;
|
||||
else
|
||||
std::cout << a << std::endl;
|
||||
return 0;
|
||||
*/
|
||||
|
||||
test_uint();
|
||||
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* This file is a part of TTMath Mathematical Library
|
||||
* This file is a part of TTMath Bignum Library
|
||||
* and is distributed under the (new) BSD licence.
|
||||
* Author: Tomasz Sowa <t.sowa@slimaczek.pl>
|
||||
*/
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* This file is a part of TTMath Mathematical Library
|
||||
* This file is a part of TTMath Bignum Library
|
||||
* and is distributed under the (new) BSD licence.
|
||||
* Author: Tomasz Sowa <t.sowa@slimaczek.pl>
|
||||
*/
|
||||
|
Reference in New Issue
Block a user