added samples/uint.cpp samples/int.cpp samples/Makefile

changed Int::Div -- a remainder is not returning now but taking as a parameter (a pointer or reference)
changed order in parameters in UInt::AddTwoInts
added Int::AddInt
added Int::AddTwoInts
added Int::SubInt
changed Int::AddOne and Int::SubOne (much faster now)
fixed a bug in UInt::operator--() and Int::operator--() (there was adding instead of subtracting)


git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@13 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2007-02-05 17:40:23 +00:00
parent b59de36095
commit b4bf76065c
6 changed files with 351 additions and 75 deletions

30
samples/Makefile Normal file
View File

@@ -0,0 +1,30 @@
CC = g++
CFLAGS = -Wall -pedantic -s -O2 -I..
.SUFFIXES: .cpp .o
.cpp.o:
$(CC) -c $(CFLAGS) $<
all: uint int
uint: uint.o
$(CC) -o uint $(CFLAGS) uint.o
int: int.o
$(CC) -o int $(CFLAGS) int.o
uint.o: uint.cpp
int.o: int.cpp
clean:
rm -f *.o
rm -f *.s
rm -f uint
rm -f int
rm -f *.exe