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
39fe23f0
Commit
39fe23f0
authored
Sep 06, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrated new fast semi-canonical form for Boolean functions up to 16 inputs.
parent
7a6cf9f4
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
3 deletions
+3
-3
src/base/abci/abcRec2.c
+0
-0
src/bool/lucky/lucky.c
+0
-0
src/bool/lucky/luckyFast16.c
+3
-3
src/bool/lucky/luckyFast6.c
+0
-0
src/bool/lucky/luckyInt.h
+0
-0
src/bool/lucky/luckySwap.c
+0
-0
src/bool/lucky/luckySwapIJ.c
+0
-0
No files found.
src/base/abci/abcRec2.c
View file @
39fe23f0
src/bool/lucky/lucky.c
View file @
39fe23f0
src/bool/lucky/luckyFast16.c
View file @
39fe23f0
...
@@ -176,7 +176,7 @@ inline void minimalSwapAndFlipIVar_superFast_lessThen5(word* pInOut, int iVar, i
...
@@ -176,7 +176,7 @@ inline void minimalSwapAndFlipIVar_superFast_lessThen5(word* pInOut, int iVar, i
int
min1
,
min2
,
DifStart0
,
DifStart1
,
DifStartMin
;
int
min1
,
min2
,
DifStart0
,
DifStart1
,
DifStartMin
;
int
M
[
2
];
int
M
[
2
];
int
blockSize
=
1
<<
iVar
;
int
blockSize
=
1
<<
iVar
;
int
shiftSize
=
blockSize
*
4
;
//
int shiftSize = blockSize*4;
M
[
0
]
=
minTemp0_fast
(
pInOut
,
iVar
,
nWords
,
&
DifStart0
);
// 0, 3
M
[
0
]
=
minTemp0_fast
(
pInOut
,
iVar
,
nWords
,
&
DifStart0
);
// 0, 3
M
[
1
]
=
minTemp1_fast
(
pInOut
,
iVar
,
nWords
,
&
DifStart1
);
// 1, 2
M
[
1
]
=
minTemp1_fast
(
pInOut
,
iVar
,
nWords
,
&
DifStart1
);
// 1, 2
...
@@ -513,7 +513,7 @@ inline void minimalSwapAndFlipIVar_superFast_moreThen5(word* pInOut, int iVar, i
...
@@ -513,7 +513,7 @@ inline void minimalSwapAndFlipIVar_superFast_moreThen5(word* pInOut, int iVar, i
int
M
[
2
];
int
M
[
2
];
word
temp
[
1024
];
word
temp
[
1024
];
int
blockSize
=
1
<<
(
iVar
-
6
);
int
blockSize
=
1
<<
(
iVar
-
6
);
int
shiftSize
=
blockSize
*
4
;
//
int shiftSize = blockSize*4;
M
[
0
]
=
minTemp0_fast_moreThen5
(
pInOut
,
iVar
,
nWords
,
&
DifStart0
);
// 0, 3
M
[
0
]
=
minTemp0_fast_moreThen5
(
pInOut
,
iVar
,
nWords
,
&
DifStart0
);
// 0, 3
M
[
1
]
=
minTemp1_fast_moreThen5
(
pInOut
,
iVar
,
nWords
,
&
DifStart1
);
// 1, 2
M
[
1
]
=
minTemp1_fast_moreThen5
(
pInOut
,
iVar
,
nWords
,
&
DifStart1
);
// 1, 2
...
@@ -616,7 +616,7 @@ inline void luckyCanonicizer_final_fast_16Vars(word* pInOut, int nVars, int nWo
...
@@ -616,7 +616,7 @@ inline void luckyCanonicizer_final_fast_16Vars(word* pInOut, int nVars, int nWo
int
luckyCanonicizer_final_fast
(
word
*
pInOut
,
int
nVars
,
char
*
pCanonPerm
)
int
luckyCanonicizer_final_fast
(
word
*
pInOut
,
int
nVars
,
char
*
pCanonPerm
)
{
{
int
pStore
[
16
];
int
pStore
[
16
];
int
uCanonPhase
=
0
;
unsigned
uCanonPhase
=
0
;
int
nWords
=
(
nVars
<=
6
)
?
1
:
(
1
<<
(
nVars
-
6
));
int
nWords
=
(
nVars
<=
6
)
?
1
:
(
1
<<
(
nVars
-
6
));
if
(
nVars
<=
6
)
if
(
nVars
<=
6
)
pInOut
[
0
]
=
luckyCanonicizer_final_fast_6Vars
(
pInOut
[
0
],
pStore
,
pCanonPerm
,
&
uCanonPhase
);
pInOut
[
0
]
=
luckyCanonicizer_final_fast_6Vars
(
pInOut
[
0
],
pStore
,
pCanonPerm
,
&
uCanonPhase
);
...
...
src/bool/lucky/luckyFast6.c
View file @
39fe23f0
src/bool/lucky/luckyInt.h
View file @
39fe23f0
src/bool/lucky/luckySwap.c
View file @
39fe23f0
src/bool/lucky/luckySwapIJ.c
View file @
39fe23f0
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