56 #include "QtCore/qdebug.h" 57 #include "QtCore/qpoint.h" 58 #include "QtCore/qsize.h" 76 inline int toInt()
const {
return (((
val)+32) & -64)>>6; }
114 if (a < 0) { a = -
a; neg =
true; }
115 if (b < 0) { b = -b; neg = !neg; }
117 int res = (int)(((a << 6) + (b >> 1)) / b);
119 val = (neg ? -res : res);
132 if (a < 0) { a = -
a; neg =
true; }
133 if (b < 0) { b = -b; neg = !neg; }
135 int res = (int)((a * b + 0x20L) >> 6);
136 val = neg ? -res : res;
158 #define QFIXED_MAX (INT_MAX/256) 184 #ifndef QT_NO_DEBUG_STREAM 186 {
return dbg << f.
toReal(); }
221 #endif // QTEXTENGINE_P_H int qFloor(const QFixed &f)
The QDebug class provides an output stream for debugging information.
QFixed & operator*=(qreal d)
QFixed operator-(uint i) const
static QFixed fromFixed(int fixed)
QFixed operator+(qreal i) const
QFixed operator+(const QFixed &other) const
#define QT_END_NAMESPACE
This macro expands to.
bool operator!=(const QFixed &other) const
int qRound(const QFixed &f)
QFixed operator-(int i) const
QFixed operator/(qreal d) const
qreal width() const
Returns the width.
QFixed operator-(qreal i) const
QFixed & operator/=(qreal r)
QFixed operator-(const QFixed &other) const
The QPointF class defines a point in the plane using floating point precision.
qreal height() const
Returns the height.
QFixed & operator+=(qreal i)
QFixed & operator-=(qreal i)
bool operator<(const QFixed &other) const
QFixed & operator-=(uint i)
long ASN1_INTEGER_get ASN1_INTEGER * a
static QFixed fromReal(qreal r)
QFixed operator*(int i) const
QFixed & operator-=(const QFixed &other)
static QFixedPoint fromPointF(const QPointF &p)
The QSizeF class defines the size of a two-dimensional object using floating point precision...
QFixed operator+(uint i) const
qreal x() const
Returns the x-coordinate of this point.
bool operator>=(const QFixed &other) const
Q_CORE_EXPORT QTextStream & fixed(QTextStream &s)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QFixed & operator/=(const QFixed &o)
Q_DECLARE_TYPEINFO(QFixed, Q_PRIMITIVE_TYPE)
QFixedPoint(const QFixed &_x, const QFixed &_y)
QFixed operator/(QFixed b) const
QFixed & operator+=(const QFixed &other)
QFixed operator/(int d) const
QDebug & operator<<(QDebug &dbg, const QFixed &f)
QFixed & operator*=(int i)
QFixed & operator-=(int i)
QFixed & operator+=(int i)
bool operator>(const QFixed &other) const
QFixed & operator=(int i)
QFixed & operator+=(uint i)
QFixed operator*(uint i) const
QFixed operator+(int i) const
bool operator==(const QFixed &other) const
static QFixedSize fromSizeF(const QSizeF &s)
QFixed & operator*=(const QFixed &o)
qreal y() const
Returns the y-coordinate of this point.
QFixed operator*(const QFixed &o) const
QFixed & operator=(qreal i)
bool operator<=(const QFixed &other) const
QFixed operator*(qreal d) const
QFixed operator>>(int d) const
QFixed & operator=(long i)
QFixed & operator/=(int x)
QFixed & operator*=(uint i)