Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcalendarmath_p.h File Reference

(7eff6ace6143e5bb44fa28c2fb98969bd5483c57)

#include <QtCore/private/qglobal_p.h>
#include <QtCore/QtAlgorithms>
Include dependency graph for qcalendarmath_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  QRoundingDown
namespace  QRoundingDown::QRoundingDownPrivate
namespace  QRomanCalendrical

Macros

#define QCALMATH_ISPOW2(b)

Functions

template<typename Int>
constexpr bool QRoundingDown::QRoundingDownPrivate::isPowerOfTwo (Int b)
template<unsigned b, typename Int, std::enable_if_t<(int(b)< 2), bool > = true>
constexpr auto QRoundingDown::qDivMod (Int)
template<unsigned b, typename Int, std::enable_if_t<(b > 1) &&!QCALMATH_ISPOW2(b) &&(int(b) > 0), bool > = true>
constexpr auto QRoundingDown::qDivMod (Int a)
template<unsigned b, typename Int, std::enable_if_t<(b > 1) &&QCALMATH_ISPOW2(b) &&(int(b) > 0), bool > = true>
constexpr auto QRoundingDown::qDivMod (Int a)
template<unsigned b, typename Int>
constexpr Int QRoundingDown::qDiv (Int a)
template<unsigned b, typename Int>
constexpr Int QRoundingDown::qMod (Int a)
constexpr auto QRomanCalendrical::yearMonthToYearDays (int year, int month)
constexpr auto QRomanCalendrical::dayInYearToYmd (int dayInYear)

Variables

constexpr qint64 QRomanCalendrical::LeapDayGregorian1Bce = 1721119
constexpr unsigned QRomanCalendrical::FourYears = 4 * 365 + 1
constexpr unsigned QRomanCalendrical::FiveMonths = 31 + 30 + 31 + 30 + 31

Macro Definition Documentation

◆ QCALMATH_ISPOW2

#define QCALMATH_ISPOW2 ( b)
Value:
QRoundingDownPrivate::isPowerOfTwo(b)
GLboolean GLboolean GLboolean b

Definition at line 37 of file qcalendarmath_p.h.