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
951ca48b
Commit
951ca48b
authored
Jan 24, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes to sort for timing.
parent
9ef44765
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
abclib.dsp
+4
-0
src/opt/sfm/sfmTim.c
+7
-3
No files found.
abclib.dsp
View file @
951ca48b
...
...
@@ -747,6 +747,10 @@ SOURCE=.\src\base\wlc\wlc.h
# End Source File
# Begin Source File
SOURCE=.\src\base\wlc\wlcAbc.c
# End Source File
# Begin Source File
SOURCE=.\src\base\wlc\wlcAbs.c
# End Source File
# Begin Source File
...
...
src/opt/sfm/sfmTim.c
View file @
951ca48b
...
...
@@ -336,13 +336,17 @@ void Sfm_TimUpdateTiming( Sfm_Tim_t * p, Vec_Int_t * vTimeNodes )
int
Sfm_TimSortArrayByArrival
(
Sfm_Tim_t
*
p
,
Vec_Int_t
*
vNodes
,
int
iPivot
)
{
word
Entry
;
int
i
,
Id
,
nDivNew
=
-
1
;
int
MaxDelay
=
Sfm_TimArrMaxId
(
p
,
iPivot
);
int
i
,
Id
,
Time
,
nDivNew
=
-
1
;
int
MaxDelay
=
ABC_INFINITY
/
2
+
Sfm_TimArrMaxId
(
p
,
iPivot
);
assert
(
p
->
DeltaCrit
>
0
);
// collect nodes
Vec_WrdClear
(
&
p
->
vSortData
);
Vec_IntForEachEntry
(
vNodes
,
Id
,
i
)
Vec_WrdPush
(
&
p
->
vSortData
,
((
word
)
Id
<<
32
)
|
Sfm_TimArrMaxId
(
p
,
Id
)
);
{
Time
=
Sfm_TimArrMaxId
(
p
,
Id
);
assert
(
-
ABC_INFINITY
/
2
<
Time
&&
Time
<
ABC_INFINITY
/
2
);
Vec_WrdPush
(
&
p
->
vSortData
,
((
word
)
Id
<<
32
)
|
(
ABC_INFINITY
/
2
+
Time
)
);
}
// sort nodes by delay
Abc_QuickSort3
(
Vec_WrdArray
(
&
p
->
vSortData
),
Vec_WrdSize
(
&
p
->
vSortData
),
0
);
// collect sorted nodes and find place where divisors end
...
...
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