Mercurial > projects > qtd
changeset 186:d5af7c48b733
fix for 64but
author | eldar |
---|---|
date | Sat, 04 Jul 2009 13:41:21 +0000 |
parents | 4fcf7ba2a791 |
children | 34fe79a9915b |
files | qt/QGlobal.d.inc |
diffstat | 1 files changed, 0 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/qt/QGlobal.d.inc Sat Jul 04 13:15:01 2009 +0000 +++ b/qt/QGlobal.d.inc Sat Jul 04 13:41:21 2009 +0000 @@ -594,11 +594,6 @@ private const PTR_ALIGN = Align.tupleof[1].alignof; -version( X86 ) - const MEM_ALIGN = 8u; -else - static assert(false, "Unknown memory alignment for this platform."); - private template AlignPad(size_t base, size_t aligned) { @@ -667,22 +662,6 @@ const Max = b; } -template InstanceSizeAligned(T, size_t alignment=MEM_ALIGN) -{ - static if( alignment == 0 ) - const InstanceSizeAligned = InstanceSize!(T); - else - const uint InstanceSizeAligned - = InstanceSizeAlignImpl!(T, alignment).result; -} - -private -template InstanceSizeAlignedImpl(T, size_t alignment) -{ - private const base_size = InstanceSize!(T); - const result = ((base_size+alignment-1)/alignment)*alignment; -} - private template InterfaceCount(T) {