Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/FixedPointsArduino/commit/0be73756626b4ad98f3dbed955ad3bdb016384b3?style=unified&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
38 additions and
2 deletions
src/FixedPoints/SFixed.h
src/FixedPoints/SFixedMemberFunctions.h
src/FixedPoints/UFixed.h
src/FixedPoints/UFixedMemberFunctions.h
@ -108,6 +108,8 @@ public:
constexpr SFixed operator - ( ) const ;
SFixed & operator + + ( ) ;
SFixed & operator - - ( ) ;
SFixed operator + + ( int ) ;
SFixed operator - - ( int ) ;
SFixed & operator + = ( const SFixed & other ) ;
SFixed & operator - = ( const SFixed & other ) ;
SFixed & operator * = ( const SFixed & other ) ;
@ -232,6 +232,22 @@ SFixed<Integer, Fraction> & SFixed<Integer, Fraction>::operator --()
return * this ;
}
template < unsigned Integer , unsigned Fraction >
SFixed < Integer , Fraction > SFixed < Integer , Fraction > : : operator + + ( int )
{
const SFixed < Integer , Fraction > old ( * this ) ;
+ + ( * this ) ;
return old ;
}
template < unsigned Integer , unsigned Fraction >
SFixed < Integer , Fraction > SFixed < Integer , Fraction > : : operator - - ( int )
{
const SFixed < Integer , Fraction > old ( * this ) ;
- - ( * this ) ;
return old ;
}
//
// Compound Assignment Operators
//
@ -108,6 +108,8 @@ public:
UFixed & operator + + ( ) ;
UFixed & operator - - ( ) ;
UFixed operator + + ( int ) ;
UFixed operator - - ( int ) ;
UFixed & operator + = ( const UFixed & other ) ;
UFixed & operator - = ( const UFixed & other ) ;
UFixed & operator * = ( const UFixed & other ) ;
@ -217,6 +217,22 @@ UFixed<Integer, Fraction> & UFixed<Integer, Fraction>::operator --()
return * this ;
}
template < unsigned Integer , unsigned Fraction >
UFixed < Integer , Fraction > UFixed < Integer , Fraction > : : operator + + ( int )
{
const UFixed < Integer , Fraction > old ( * this ) ;
+ + ( * this ) ;
return old ;
}
template < unsigned Integer , unsigned Fraction >
UFixed < Integer , Fraction > UFixed < Integer , Fraction > : : operator - - ( int )
{
const UFixed < Integer , Fraction > old ( * this ) ;
- - ( * this ) ;
return old ;
}
//
// Compound Assignment Operators
//