Qt 4.8
Functions
qgraphicsscenebsptreeindex.cpp File Reference
#include <QtCore/qglobal.h>
#include <private/qgraphicsscene_p.h>
#include <private/qgraphicsscenebsptreeindex_p.h>
#include <private/qgraphicssceneindex_p.h>
#include <QtCore/qmath.h>
#include <QtCore/qdebug.h>
#include "moc_qgraphicsscenebsptreeindex_p.cpp"

Go to the source code of this file.

Functions

static int intmaxlog (int n)
 

Function Documentation

◆ intmaxlog()

static int intmaxlog ( int  n)
inlinestatic

Definition at line 93 of file qgraphicsscenebsptreeindex.cpp.

Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex().

94 {
95  return (n > 0 ? qMax(qCeil(qLn(qreal(n)) / qLn(qreal(2))), 5) : 0);
96 }
double qreal
Definition: qglobal.h:1193
qreal qLn(qreal v)
Definition: qmath.h:221
int qCeil(qreal v)
Definition: qmath.h:63
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
Definition: qglobal.h:1217