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
ce92ee2b
Commit
ce92ee2b
authored
Jun 30, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes and improvements to different packages.
parent
55404ca1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
src/misc/util/utilTruth.h
+25
-0
No files found.
src/misc/util/utilTruth.h
View file @
ce92ee2b
...
@@ -993,6 +993,31 @@ static inline void Abc_TtFlip( word * pTruth, int nWords, int iVar )
...
@@ -993,6 +993,31 @@ static inline void Abc_TtFlip( word * pTruth, int nWords, int iVar )
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
static
inline
word
Abc_Tt6Permute_rec
(
word
t
,
int
*
pPerm
,
int
nVars
)
{
word
uRes0
,
uRes1
;
int
Var
;
if
(
t
==
0
)
return
0
;
if
(
~
t
==
0
)
return
~
(
word
)
0
;
for
(
Var
=
nVars
-
1
;
Var
>=
0
;
Var
--
)
if
(
Abc_Tt6HasVar
(
t
,
Var
)
)
break
;
assert
(
Var
>=
0
);
uRes0
=
Abc_Tt6Permute_rec
(
Abc_Tt6Cofactor0
(
t
,
Var
),
pPerm
,
Var
);
uRes1
=
Abc_Tt6Permute_rec
(
Abc_Tt6Cofactor1
(
t
,
Var
),
pPerm
,
Var
);
return
(
uRes0
&
s_Truths6Neg
[
pPerm
[
Var
]])
|
(
uRes1
&
s_Truths6
[
pPerm
[
Var
]]);
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static
inline
word
Abc_Tt6SwapAdjacent
(
word
Truth
,
int
iVar
)
static
inline
word
Abc_Tt6SwapAdjacent
(
word
Truth
,
int
iVar
)
{
{
return
(
Truth
&
s_PMasks
[
iVar
][
0
])
|
((
Truth
&
s_PMasks
[
iVar
][
1
])
<<
(
1
<<
iVar
))
|
((
Truth
&
s_PMasks
[
iVar
][
2
])
>>
(
1
<<
iVar
));
return
(
Truth
&
s_PMasks
[
iVar
][
0
])
|
((
Truth
&
s_PMasks
[
iVar
][
1
])
<<
(
1
<<
iVar
))
|
((
Truth
&
s_PMasks
[
iVar
][
2
])
>>
(
1
<<
iVar
));
...
...
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