Qt 4.8
Functions
qvector.cpp File Reference
#include "qvector.h"
#include "qtools_p.h"
#include <string.h>

Go to the source code of this file.

Functions

static int alignmentThreshold ()
 

Function Documentation

◆ alignmentThreshold()

static int alignmentThreshold ( )
inlinestatic

Definition at line 48 of file qvector.cpp.

Referenced by QVectorData::allocate(), QVectorData::free(), and QVectorData::reallocate().

49 {
50  // malloc on 32-bit platforms should return pointers that are 8-byte aligned or more
51  // while on 64-bit platforms they should be 16-byte aligned or more
52  return 2 * sizeof(void*);
53 }