Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/FixedPointsArduino/commit/e5ac682a12b58db13991482e8babbdd4a4882c37?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
3 additions and
3 deletions
src/FixedPoints/Utils.h
@ -127,7 +127,7 @@ template< unsigned Integer, unsigned Fraction >
constexpr UFixed < Integer , Fraction > roundFixed ( const UFixed < Integer , Fraction > & value )
{
using OutputType = UFixed < Integer , Fraction > ;
return ( ( value . getFraction ( ) > = OutputType ( 0.5 ) . getFraction ( ) ) ! = 0 ) ? ceilFixed ( value ) : floorFixed ( value ) ;
return ( value . getFraction ( ) > = OutputType ( 0.5 ) . getFraction ( ) ) ? ceilFixed ( value ) : floorFixed ( value ) ;
}
template < unsigned Integer , unsigned Fraction >
@ -136,8 +136,8 @@ constexpr SFixed<Integer, Fraction> roundFixed(const SFixed<Integer, Fraction> &
using OutputType = SFixed < Integer , Fraction > ;
return
signbitFixed ( value )
? ( ( value . getFraction ( ) < = OutputType ( 0.5 ) . getFraction ( ) ) ! = 0 ) ? floorFixed ( value ) : ceilFixed ( value )
: ( ( value . getFraction ( ) > = OutputType ( 0.5 ) . getFraction ( ) ) ! = 0 ) ? ceilFixed ( value ) : floorFixed ( value ) ;
? ( value . getFraction ( ) < = OutputType ( 0.5 ) . getFraction ( ) ) ? floorFixed ( value ) : ceilFixed ( value )
: ( value . getFraction ( ) > = OutputType ( 0.5 ) . getFraction ( ) ) ? ceilFixed ( value ) : floorFixed ( value ) ;
}
template < unsigned Integer , unsigned Fraction >