Skip to content

Commit

Permalink
Merge pull request #6 from topplegeist/master
Browse files Browse the repository at this point in the history
Fixed dll export for windows MSVC
  • Loading branch information
EndrII authored Mar 22, 2020
2 parents 3906017 + 3d181e3 commit 67c42f7
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/bigint.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class MINIGMPSHARED_EXPORT BigInt
friend BigInt MINIGMPSHARED_EXPORT operator + ( intMpz left, BigInt right);
friend BigInt MINIGMPSHARED_EXPORT operator + ( const std::string &left, const BigInt &right);

friend BigInt& MINIGMPSHARED_EXPORT operator += ( BigInt &left, intMpz right);
friend BigInt& MINIGMPSHARED_EXPORT operator += ( BigInt &left, const BigInt& right);
friend BigInt& MINIGMPSHARED_EXPORT operator += ( BigInt &left, const std::string &right);
friend BigInt MINIGMPSHARED_EXPORT & operator += ( BigInt &left, intMpz right);
friend BigInt MINIGMPSHARED_EXPORT & operator += ( BigInt &left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT & operator += ( BigInt &left, const std::string &right);

friend BigInt MINIGMPSHARED_EXPORT operator - ( BigInt left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT operator - ( BigInt left, intMpz right);
Expand All @@ -87,30 +87,30 @@ class MINIGMPSHARED_EXPORT BigInt

friend BigInt MINIGMPSHARED_EXPORT operator-(BigInt val);

friend BigInt& MINIGMPSHARED_EXPORT operator -= ( BigInt &left, intMpz right);
friend BigInt MINIGMPSHARED_EXPORT & operator -= ( BigInt &left, intMpz right);

friend BigInt& MINIGMPSHARED_EXPORT operator -= ( BigInt &left, const BigInt& right);
friend BigInt& MINIGMPSHARED_EXPORT operator -= ( BigInt &left, const std::string &right);
friend BigInt MINIGMPSHARED_EXPORT & operator -= ( BigInt &left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT & operator -= ( BigInt &left, const std::string &right);

friend BigInt MINIGMPSHARED_EXPORT operator / ( BigInt left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT operator / ( BigInt left, const std::string &right);
friend BigInt MINIGMPSHARED_EXPORT operator / ( BigInt left, intMpz right);
friend BigInt MINIGMPSHARED_EXPORT operator / ( intMpz left, BigInt right);
friend BigInt MINIGMPSHARED_EXPORT operator / ( const std::string &left, const BigInt &right);

friend BigInt& MINIGMPSHARED_EXPORT operator /= ( BigInt &left, intMpz right);
friend BigInt& MINIGMPSHARED_EXPORT operator /= ( BigInt &left, const std::string &right);
friend BigInt& MINIGMPSHARED_EXPORT operator /= ( BigInt &left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT & operator /= ( BigInt &left, intMpz right);
friend BigInt MINIGMPSHARED_EXPORT & operator /= ( BigInt &left, const std::string &right);
friend BigInt MINIGMPSHARED_EXPORT & operator /= ( BigInt &left, const BigInt& right);

friend BigInt MINIGMPSHARED_EXPORT operator * ( BigInt left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT operator * ( BigInt left, const std::string &right);
friend BigInt MINIGMPSHARED_EXPORT operator * ( BigInt left, intMpz right);

friend BigInt MINIGMPSHARED_EXPORT operator * ( intMpz left, BigInt right);

friend BigInt& MINIGMPSHARED_EXPORT operator *= ( BigInt &left, const BigInt& right);
friend BigInt& MINIGMPSHARED_EXPORT operator *= ( BigInt &left, intMpz right);
friend BigInt& MINIGMPSHARED_EXPORT operator *= ( BigInt &left, const std::string &right);
friend BigInt MINIGMPSHARED_EXPORT & operator *= ( BigInt &left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT & operator *= ( BigInt &left, intMpz right);
friend BigInt MINIGMPSHARED_EXPORT & operator *= ( BigInt &left, const std::string &right);

friend BigInt MINIGMPSHARED_EXPORT operator % ( BigInt left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT operator % ( BigInt left, const std::string &right);
Expand All @@ -119,16 +119,16 @@ class MINIGMPSHARED_EXPORT BigInt
friend BigInt MINIGMPSHARED_EXPORT operator % ( intMpz left, BigInt right);
friend BigInt MINIGMPSHARED_EXPORT operator % ( const std::string & left, const BigInt &right);

friend BigInt& MINIGMPSHARED_EXPORT operator %= ( BigInt &left, intMpz right);
friend BigInt& MINIGMPSHARED_EXPORT operator %= ( BigInt &left, const std::string &right);
friend BigInt MINIGMPSHARED_EXPORT & operator %= ( BigInt &left, intMpz right);
friend BigInt MINIGMPSHARED_EXPORT & operator %= ( BigInt &left, const std::string &right);

friend BigInt& MINIGMPSHARED_EXPORT operator %= ( BigInt &left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT & operator %= ( BigInt &left, const BigInt& right);

friend BigInt MINIGMPSHARED_EXPORT operator << ( BigInt left, int right);
friend BigInt MINIGMPSHARED_EXPORT operator >> ( BigInt left, int right);

friend BigInt& MINIGMPSHARED_EXPORT operator <<= ( BigInt &left, int right);
friend BigInt& MINIGMPSHARED_EXPORT operator >>= ( BigInt &left, int right);
friend BigInt MINIGMPSHARED_EXPORT & operator <<= ( BigInt &left, int right);
friend BigInt MINIGMPSHARED_EXPORT & operator >>= ( BigInt &left, int right);

friend bool MINIGMPSHARED_EXPORT operator == ( const BigInt& left, const BigInt& right);
friend bool MINIGMPSHARED_EXPORT operator == ( const BigInt& left, intMpz right);
Expand Down Expand Up @@ -186,20 +186,20 @@ class MINIGMPSHARED_EXPORT BigInt
friend BigInt MINIGMPSHARED_EXPORT operator| (BigInt left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT operator| (const BigInt &left, intMpz right);

friend BigInt& MINIGMPSHARED_EXPORT operator|= (BigInt &left, const BigInt& right);
friend BigInt& MINIGMPSHARED_EXPORT operator|= (BigInt &left, intMpz right);
friend BigInt MINIGMPSHARED_EXPORT & operator|= (BigInt &left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT & operator|= (BigInt &left, intMpz right);

friend BigInt MINIGMPSHARED_EXPORT operator& (BigInt left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT operator& (const BigInt &left, intMpz right);

friend BigInt& MINIGMPSHARED_EXPORT operator&= (BigInt &left, const BigInt& right);
friend BigInt& MINIGMPSHARED_EXPORT operator&= (BigInt &left, intMpz right);
friend BigInt MINIGMPSHARED_EXPORT & operator&= (BigInt &left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT & operator&= (BigInt &left, intMpz right);

friend BigInt MINIGMPSHARED_EXPORT operator^ (BigInt left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT operator^ (const BigInt &left, intMpz right);

friend BigInt& MINIGMPSHARED_EXPORT operator^= (BigInt &left, const BigInt& right);
friend BigInt& MINIGMPSHARED_EXPORT operator^= (BigInt &left, intMpz right);
friend BigInt MINIGMPSHARED_EXPORT & operator^= (BigInt &left, const BigInt& right);
friend BigInt MINIGMPSHARED_EXPORT & operator^= (BigInt &left, intMpz right);

};

Expand Down

0 comments on commit 67c42f7

Please sign in to comment.