~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to tools/ast/align.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************
 
2
*                                                                  *
 
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                 *
 
9
*                                                                  *
 
10
*       http://www.research.att.com/sw/license/ast-open.html       *
 
11
*                                                                  *
 
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.               *
 
16
*                                                                  *
 
17
*                 This software was created by the                 *
 
18
*                 Network Services Research Center                 *
 
19
*                        AT&T Labs Research                        *
 
20
*                         Florham Park NJ                          *
 
21
*                                                                  *
 
22
*               Glenn Fowler <gsf@research.att.com>                *
 
23
*                David Korn <dgk@research.att.com>                 *
 
24
*                 Phong Vo <kpv@research.att.com>                  *
 
25
*                                                                  *
 
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;
 
31
 
 
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))
 
37
 
 
38
#define ALIGN_BOUND             ALIGN_BOUND2
 
39
#define ALIGN_ALIGN(x)          ALIGN_ALIGN2(x)
 
40
#define ALIGN_TRUNC(x)          ALIGN_TRUNC2(x)
 
41
 
 
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)
 
49
 
 
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)
 
57
 
 
58
#endif