# error Unable to detect target endianness
#endif
-// needed for std::round() and std::swap
+// needed for std::swap
#ifdef __cplusplus
#include <algorithm>
-#include <cmath>
-#else
-#include <math.h>
#endif
#if defined(__cplusplus) && !defined(QT_NO_USING_NAMESPACE)
template <typename T>
Q_DECL_CONSTEXPR inline T qAbs(const T &t) { return t >= 0 ? t : -t; }
-inline int qRound(qreal d)
-{ return int(std::round(d)); }
-inline qint64 qRound64(qreal d)
-{ return qint64(std::round(d)); }
-
template <typename T>
Q_DECL_CONSTEXPR inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; }
template <typename T>
#ifndef QMATH_H
#define QMATH_H
-#include <math.h>
+#include <cmath>
#include <QtCore/qglobal.h>
extern Q_CORE_EXPORT const qreal qt_sine_table[QT_SINE_TABLE_SIZE];
+inline int qRound(qreal d)
+{
+ return int(std::round(d));
+}
+
+inline qint64 qRound64(qreal d)
+{
+ return qint64(std::round(d));
+}
+
inline int qCeil(qreal v)
{
#ifdef QT_USE_MATH_H_FLOATS
#include "qdebug.h"
#include "qmap.h"
#include "qdatetime.h"
+#include "qmath.h"
#ifndef QT_BOOTSTRAPPED
#include "qeasingcurve.h"
#endif
#include "qplatformdefs.h"
#include "qdatetime_p.h"
-
#include "qdatastream.h"
#include "qset.h"
#include "qlocale.h"
#include "qdatetime.h"
#include "qregexp.h"
#include "qdebug.h"
+#include "qmath.h"
#include <time.h>
#define QPOINT_H
#include <QtCore/qnamespace.h>
+#include <QtCore/qmath.h>
QT_BEGIN_HEADER
#define QSIZE_H
#include <QtCore/qnamespace.h>
+#include <QtCore/qmath.h>
QT_BEGIN_HEADER
#include "QtTest/qbenchmark_p.h"
#include "QtTest/qbenchmarkmetric_p.h"
#include "qbenchmark.h"
-#include <qdebug.h>
+#include "qmath.h"
+#include "qdebug.h"
QT_BEGIN_NAMESPACE