bitops.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.
* All rights reserved.
* Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*
*
* $Id: bitops.h,v 1.2 2001/09/22 22:05:42 ca Exp $
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef SM_BITOPS_H
# define SM_BITOPS_H
/*
** Data structure for bit maps.
**
** Each bit in this map can be referenced by an ascii character.
** This is 256 possible bits, or 32 8-bit bytes.
*/
/* internal macros */
/* make sure this index never leaves the allowed range: 0 to BITMAPMAX */
typedef unsigned int BITMAP256[BITMAPBYTES / sizeof (int)];
/* properly case and truncate bit */
/* test bit number N */
/* set bit number N */
/* clear bit number N */
/* clear an entire bit map */
/* bit hacking */
#endif /* ! SM_BITOPS_H */