michael@0: /* michael@0: * Copyright (c) 2004-2010 Alex Pankratov. All rights reserved. michael@0: * michael@0: * Hierarchical memory allocator, 1.2.1 michael@0: * http://swapped.cc/halloc michael@0: */ michael@0: michael@0: /* michael@0: * The program is distributed under terms of BSD license. michael@0: * You can obtain the copy of the license by visiting: michael@0: * michael@0: * http://www.opensource.org/licenses/bsd-license.php michael@0: */ michael@0: michael@0: #ifndef _LIBP_ALIGN_H_ michael@0: #define _LIBP_ALIGN_H_ michael@0: michael@0: /* michael@0: * a type with the most strict alignment requirements michael@0: */ michael@0: union max_align michael@0: { michael@0: char c; michael@0: short s; michael@0: long l; michael@0: int i; michael@0: float f; michael@0: double d; michael@0: void * v; michael@0: void (*q)(void); michael@0: }; michael@0: michael@0: typedef union max_align max_align_t; michael@0: michael@0: #endif michael@0: