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
f16457aa
Commit
f16457aa
authored
Apr 10, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added/moved several APIs.
parent
f380bb5a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
13 deletions
+20
-13
src/aig/gia/giaBidec.c
+0
-4
src/bool/bdc/bdc.h
+4
-0
src/misc/extra/extra.h
+1
-0
src/misc/extra/extraUtilFile.c
+15
-9
No files found.
src/aig/gia/giaBidec.c
View file @
f16457aa
...
...
@@ -28,10 +28,6 @@ ABC_NAMESPACE_IMPL_START
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
static
inline
int
Bdc_FunObjCopy
(
Bdc_Fun_t
*
pObj
)
{
return
Abc_LitNotCond
(
Bdc_FuncCopyInt
(
Bdc_Regular
(
pObj
)),
Bdc_IsComplement
(
pObj
)
);
}
static
inline
int
Bdc_FunFanin0Copy
(
Bdc_Fun_t
*
pObj
)
{
return
Bdc_FunObjCopy
(
Bdc_FuncFanin0
(
pObj
)
);
}
static
inline
int
Bdc_FunFanin1Copy
(
Bdc_Fun_t
*
pObj
)
{
return
Bdc_FunObjCopy
(
Bdc_FuncFanin1
(
pObj
)
);
}
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
...
...
src/bool/bdc/bdc.h
View file @
f16457aa
...
...
@@ -78,6 +78,10 @@ extern int Bdc_FuncCopyInt( Bdc_Fun_t * p );
extern
void
Bdc_FuncSetCopy
(
Bdc_Fun_t
*
p
,
void
*
pCopy
);
extern
void
Bdc_FuncSetCopyInt
(
Bdc_Fun_t
*
p
,
int
iCopy
);
/*=== working with saved copies ==========================================*/
static
inline
int
Bdc_FunObjCopy
(
Bdc_Fun_t
*
pObj
)
{
return
Abc_LitNotCond
(
Bdc_FuncCopyInt
(
Bdc_Regular
(
pObj
)),
Bdc_IsComplement
(
pObj
)
);
}
static
inline
int
Bdc_FunFanin0Copy
(
Bdc_Fun_t
*
pObj
)
{
return
Bdc_FunObjCopy
(
Bdc_FuncFanin0
(
pObj
)
);
}
static
inline
int
Bdc_FunFanin1Copy
(
Bdc_Fun_t
*
pObj
)
{
return
Bdc_FunObjCopy
(
Bdc_FuncFanin1
(
pObj
)
);
}
ABC_NAMESPACE_HEADER_END
...
...
src/misc/extra/extra.h
View file @
f16457aa
...
...
@@ -115,6 +115,7 @@ extern char * Extra_TimeStamp();
extern
char
*
Extra_StringAppend
(
char
*
pStrGiven
,
char
*
pStrAdd
);
extern
unsigned
Extra_ReadBinary
(
char
*
Buffer
);
extern
void
Extra_PrintBinary
(
FILE
*
pFile
,
unsigned
Sign
[],
int
nBits
);
extern
int
Extra_ReadHex
(
unsigned
Sign
[],
char
*
pString
,
int
nDigits
);
extern
int
Extra_ReadHexadecimal
(
unsigned
Sign
[],
char
*
pString
,
int
nVars
);
extern
void
Extra_PrintHexadecimal
(
FILE
*
pFile
,
unsigned
Sign
[],
int
nVars
);
extern
void
Extra_PrintHexadecimalString
(
char
*
pString
,
unsigned
Sign
[],
int
nVars
);
...
...
src/misc/extra/extraUtilFile.c
View file @
f16457aa
...
...
@@ -446,16 +446,9 @@ void Extra_PrintBinary( FILE * pFile, unsigned Sign[], int nBits )
SeeAlso []
***********************************************************************/
int
Extra_ReadHex
adecimal
(
unsigned
Sign
[],
char
*
pString
,
int
nVar
s
)
int
Extra_ReadHex
(
unsigned
Sign
[],
char
*
pString
,
int
nDigit
s
)
{
int
nWords
,
nDigits
,
Digit
,
k
,
c
;
nWords
=
Extra_TruthWordNum
(
nVars
);
for
(
k
=
0
;
k
<
nWords
;
k
++
)
Sign
[
k
]
=
0
;
// read the number from the string
nDigits
=
(
1
<<
nVars
)
/
4
;
if
(
nDigits
==
0
)
nDigits
=
1
;
int
Digit
,
k
,
c
;
for
(
k
=
0
;
k
<
nDigits
;
k
++
)
{
c
=
nDigits
-
1
-
k
;
...
...
@@ -470,6 +463,19 @@ int Extra_ReadHexadecimal( unsigned Sign[], char * pString, int nVars )
}
return
1
;
}
int
Extra_ReadHexadecimal
(
unsigned
Sign
[],
char
*
pString
,
int
nVars
)
{
int
nWords
,
nDigits
,
k
;
nWords
=
Extra_TruthWordNum
(
nVars
);
for
(
k
=
0
;
k
<
nWords
;
k
++
)
Sign
[
k
]
=
0
;
// read the number from the string
nDigits
=
(
1
<<
nVars
)
/
4
;
if
(
nDigits
==
0
)
nDigits
=
1
;
Extra_ReadHex
(
Sign
,
pString
,
nDigits
);
return
1
;
}
/**Function*************************************************************
...
...
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