#include <kis_fixed_point_maths.h>
Definition at line 13 of file kis_fixed_point_maths.h.
◆ KisFixedPoint() [1/3]
| KisFixedPoint::KisFixedPoint |
( |
| ) |
|
|
inline |
◆ KisFixedPoint() [2/3]
| KisFixedPoint::KisFixedPoint |
( |
int | iValue | ) |
|
|
inline |
◆ KisFixedPoint() [3/3]
| KisFixedPoint::KisFixedPoint |
( |
qreal | fValue | ) |
|
|
inline |
◆ dec256Frac()
◆ from256Frac()
◆ inc256Frac()
◆ isInteger()
| bool KisFixedPoint::isInteger |
( |
| ) |
const |
|
inline |
◆ operator*=()
Until C++20 d >>= 8 is "implementation defined" for negative d. But we have a unittest that confirms that the our compiler handles that in an expected way
Definition at line 90 of file kis_fixed_point_maths.h.
91 {
100 return *this;
101 }
References d.
◆ operator+=()
◆ operator-=()
◆ operator/=()
Until C++20 d <<= 8 is an "undefined behavior" for negative d. But we have a unittest that confirms that the our compiler handles that in an expected way
Definition at line 103 of file kis_fixed_point_maths.h.
104 {
113 return *this;
114 }
References d.
◆ operator<()
◆ operator==()
◆ to256Frac()
| qint32 KisFixedPoint::to256Frac |
( |
| ) |
const |
|
inline |
◆ toFloat()
| qreal KisFixedPoint::toFloat |
( |
| ) |
const |
|
inline |
◆ toInt()
| qint32 KisFixedPoint::toInt |
( |
| ) |
const |
|
inline |
◆ toIntCeil()
| qint32 KisFixedPoint::toIntCeil |
( |
| ) |
const |
|
inline |
◆ toIntFloor()
| qint32 KisFixedPoint::toIntFloor |
( |
| ) |
const |
|
inline |
◆ toIntRound()
| qint32 KisFixedPoint::toIntRound |
( |
| ) |
const |
|
inline |
◆ operator-
◆ operator<<
Definition at line 129 of file kis_fixed_point_maths.h.
129 {
130 dbg.nospace() <<
v.toFloat() <<
" (d = " <<
v.d <<
")";
131 return dbg.space();
132}
The documentation for this class was generated from the following file: