~ubuntu-branches/ubuntu/hardy/libbit-vector-perl/hardy

« back to all changes in this revision

Viewing changes to BitVector.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Hammers
  • Date: 2004-12-20 20:00:17 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041220200017-6jteet1vl3p0okbv
Tags: 6.4-4
Rebuild with adjusted dependencies. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef MODULE_BIT_VECTOR
2
2
#define MODULE_BIT_VECTOR
 
3
#ifdef __cplusplus
 
4
extern "C"
 
5
{
 
6
#endif
3
7
/*****************************************************************************/
4
8
/*  MODULE NAME:  BitVector.h                           MODULE TYPE:  (adt)  */
5
9
/*****************************************************************************/
222
226
boolean Set_subset           (wordptr X, wordptr Y);            /* X in Y ?  */
223
227
 
224
228
N_int   Set_Norm             (wordptr addr);                    /* = | X |   */
 
229
N_int   Set_Norm2            (wordptr addr);                    /* = | X |   */
 
230
N_int   Set_Norm3            (wordptr addr);                    /* = | X |   */
225
231
Z_long  Set_Min              (wordptr addr);                    /* = min(X)  */
226
232
Z_long  Set_Max              (wordptr addr);                    /* = max(X)  */
227
233
 
265
271
#define  ERRCODE_ZERO  "division by zero error"
266
272
#define  ERRCODE_OOPS  "unexpected internal error - please contact author"
267
273
 
 
274
extern const N_int BitVector_BYTENORM[256];
 
275
/*
 
276
{
 
277
    0x00, 0x01, 0x01, 0x02,  0x01, 0x02, 0x02, 0x03,
 
278
    0x01, 0x02, 0x02, 0x03,  0x02, 0x03, 0x03, 0x04,
 
279
    0x01, 0x02, 0x02, 0x03,  0x02, 0x03, 0x03, 0x04,
 
280
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
281
    0x01, 0x02, 0x02, 0x03,  0x02, 0x03, 0x03, 0x04,
 
282
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
283
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
284
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
285
    0x01, 0x02, 0x02, 0x03,  0x02, 0x03, 0x03, 0x04,
 
286
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
287
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
288
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
289
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
290
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
291
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
292
    0x04, 0x05, 0x05, 0x06,  0x05, 0x06, 0x06, 0x07,
 
293
    0x01, 0x02, 0x02, 0x03,  0x02, 0x03, 0x03, 0x04,
 
294
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
295
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
296
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
297
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
298
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
299
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
300
    0x04, 0x05, 0x05, 0x06,  0x05, 0x06, 0x06, 0x07,
 
301
    0x02, 0x03, 0x03, 0x04,  0x03, 0x04, 0x04, 0x05,
 
302
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
303
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
304
    0x04, 0x05, 0x05, 0x06,  0x05, 0x06, 0x06, 0x07,
 
305
    0x03, 0x04, 0x04, 0x05,  0x04, 0x05, 0x05, 0x06,
 
306
    0x04, 0x05, 0x05, 0x06,  0x05, 0x06, 0x06, 0x07,
 
307
    0x04, 0x05, 0x05, 0x06,  0x05, 0x06, 0x06, 0x07,
 
308
    0x05, 0x06, 0x06, 0x07,  0x06, 0x07, 0x07, 0x08
 
309
};
 
310
*/
 
311
 
268
312
/*****************************************************************************/
269
313
/*  MODULE IMPLEMENTATION:                                                   */
270
314
/*****************************************************************************/
271
315
 
272
316
/*****************************************************************************/
273
 
/*  VERSION:  6.3                                                            */
 
317
/*  VERSION:  6.4                                                            */
274
318
/*****************************************************************************/
275
319
/*  VERSION HISTORY:                                                         */
276
320
/*****************************************************************************/
277
321
/*                                                                           */
 
322
/*    Version 6.4  03.10.04  Added C++ comp. directives. Improved "Norm()".  */
278
323
/*    Version 6.3  28.09.02  Added "Create_List()" and "GCD2()".             */
279
324
/*    Version 6.2  15.09.02  Overhauled error handling. Fixed "GCD()".       */
280
325
/*    Version 6.1  08.10.01  Make VMS linker happy: _lsb,_msb => _lsb_,_msb_ */
312
357
/*  COPYRIGHT:                                                               */
313
358
/*****************************************************************************/
314
359
/*                                                                           */
315
 
/*    Copyright (c) 1995 - 2002 by Steffen Beyer.                            */
 
360
/*    Copyright (c) 1995 - 2004 by Steffen Beyer.                            */
316
361
/*    All rights reserved.                                                   */
317
362
/*                                                                           */
318
363
/*****************************************************************************/
337
382
/*    or download a copy from ftp://ftp.gnu.org/pub/gnu/COPYING.LIB-2.0      */
338
383
/*                                                                           */
339
384
/*****************************************************************************/
 
385
#ifdef __cplusplus
 
386
}
 
387
#endif
340
388
#endif