This repository was archived by the owner on Jan 23, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathbitvec.h
40 lines (33 loc) · 1.17 KB
/
bitvec.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
// This include file determines how BitVec is implemented.
//
#ifndef_BITVEC_INCLUDED_
#define_BITVEC_INCLUDED_ 1
// This class simplifies creation and usage of "ShortLong" bitsets.
//
// Create new bitsets like so:
//
// BitVecTraits traits(size, pCompiler);
// BitVec bitvec = BitVecOps::MakeEmpty(&traits);
//
// and call functions like so:
//
// BitVecOps::AddElemD(&traits, bitvec, 10);
// BitVecOps::IsMember(&traits, bitvec, 10));
//
#include"bitset.h"
#include"compilerbitsettraits.h"
#include"bitsetasshortlong.h"
typedefBitSetOps</*BitSetType*/BitSetShortLongRep,
/*Brand*/BSShortLong,
/*Env*/BitVecTraits*,
/*BitSetTraits*/BitVecTraits>
BitVecOps;
typedefBitSetShortLongRepBitVec;
// These types should be used as the types for BitVec arguments and return values, respectively.
typedefBitVecOps::ValArgTypeBitVec_ValArg_T;
typedefBitVecOps::RetValTypeBitVec_ValRet_T;
#endif// _BITVEC_INCLUDED_