changed: 64bit asm code didn't want to compile
there were used 'lahf' and 'sahf' instructions
probably they are supported in a new version of GCC
with '-msahf' option but GCC 4.2.1 has no such option
at the moment I'm using opcodes:
lahf -> 9f
sahf -> 9e
Warning! these instructions are not on all 64bit processors
from: http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
"Early Intel CPUs with Intel 64 lacked LAHF and SAHF instructions supported
by AMD64 until introduction of Pentium 4 G1 step in December 2005."
changed: UInt::Add on 64bit platform
changed: UInt::Add on 32bit platform (a little)
git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@80 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
1 parent
f8f324f98f
commit
ca51020fe6
7 files changed
+423
-417
No files matched your search
+52
-52
@@ -36,55 +36,55 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef headerfileuinttest
|
||||
#define headerfileuinttest
|
||||
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
#include <ttmath/ttmath.h>
|
||||
|
||||
|
||||
|
||||
|
||||
class UIntTest
|
||||
{
|
||||
|
||||
std::string file_name;
|
||||
|
||||
// current line from the file
|
||||
std::string line;
|
||||
const char * pline;
|
||||
|
||||
std::ifstream file;
|
||||
|
||||
|
||||
std::string method;
|
||||
|
||||
int row;
|
||||
|
||||
public:
|
||||
|
||||
void set_file_name(const std::string & f);
|
||||
|
||||
void go();
|
||||
|
||||
template<unsigned int type_size>
|
||||
void test_add();
|
||||
|
||||
|
||||
int upper_char(int c);
|
||||
bool is_white(int c);
|
||||
void skip_white_characters();
|
||||
bool read_method();
|
||||
void test_method();
|
||||
bool check_line();
|
||||
int read_int();
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
#ifndef headerfileuinttest
|
||||
#define headerfileuinttest
|
||||
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
#include <ttmath/ttmath.h>
|
||||
|
||||
|
||||
|
||||
|
||||
class UIntTest
|
||||
{
|
||||
|
||||
std::string file_name;
|
||||
|
||||
// current line from the file
|
||||
std::string line;
|
||||
const char * pline;
|
||||
|
||||
std::ifstream file;
|
||||
|
||||
|
||||
std::string method;
|
||||
|
||||
int row;
|
||||
|
||||
public:
|
||||
|
||||
void set_file_name(const std::string & f);
|
||||
|
||||
void go();
|
||||
|
||||
template<unsigned int type_size>
|
||||
void test_add();
|
||||
|
||||
|
||||
int upper_char(int c);
|
||||
bool is_white(int c);
|
||||
void skip_white_characters();
|
||||
bool read_method();
|
||||
void test_method();
|
||||
bool check_line();
|
||||
int read_int();
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user