PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/media/libnestegg/src/align.h

http://github.com/zpao/v8monkey
C Header | 36 lines | 15 code | 6 blank | 15 comment | 0 complexity | 4c864dcf60a40926674a1f0046789c95 MD5 | raw file
 1/*
 2 *	Copyright (c) 2004-2010 Alex Pankratov. All rights reserved.
 3 *
 4 *	Hierarchical memory allocator, 1.2.1
 5 *	http://swapped.cc/halloc
 6 */
 7
 8/*
 9 *	The program is distributed under terms of BSD license. 
10 *	You can obtain the copy of the license by visiting:
11 *	
12 *	http://www.opensource.org/licenses/bsd-license.php
13 */
14
15#ifndef _LIBP_ALIGN_H_
16#define _LIBP_ALIGN_H_
17
18/*
19 *	a type with the most strict alignment requirements
20 */
21union max_align
22{
23	char   c;
24	short  s;
25	long   l;
26	int    i;
27	float  f;
28	double d;
29	void * v;
30	void (*q)(void);
31};
32
33typedef union max_align max_align_t;
34
35#endif
36