1
/*******************************************************************
3
* This software is part of the ast package *
4
* Copyright (c) 1985-2000 AT&T Corp. *
5
* and it may only be used by you under license from *
6
* AT&T Corp. ("AT&T") *
7
* A copy of the Source Code Agreement is available *
8
* at the AT&T Internet web site URL *
10
* http://www.research.att.com/sw/license/ast-open.html *
12
* If you have copied this software without agreeing *
13
* to the terms of the license you are infringing on *
14
* the license and copyright and are violating *
15
* AT&T's intellectual property rights. *
17
* This software was created by the *
18
* Network Services Research Center *
19
* AT&T Labs Research *
22
* Glenn Fowler <gsf@research.att.com> *
23
* David Korn <dgk@research.att.com> *
24
* Phong Vo <kpv@research.att.com> *
26
*******************************************************************/
27
/* : : generated from features/align.c by iffe version 1999-08-11 : : */
28
#ifndef _def_align_ast
29
#define _def_align_ast 1
30
typedef unsigned long ALIGN_INTEGRAL;
32
#define ALIGN_CHUNK 8192
33
#define ALIGN_INTEGRAL long
34
#define ALIGN_INTEGER(x) ((ALIGN_INTEGRAL)(x))
35
#define ALIGN_POINTER(x) ((char*)(x))
36
#define ALIGN_ROUND(x,y) ALIGN_POINTER(ALIGN_INTEGER((x)+(y)-1)&~((y)-1))
38
#define ALIGN_BOUND ALIGN_BOUND2
39
#define ALIGN_ALIGN(x) ALIGN_ALIGN2(x)
40
#define ALIGN_TRUNC(x) ALIGN_TRUNC2(x)
42
#define ALIGN_BIT1 0x1
43
#define ALIGN_BOUND1 ALIGN_BOUND2
44
#define ALIGN_ALIGN1(x) ALIGN_ALIGN2(x)
45
#define ALIGN_TRUNC1(x) ALIGN_TRUNC2(x)
46
#define ALIGN_CLRBIT1(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0xfffffffe)
47
#define ALIGN_SETBIT1(x) ALIGN_POINTER(ALIGN_INTEGER(x)|0x1)
48
#define ALIGN_TSTBIT1(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0x1)
50
#define ALIGN_BIT2 0x2
51
#define ALIGN_BOUND2 8
52
#define ALIGN_ALIGN2(x) ALIGN_TRUNC2((x)+7)
53
#define ALIGN_TRUNC2(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0xfffffff8)
54
#define ALIGN_CLRBIT2(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0xfffffffd)
55
#define ALIGN_SETBIT2(x) ALIGN_POINTER(ALIGN_INTEGER(x)|0x2)
56
#define ALIGN_TSTBIT2(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0x2)