changed: asm code in UInt::Add, UInt::AddInt, AddTwoInts
32 and 64 bits, much faster now added: tests for UInt::AddInt fixed: tests: test_lahf() returned incorrect value for 32bit platform git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@82 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -45,7 +45,8 @@
|
||||
|
||||
#include <ttmath/ttmath.h>
|
||||
|
||||
|
||||
using namespace ttmath;
|
||||
typedef ttmath::uint uuint;
|
||||
|
||||
|
||||
class UIntTest
|
||||
@@ -70,8 +71,11 @@ public:
|
||||
|
||||
void go();
|
||||
|
||||
template<unsigned int type_size>
|
||||
void test_add();
|
||||
template<uuint type_size> void test_add();
|
||||
template<uuint type_size> void test_addint();
|
||||
|
||||
template<uuint type_size> bool check_result_carry(const ttmath::UInt<type_size> & result, const ttmath::UInt<type_size> & new_result,
|
||||
int carry, int new_carry);
|
||||
|
||||
|
||||
int upper_char(int c);
|
||||
@@ -80,8 +84,10 @@ void skip_white_characters();
|
||||
bool read_method();
|
||||
void test_method();
|
||||
bool check_line();
|
||||
int read_int();
|
||||
|
||||
uuint read_uint();
|
||||
bool check_minmax_bits(int type_size);
|
||||
bool check_minmax_bits_bitperint(int type_size);
|
||||
bool check_end();
|
||||
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user