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,31 +1,31 @@
|
||||
CC = g++
|
||||
o = main.o uinttest.o
|
||||
CFLAGS = -Wall -pedantic
|
||||
ttmath = /d/roboczy/prog/ttmath
|
||||
name = tests
|
||||
|
||||
|
||||
|
||||
.SUFFIXES: .cpp .o
|
||||
|
||||
.cpp.o:
|
||||
$(CC) -c $(CFLAGS) -I$(ttmath) $<
|
||||
|
||||
|
||||
all: $(name)
|
||||
|
||||
|
||||
$(name): $(o)
|
||||
$(CC) -o $(name) $(CFLAGS) -I$(ttmath) $(o)
|
||||
|
||||
|
||||
main.o: main.cpp uinttest.h
|
||||
uinttest.o: uinttest.cpp uinttest.h
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f $(name)
|
||||
rm -f $(name).exe
|
||||
|
||||
|
||||
CC = g++
|
||||
o = main.o uinttest.o
|
||||
CFLAGS = -Wall -pedantic
|
||||
ttmath = ..
|
||||
name = tests
|
||||
|
||||
|
||||
|
||||
.SUFFIXES: .cpp .o
|
||||
|
||||
.cpp.o:
|
||||
$(CC) -c $(CFLAGS) -I$(ttmath) $<
|
||||
|
||||
|
||||
all: $(name)
|
||||
|
||||
|
||||
$(name): $(o)
|
||||
$(CC) -o $(name) $(CFLAGS) -I$(ttmath) $(o)
|
||||
|
||||
|
||||
main.o: main.cpp uinttest.h
|
||||
uinttest.o: uinttest.cpp uinttest.h
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f $(name)
|
||||
rm -f $(name).exe
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user