summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-10-22 16:57:53 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-10-28 14:27:36 (GMT)
commit3f0b969772cf3056ed54349bfe6837d9de2995ea (patch)
tree95b88cb55e66b3f4b2933e41939fb3ec1e8a46ee /src/corelib/global/qglobal.h
parent0283ca4cf2ad1c9e642b24f8376aa7179fa54599 (diff)
downloadQt-3f0b969772cf3056ed54349bfe6837d9de2995ea.zip
Qt-3f0b969772cf3056ed54349bfe6837d9de2995ea.tar.gz
Qt-3f0b969772cf3056ed54349bfe6837d9de2995ea.tar.bz2
Add the aligned versions of qMalloc/qRealloc/qFree
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r--src/corelib/global/qglobal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 5ee1815..cbb8fda 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -2065,6 +2065,9 @@ Q_DECLARE_TYPEINFO(long double, Q_PRIMITIVE_TYPE);
Q_CORE_EXPORT void *qMalloc(size_t size);
Q_CORE_EXPORT void qFree(void *ptr);
Q_CORE_EXPORT void *qRealloc(void *ptr, size_t size);
+Q_CORE_EXPORT void *qMallocAligned(size_t size, size_t alignment);
+Q_CORE_EXPORT void *qReallocAligned(void *ptr, size_t size, size_t oldsize, size_t alignment);
+Q_CORE_EXPORT void qFreeAligned(void *ptr);
Q_CORE_EXPORT void *qMemCopy(void *dest, const void *src, size_t n);
Q_CORE_EXPORT void *qMemSet(void *dest, int c, size_t n);