52 return 2 *
sizeof(
void*);
61 ::memcpy(p, init, sizeofTypedData + (
qMin(size, init->
alloc) - 1) * sizeofT);
88 return size + size / 2;
89 return qAllocMore(size * sizeofT, sizeofTypedData - sizeofT) / sizeofT;
static QVectorData * reallocate(QVectorData *old, int newsize, int oldsize, int alignment)
static QVectorData * allocate(int size, int alignment)
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
#define QT_END_NAMESPACE
This macro expands to.
Q_CORE_EXPORT void * qMallocAligned(size_t size, size_t alignment)
static void free(QVectorData *data, int alignment)
Q_CORE_EXPORT void qFree(void *ptr)
Q_CORE_EXPORT void * qMalloc(size_t size)
Q_CORE_EXPORT void * qRealloc(void *ptr, size_t size)
#define Q_BASIC_ATOMIC_INITIALIZER(a)
#define QT_BEGIN_NAMESPACE
This macro expands to.
int qAllocMore(int alloc, int extra)
Q_CORE_EXPORT void * qReallocAligned(void *ptr, size_t size, size_t oldsize, size_t alignment)
static int alignmentThreshold()
static QVectorData * malloc(int sizeofTypedData, int size, int sizeofT, QVectorData *init)
static int grow(int sizeofTypedData, int size, int sizeofT, bool excessive)
static QVectorData shared_null
Q_CORE_EXPORT void qFreeAligned(void *ptr)