Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 997c7053c32c085ce87c61f019316cec5a321ac3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*******************************************************************************
 * Copyright (c) 2011 protos software gmbh (http://www.protos.de).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * CONTRIBUTORS:
 * 		Henrik Rentz-Reichert (initial contribution)
 *
 *******************************************************************************/

#ifndef _ETMEMORY_H_
#define _ETMEMORY_H_

#include "etDatatypes.h"
#include "etGlobalFlags.h"

#define CONSTANT_MEM_CEIL(n)	\
		((n)+(((int32)STRUCT_ALIGN-((n)&((int32)STRUCT_ALIGN-1)))&((int32)STRUCT_ALIGN-1)))

#define MEM_ALIGNMENT		STRUCT_ALIGN      /* power of 2 and >= sizeof(int) ! */
#define MEM_CEIL(n)			CONSTANT_MEM_CEIL(n)

/* pool and block size */
#define MESSAGE_POOL_MAX 50
#define MESSAGE_BLOCK_SIZE 64

#endif /* _ETMEMORY_H_ */

Back to the top