Changes in src/libcfa/gmp [2893f6d:4c8f86b3]
- File:
-
- 1 edited
-
src/libcfa/gmp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/gmp
r2893f6d r4c8f86b3 10 10 // Created On : Tue Apr 19 08:43:43 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun May 14 23:47:36 2017 13 // Update Count : 9 14 // 15 12 // Last Modified On : Sat May 13 22:52:26 2017 13 // Update Count : 8 14 // 15 16 extern "C" { 16 17 // https://gmplib.org/gmp-man-6.1.1.pdf 17 18 18 #include <gmp.h> // GNU multi-precise integers 19 // some code for operators "/" and "%" taken from g++ gmpxx.h 20 } 19 21 #include <fstream> // sout 20 22 … … 144 146 Int ?*=?( Int * lhs, unsigned long int rhs ) { return *lhs = *lhs * rhs; } 145 147 146 // some code for operators "/" and "%" taken from g++ gmpxx.h147 148 Int ?/?( Int dividend, Int divisor ) { Int quotient; mpz_tdiv_q( quotient.mpz, dividend.mpz, divisor.mpz ); return quotient; } 148 149 Int ?/?( Int dividend, unsigned long int divisor ) { Int quotient; mpz_tdiv_q_ui( quotient.mpz, dividend.mpz, divisor ); return quotient; }
Note:
See TracChangeset
for help on using the changeset viewer.