-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwolutil.h
More file actions
37 lines (32 loc) · 700 Bytes
/
wolutil.h
File metadata and controls
37 lines (32 loc) · 700 Bytes
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
/*
* wolutil.h
*
* Created on: Jul 31, 2014
* Author: user
*/
#ifndef WOLUTIL_H_
#define WOLUTIL_H_
#include "common.h"
#include <boost/dynamic_bitset.hpp>
namespace wolver
{
dbitset
createSubsetOfDynamicBitSet (dbitset &source, int low, int high);
bool
fullAdder (bool b1, bool b2, bool& carry);
dbitset
bitSetAdd (dbitset val1, dbitset val2);
dbitset
bitSetMul (dbitset val1, dbitset val2);
dbitset
bitSetSub (dbitset val1, dbitset val2);
dbitset
bitSetDiv (dbitset val1, dbitset val2, bool remainder);
dbitset
bitSetInc (dbitset val);
dbitset
bitSetDec (dbitset val);
dbitset
bitSetRand (dbitset lower, dbitset upper);
}
#endif /* WOLUTIL_H_ */