|
|
@ -22,6 +22,9 @@ FIXED_POINTS_BEGIN_NAMESPACE |
|
|
|
// Declaration
|
|
|
|
// Declaration
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template< unsigned Integer, unsigned Fraction > |
|
|
|
|
|
|
|
class UFixed; |
|
|
|
|
|
|
|
|
|
|
|
template< unsigned Integer, unsigned Fraction > |
|
|
|
template< unsigned Integer, unsigned Fraction > |
|
|
|
class SFixed |
|
|
|
class SFixed |
|
|
|
{ |
|
|
|
{ |
|
|
@ -103,6 +106,11 @@ public: |
|
|
|
template< unsigned IntegerOut, unsigned FractionOut > |
|
|
|
template< unsigned IntegerOut, unsigned FractionOut > |
|
|
|
constexpr explicit operator SFixed<IntegerOut, FractionOut>() const; |
|
|
|
constexpr explicit operator SFixed<IntegerOut, FractionOut>() const; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template< unsigned IntegerOut, unsigned FractionOut > |
|
|
|
|
|
|
|
constexpr explicit operator UFixed<IntegerOut, FractionOut>() const; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constexpr explicit operator UFixed<Integer + 1, Fraction>() const; |
|
|
|
|
|
|
|
|
|
|
|
static constexpr SFixed fromInternal(const InternalType & value); |
|
|
|
static constexpr SFixed fromInternal(const InternalType & value); |
|
|
|
|
|
|
|
|
|
|
|
constexpr SFixed operator -() const; |
|
|
|
constexpr SFixed operator -() const; |
|
|
|