ca51020fe659f04f08180ecac9ab989268423670
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
TTMath - a bignum library for C++ TTMath is a small library which allows one to perform arithmetic operations with big unsigned integer, big signed integer and big floating point numbers. It provides standard mathematical operations like adding, subtracting, multiplying, dividing etc. With the library also goes a mathematical parser which helps you solving input formulas read directly from a user. TTMath is developed under the BSD licence which means that it is free for both personal and commercial use. The library has some technical limitations: * there are only two platforms that are supported: x86 and x86_64, * you can use this library only with the C++ programming language. The main goal of the library is to allow one to use big values in the same way as the standard types like int, float, etc. It does not need to be compiled first because the whole library is written as the C++ templates. This means only C++ developers can use this library and one thing they have to do is to use 'include' directive of the preprocessor. How big the values can be is set directly in the source code by the programmer. Author: Tomasz Sowa <t.sowa@slimaczek.pl> Project pages: http://ttmath.slimaczek.pl http://sourceforge.net/projects/ttmath
Description
TTMath is a small library which allows one to perform arithmetic operations with big unsigned integer, big signed integer and big floating point numbers.
Languages
C++
96.2%
Assembly
1.9%
Makefile
1.2%
Shell
0.6%