1N/A/***********************************************************************
1N/A* *
1N/A* This software is part of the ast package *
1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property *
1N/A* and is licensed under the *
1N/A* Common Public License, Version 1.0 *
1N/A* by AT&T Intellectual Property *
1N/A* *
1N/A* A copy of the License is available at *
1N/A* http://www.opensource.org/licenses/cpl1.0.txt *
1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
1N/A* *
1N/A* Information and Software Systems Research *
1N/A* AT&T Research *
1N/A* Florham Park NJ *
1N/A* *
1N/A* Glenn Fowler <gsf@research.att.com> *
1N/A* David Korn <dgk@research.att.com> *
1N/A* Phong Vo <kpv@research.att.com> *
1N/A* *
1N/A***********************************************************************/
1N/A/* : : generated from /home/gisburn/ksh93/ast_ksh_20110208/build_sparc_64bit_opt/src/lib/libast/features/align.c by iffe version 2011-01-07 : : */
1N/A#ifndef _def_align_ast
1N/A#define _def_align_ast 1
1N/A#define _sys_types 1 /* #include <sys/types.h> ok */
1N/Atypedef unsigned long ALIGN_INTEGRAL;
1N/A
1N/A#define ALIGN_CHUNK 8192
1N/A#define ALIGN_INTEGRAL long
1N/A#define ALIGN_INTEGER(x) ((ALIGN_INTEGRAL)(x))
1N/A#define ALIGN_POINTER(x) ((char*)(x))
1N/A#define ALIGN_ROUND(x,y) ALIGN_POINTER(ALIGN_INTEGER((x)+(y)-1)&~((y)-1))
1N/A
1N/A#define ALIGN_BOUND ALIGN_BOUND2
1N/A#define ALIGN_ALIGN(x) ALIGN_ALIGN2(x)
1N/A#define ALIGN_TRUNC(x) ALIGN_TRUNC2(x)
1N/A
1N/A#define ALIGN_BIT1 0x1
1N/A#define ALIGN_BOUND1 ALIGN_BOUND2
1N/A#define ALIGN_ALIGN1(x) ALIGN_ALIGN2(x)
1N/A#define ALIGN_TRUNC1(x) ALIGN_TRUNC2(x)
1N/A#define ALIGN_CLRBIT1(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0xfffffffffffffffe)
1N/A#define ALIGN_SETBIT1(x) ALIGN_POINTER(ALIGN_INTEGER(x)|0x1)
1N/A#define ALIGN_TSTBIT1(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0x1)
1N/A
1N/A#define ALIGN_BIT2 0x2
1N/A#define ALIGN_BOUND2 16
1N/A#define ALIGN_ALIGN2(x) ALIGN_TRUNC2((x)+15)
1N/A#define ALIGN_TRUNC2(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0xfffffffffffffff0)
1N/A#define ALIGN_CLRBIT2(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0xfffffffffffffffd)
1N/A#define ALIGN_SETBIT2(x) ALIGN_POINTER(ALIGN_INTEGER(x)|0x2)
1N/A#define ALIGN_TSTBIT2(x) ALIGN_POINTER(ALIGN_INTEGER(x)&0x2)
1N/A
1N/A#endif