Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/include/arm/_param.h

Source at commit 1270 created 12 years 8 months ago.
By meklort, Add arm headers. update makefiles
1/*
2 * Copyright (c) 2006-2007 Apple Inc. All rights reserved.
3 */
4
5#ifndef _ARM__PARAM_H_
6#define _ARM__PARAM_H_
7
8#include <arm/_types.h>
9
10/*
11 * Round p (pointer or byte index) up to a correctly-aligned value for all
12 * data types (int, long, ...). The result is unsigned int and must be
13 * cast to any desired pointer type.
14 */
15#define__DARWIN_ALIGNBYTES(sizeof(__darwin_size_t) - 1)
16#define__DARWIN_ALIGN(p)((__darwin_size_t)((char *)(__darwin_size_t)(p) + __DARWIN_ALIGNBYTES) &~ __DARWIN_ALIGNBYTES)
17
18#define __DARWIN_ALIGNBYTES32 (sizeof(__uint32_t) - 1)
19#define __DARWIN_ALIGN32(p) ((__darwin_size_t)((char *)(__darwin_size_t)(p) + __DARWIN_ALIGNBYTES32) &~ __DARWIN_ALIGNBYTES32)
20
21
22#endif /* _ARM__PARAM_H_ */
23

Archive Download this file

Revision: 1270