Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
0175e1a9
Commit
0175e1a9
authored
Oct 03, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C++ portability changes.
parent
a47e3b6f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
src/bool/lucky/lucky.c
+1
-1
src/bool/lucky/luckyInt.h
+15
-15
src/bool/lucky/luckySwap.c
+1
-1
No files found.
src/bool/lucky/lucky.c
View file @
0175e1a9
...
...
@@ -19,7 +19,7 @@
ABC_NAMESPACE_IMPL_START
in
line
in
t
memCompare
(
word
*
x
,
word
*
y
,
int
nVars
)
int
memCompare
(
word
*
x
,
word
*
y
,
int
nVars
)
{
int
i
;
for
(
i
=
Kit_TruthWordNum_64bit
(
nVars
)
-
1
;
i
>=
0
;
i
--
)
...
...
src/bool/lucky/luckyInt.h
View file @
0175e1a9
...
...
@@ -109,24 +109,24 @@ static inline int luckyMin( int x, int y ) { return (x < y) ? x : y; }
static
inline
int
luckyMax
(
int
x
,
int
y
)
{
return
(
x
<
y
)
?
y
:
x
;
}
extern
in
line
int
memCompare
(
word
*
x
,
word
*
y
,
int
nVars
);
extern
in
line
int
Kit_TruthWordNum_64bit
(
int
nVars
);
extern
in
t
memCompare
(
word
*
x
,
word
*
y
,
int
nVars
);
extern
in
t
Kit_TruthWordNum_64bit
(
int
nVars
);
extern
Abc_TtStore_t
*
setTtStore
(
char
*
pFileInput
);
extern
inline
void
Abc_TruthStoreFree
(
Abc_TtStore_t
*
p
);
extern
inline
void
Kit_TruthChangePhase_64bit
(
word
*
pInOut
,
int
nVars
,
int
iVar
);
extern
inline
void
Kit_TruthNot_64bit
(
word
*
pIn
,
int
nVars
);
extern
inline
void
Kit_TruthCopy_64bit
(
word
*
pOut
,
word
*
pIn
,
int
nVars
);
extern
inline
void
Kit_TruthSwapAdjacentVars_64bit
(
word
*
pInOut
,
int
nVars
,
int
iVar
);
extern
in
line
int
Kit_TruthCountOnes_64bit
(
word
*
pIn
,
int
nVars
);
extern
void
Abc_TruthStoreFree
(
Abc_TtStore_t
*
p
);
extern
void
Kit_TruthChangePhase_64bit
(
word
*
pInOut
,
int
nVars
,
int
iVar
);
extern
void
Kit_TruthNot_64bit
(
word
*
pIn
,
int
nVars
);
extern
void
Kit_TruthCopy_64bit
(
word
*
pOut
,
word
*
pIn
,
int
nVars
);
extern
void
Kit_TruthSwapAdjacentVars_64bit
(
word
*
pInOut
,
int
nVars
,
int
iVar
);
extern
in
t
Kit_TruthCountOnes_64bit
(
word
*
pIn
,
int
nVars
);
extern
void
simpleMinimal
(
word
*
x
,
word
*
pAux
,
word
*
minimal
,
permInfo
*
pi
,
int
nVars
);
extern
permInfo
*
setPermInfoPtr
(
int
var
);
extern
permInfo
*
setPermInfoPtr
(
int
var
);
extern
void
freePermInfoPtr
(
permInfo
*
x
);
extern
inline
void
Kit_TruthSemiCanonicize_Yasha_simple
(
word
*
pInOut
,
int
nVars
,
int
*
pStore
);
extern
inline
unsigned
Kit_TruthSemiCanonicize_Yasha
(
word
*
pInOut
,
int
nVars
,
char
*
pCanonPerm
);
extern
inline
unsigned
Kit_TruthSemiCanonicize_Yasha1
(
word
*
pInOut
,
int
nVars
,
char
*
pCanonPerm
,
int
*
pStore
);
extern
inline
word
luckyCanonicizer_final_fast_6Vars
(
word
InOut
,
int
*
pStore
,
char
*
pCanonPerm
,
unsigned
*
pCanonPhase
);
extern
inline
word
luckyCanonicizer_final_fast_6Vars1
(
word
InOut
,
int
*
pStore
,
char
*
pCanonPerm
,
unsigned
*
pCanonPhase
);
extern
inline
unsigned
adjustInfoAfterSwap
(
char
*
pCanonPerm
,
unsigned
uCanonPhase
,
int
iVar
,
unsigned
info
);
extern
void
Kit_TruthSemiCanonicize_Yasha_simple
(
word
*
pInOut
,
int
nVars
,
int
*
pStore
);
extern
unsigned
Kit_TruthSemiCanonicize_Yasha
(
word
*
pInOut
,
int
nVars
,
char
*
pCanonPerm
);
extern
unsigned
Kit_TruthSemiCanonicize_Yasha1
(
word
*
pInOut
,
int
nVars
,
char
*
pCanonPerm
,
int
*
pStore
);
extern
word
luckyCanonicizer_final_fast_6Vars
(
word
InOut
,
int
*
pStore
,
char
*
pCanonPerm
,
unsigned
*
pCanonPhase
);
extern
word
luckyCanonicizer_final_fast_6Vars1
(
word
InOut
,
int
*
pStore
,
char
*
pCanonPerm
,
unsigned
*
pCanonPhase
);
extern
unsigned
adjustInfoAfterSwap
(
char
*
pCanonPerm
,
unsigned
uCanonPhase
,
int
iVar
,
unsigned
info
);
extern
void
resetPCanonPermArray_6Vars
(
char
*
x
);
extern
void
swap_ij
(
word
*
f
,
int
totalVars
,
int
varI
,
int
varJ
);
...
...
src/bool/lucky/luckySwap.c
View file @
0175e1a9
...
...
@@ -33,7 +33,7 @@ static word mask[6][2] = {
};
*/
in
line
in
t
Kit_TruthWordNum_64bit
(
int
nVars
)
{
return
nVars
<=
6
?
1
:
(
1
<<
(
nVars
-
6
));}
int
Kit_TruthWordNum_64bit
(
int
nVars
)
{
return
nVars
<=
6
?
1
:
(
1
<<
(
nVars
-
6
));}
inline
int
Kit_WordCountOnes_64bit
(
word
x
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment