diff --git a/library/stdlib_memory.h b/library/stdlib_memory.h index 177243a..9dda55c 100644 --- a/library/stdlib_memory.h +++ b/library/stdlib_memory.h @@ -60,21 +60,10 @@ /****************************************************************************/ -/* - * Uncomment this to make all memory allocation operations return addresses - * which are aligned to a multiple of MEM_BLOCKSIZE (see ). - * This renders them 64 bit aligned which can be useful for floating point - * numbers in data structures used by the PowerPC. You pay for this privilege - * by spending an additional 4 bytes per allocation. - */ -#define __MEM_ALLOCATIONS_64_BIT_ALIGNED - -/****************************************************************************/ - /* * Uncomment this to enable the slab allocator. */ -#define __USE_SLAB_ALLOCATOR +/*#define __USE_SLAB_ALLOCATOR*/ /****************************************************************************/ @@ -178,7 +167,7 @@ struct MemoryNode struct MinNode mn_MinNode; UBYTE mn_AlreadyFree; - UBYTE mn_Pad0[7]; /* Note: provide 64 bit alignment */ + UBYTE mn_Pad0[3]; void * mn_Allocation; size_t mn_AllocationSize; @@ -199,10 +188,6 @@ struct MemoryNode #endif /* __MEM_DEBUG */ -#ifdef __MEM_ALLOCATIONS_64_BIT_ALIGNED - ULONG mn_Alignment; -#endif /* __MEM_ALLOCATIONS_64_BIT_ALIGNED */ - ULONG mn_Size; }; @@ -267,9 +252,6 @@ struct SlabNode struct SlabSingleAllocation { struct MinNode ssa_MinNode; -#ifdef __MEM_ALLOCATIONS_64_BIT_ALIGNED - ULONG ssa_Alignment; -#endif /* __MEM_ALLOCATIONS_64_BIT_ALIGNED */ ULONG ssa_Size; };