100 bg = (alloc - nl) >> 1;
101 }
else if (*idx > l) {
104 }
else if (*idx < (l >> 1)) {
105 bg = (alloc - nl) >> 1;
116 #if QT_VERSION >= 0x050000 117 # error "Remove QListData::detach(), it is only required for binary compatibility for 4.0.x to 4.2.x" 148 #if QT_VERSION >= 0x050000 149 # error "Remove QListData::detach2(), it is only required for binary compatibility for 4.3.x to 4.5.x" 210 #if QT_VERSION >= 0x050000 211 # error "Remove QListData::detach3(), it is only required for binary compatibility for 4.5.x to 4.6.x" 237 if (b - n >= 2 *
d->
alloc / 3) {
257 #if QT_VERSION >= 0x050000 258 # error "Remove QListData::append(), it is only required for binary compatibility up to 4.5.x" 307 bool leftward =
false;
322 leftward = (i < size - i);
331 (size - i) *
sizeof(
void *));
342 if (
int offset = i -
d->
begin)
346 if (
int offset =
d->
end - i - 1)
347 ::memmove(
d->
array + i,
d->
array + i + 1, offset *
sizeof(
void *));
356 int middle = i + n/2;
359 (i -
d->
begin) *
sizeof(
void*));
363 (
d->
end - i - n) *
sizeof(
void*));
380 ::memmove(
d->
array + from,
d->
array + from + 1, (to - from) *
sizeof(
void *));
383 if (
int offset = from -
d->
begin)
385 if (
int offset =
d->
end - (to + 1))
386 ::memmove(
d->
array + to + 2,
d->
array + to + 1, offset *
sizeof(
void *));
393 ::memmove(
d->
array + to + 1,
d->
array + to, (from - to) *
sizeof(
void *));
396 if (
int offset = to -
d->
begin)
398 if (
int offset =
d->
end - (from + 1))
399 ::memmove(
d->
array + from,
d->
array + from + 1, offset *
sizeof(
void *));
#define QT_END_NAMESPACE
This macro expands to.
Q_CORE_EXPORT void * qMalloc(size_t size)
Q_CORE_EXPORT void * qRealloc(void *ptr, size_t size)
#define Q_BASIC_ATOMIC_INITIALIZER(a)
Data * detach3()
Detaches the QListData by reallocating new memory.
#define QT_BEGIN_NAMESPACE
This macro expands to.
int qAllocMore(int alloc, int extra)
void ** append2(const QListData &l)
Data * detach2()
Detaches the QListData by reallocating new memory.
Data * detach_grow(int *i, int n)
Detaches the QListData by allocating new memory for a list which will be bigger than the copied one a...
void qSwap(T &value1, T &value2)
static int grow(int size)
void move(int from, int to)