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,63 +1,63 @@
|
||||
# Add
|
||||
|
||||
# min_bits max_bits a b result carry
|
||||
add 32 0 0 0 0 0
|
||||
add 32 0 1 1 2 0
|
||||
add 32 0 2342234 3563456 5905690 0
|
||||
add 32 0 254455 3453435 3707890 0
|
||||
add 32 0 4294967295 0 4294967295 0
|
||||
|
||||
# testing a carry for add
|
||||
add 32 32 4294967295 1 0 1
|
||||
add 32 32 4294967295 0 4294967295 0
|
||||
add 64 64 18446744073709551615 1 0 1
|
||||
add 64 64 18446744073709551615 0 18446744073709551615 0
|
||||
add 96 96 79228162514264337593543950335 1 0 1
|
||||
add 96 96 79228162514264337593543950335 0 79228162514264337593543950335 0
|
||||
add 128 128 340282366920938463463374607431768211455 1 0 1
|
||||
add 128 128 340282366920938463463374607431768211455 0 340282366920938463463374607431768211455 0
|
||||
add 160 160 1461501637330902918203684832716283019655932542975 1 0 1
|
||||
add 160 160 1461501637330902918203684832716283019655932542975 0 1461501637330902918203684832716283019655932542975 0
|
||||
add 192 192 6277101735386680763835789423207666416102355444464034512895 1 0 1
|
||||
add 192 192 6277101735386680763835789423207666416102355444464034512895 0 6277101735386680763835789423207666416102355444464034512895 0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Add
|
||||
|
||||
# min_bits max_bits a b result carry
|
||||
add 32 0 0 0 0 0
|
||||
add 32 0 1 1 2 0
|
||||
add 32 0 2342234 3563456 5905690 0
|
||||
add 32 0 254455 3453435 3707890 0
|
||||
add 32 0 4294967295 0 4294967295 0
|
||||
|
||||
# testing a carry for add
|
||||
add 32 32 4294967295 1 0 1
|
||||
add 32 32 4294967295 0 4294967295 0
|
||||
add 64 64 18446744073709551615 1 0 1
|
||||
add 64 64 18446744073709551615 0 18446744073709551615 0
|
||||
add 96 96 79228162514264337593543950335 1 0 1
|
||||
add 96 96 79228162514264337593543950335 0 79228162514264337593543950335 0
|
||||
add 128 128 340282366920938463463374607431768211455 1 0 1
|
||||
add 128 128 340282366920938463463374607431768211455 0 340282366920938463463374607431768211455 0
|
||||
add 160 160 1461501637330902918203684832716283019655932542975 1 0 1
|
||||
add 160 160 1461501637330902918203684832716283019655932542975 0 1461501637330902918203684832716283019655932542975 0
|
||||
add 192 192 6277101735386680763835789423207666416102355444464034512895 1 0 1
|
||||
add 192 192 6277101735386680763835789423207666416102355444464034512895 0 6277101735386680763835789423207666416102355444464034512895 0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user