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
df8b6361
Commit
df8b6361
authored
Dec 05, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed performance bug in matching code.
parent
72404d1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
src/map/if/ifDec16.c
+18
-3
No files found.
src/map/if/ifDec16.c
View file @
df8b6361
...
@@ -781,17 +781,32 @@ void If_CluSwapVars( word * pTruth, int nVars, int * V2P, int * P2V, int iVar, i
...
@@ -781,17 +781,32 @@ void If_CluSwapVars( word * pTruth, int nVars, int * V2P, int * P2V, int iVar, i
}
}
else
else
{
{
/*
iStep = If_CluWordNum(iVar + 1)/2;
iStep = If_CluWordNum(iVar + 1)/2;
jStep = If_CluWordNum(jVar + 1)/2;
jStep = If_CluWordNum(jVar + 1)/2;
for
(
w
=
0
;
w
<
nWords
;
w
+=
2
*
jStep
)
for (
w = 0; w < nWords; w += 2*jStep
)
{
{
for
(
i
=
0
;
i
<
jStep
;
i
+=
2
*
iStep
)
for (
i = 0; i < jStep; i += 2*iStep
)
{
{
temp = pTruth[w + iStep + i];
temp = pTruth[w + iStep + i];
pTruth[w + iStep + i] = pTruth[w + jStep + i];
pTruth[w + iStep + i] = pTruth[w + jStep + i];
pTruth[w + jStep + i] = temp;
pTruth[w + jStep + i] = temp;
}
}
}
*/
iStep
=
If_CluWordNum
(
iVar
+
1
)
/
2
;
jStep
=
If_CluWordNum
(
jVar
+
1
)
/
2
;
for
(
w
=
0
;
w
<
nWords
;
w
+=
2
*
jStep
)
{
for
(
i
=
0
;
i
<
jStep
;
i
+=
2
*
iStep
)
{
for
(
j
=
0
;
j
<
iStep
;
j
++
)
{
temp
=
pTruth
[
w
+
iStep
+
i
+
j
];
pTruth
[
w
+
iStep
+
i
+
j
]
=
pTruth
[
w
+
jStep
+
i
+
j
];
pTruth
[
w
+
jStep
+
i
+
j
]
=
temp
;
}
}
}
}
}
}
if
(
V2P
&&
P2V
)
if
(
V2P
&&
P2V
)
...
...
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