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
d4399dbf
Commit
d4399dbf
authored
May 03, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc changes.
parent
32b07625
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
src/map/if/if.h
+2
-0
src/misc/tim/tim.h
+1
-1
src/misc/vec/vecWrd.h
+6
-0
No files found.
src/map/if/if.h
View file @
d4399dbf
...
...
@@ -352,12 +352,14 @@ static inline int If_CutTruthWords( int nVarsMax ) { r
static
inline
int
If_CutPermWords
(
int
nVarsMax
)
{
return
nVarsMax
/
sizeof
(
int
)
+
((
nVarsMax
%
sizeof
(
int
))
>
0
);
}
static
inline
float
If_CutLutArea
(
If_Man_t
*
p
,
If_Cut_t
*
pCut
)
{
return
pCut
->
fUser
?
(
float
)
pCut
->
Cost
:
(
p
->
pPars
->
pLutLib
?
p
->
pPars
->
pLutLib
->
pLutAreas
[
pCut
->
nLeaves
]
:
(
float
)
1
.
0
);
}
static
inline
float
If_CutLutDelay
(
If_Lib_t
*
p
,
int
Size
,
int
iPin
)
{
return
p
?
(
p
->
fVarPinDelays
?
p
->
pLutDelays
[
Size
][
iPin
]
:
p
->
pLutDelays
[
Size
][
0
])
:
1
.
0
;
}
static
inline
word
If_AndToWrd
(
If_And_t
m
)
{
union
{
If_And_t
x
;
word
y
;
}
v
;
v
.
x
=
m
;
return
v
.
y
;
}
static
inline
If_And_t
If_WrdToAnd
(
word
m
)
{
union
{
If_And_t
x
;
word
y
;
}
v
;
v
.
y
=
m
;
return
v
.
x
;
}
static
inline
void
If_AndClear
(
If_And_t
*
pNode
)
{
*
pNode
=
If_WrdToAnd
(
0
);
}
////////////////////////////////////////////////////////////////////////
/// MACRO DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
...
...
src/misc/tim/tim.h
View file @
d4399dbf
...
...
@@ -45,7 +45,7 @@ typedef struct Tim_Man_t_ Tim_Man_t;
/// MACRO DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
#define TIM_ETERNITY 10000
#define TIM_ETERNITY 10000
00000
////////////////////////////////////////////////////////////////////////
/// ITERATORS ///
...
...
src/misc/vec/vecWrd.h
View file @
d4399dbf
...
...
@@ -251,6 +251,12 @@ static inline Vec_Wrd_t * Vec_WrdDupArray( Vec_Wrd_t * pVec )
SeeAlso []
***********************************************************************/
static
inline
void
Vec_WrdErase
(
Vec_Wrd_t
*
p
)
{
ABC_FREE
(
p
->
pArray
);
p
->
nSize
=
0
;
p
->
nCap
=
0
;
}
static
inline
void
Vec_WrdFree
(
Vec_Wrd_t
*
p
)
{
ABC_FREE
(
p
->
pArray
);
...
...
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