Changeset 9c951e3 for src/libcfa/gmp


Ignore:
Timestamp:
May 16, 2017, 10:58:50 AM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
b1e63ac5
Parents:
d36c117 (diff), 4203f71 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/gmp

    rd36c117 r9c951e3  
    1010// Created On       : Tue Apr 19 08:43:43 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat May 13 22:52:26 2017
    13 // Update Count     : 8
    14 //
    15 
    16 extern "C" {
     12// Last Modified On : Sun May 14 23:47:36 2017
     13// Update Count     : 9
     14//
     15
    1716// https://gmplib.org/gmp-man-6.1.1.pdf
     17
    1818#include <gmp.h>                                                                                // GNU multi-precise integers
    19 // some code for operators "/" and "%" taken from g++ gmpxx.h
    20 }
    2119#include <fstream>                                                                              // sout
    2220
     
    146144Int ?*=?( Int * lhs, unsigned long int rhs ) { return *lhs = *lhs * rhs; }
    147145
     146// some code for operators "/" and "%" taken from g++ gmpxx.h
    148147Int ?/?( Int dividend, Int divisor ) { Int quotient; mpz_tdiv_q( quotient.mpz, dividend.mpz, divisor.mpz ); return quotient; }
    149148Int ?/?( 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.