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
ff963167
Commit
ff963167
authored
Jul 27, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added random generation of 64-bit numbers.
parent
70129645
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
src/aig/aig/aig.h
+1
-0
src/aig/aig/aigUtil.c
+20
-3
No files found.
src/aig/aig/aig.h
View file @
ff963167
...
...
@@ -676,6 +676,7 @@ extern void Aig_ManCleanPioNumbers( Aig_Man_t * p );
extern
int
Aig_ManChoiceNum
(
Aig_Man_t
*
p
);
extern
char
*
Aig_FileNameGenericAppend
(
char
*
pBase
,
char
*
pSuffix
);
extern
unsigned
Aig_ManRandom
(
int
fReset
);
extern
word
Aig_ManRandom64
(
int
fReset
);
extern
void
Aig_ManRandomInfo
(
Vec_Ptr_t
*
vInfo
,
int
iInputStart
,
int
iWordStart
,
int
iWordStop
);
extern
void
Aig_NodeUnionLists
(
Vec_Ptr_t
*
vArr1
,
Vec_Ptr_t
*
vArr2
,
Vec_Ptr_t
*
vArr
);
extern
void
Aig_NodeIntersectLists
(
Vec_Ptr_t
*
vArr1
,
Vec_Ptr_t
*
vArr2
,
Vec_Ptr_t
*
vArr
);
...
...
src/aig/aig/aigUtil.c
View file @
ff963167
...
...
@@ -1118,7 +1118,7 @@ char * Aig_FileNameGenericAppend( char * pBase, char * pSuffix )
/**Function*************************************************************
Synopsis [Creates a sequence o
r
random numbers.]
Synopsis [Creates a sequence o
f
random numbers.]
Description []
...
...
@@ -1148,7 +1148,7 @@ void Aig_ManRandomTest2()
/**Function*************************************************************
Synopsis [Creates a sequence o
r
random numbers.]
Synopsis [Creates a sequence o
f
random numbers.]
Description []
...
...
@@ -1181,7 +1181,7 @@ void Aig_ManRandomTest1()
/**Function*************************************************************
Synopsis [Creates a sequence o
r
random numbers.]
Synopsis [Creates a sequence o
f
random numbers.]
Description []
...
...
@@ -1204,6 +1204,23 @@ unsigned Aig_ManRandom( int fReset )
return
(
m_z
<<
16
)
+
m_w
;
}
/**Function*************************************************************
Synopsis [Creates a sequence of random numbers.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
word
Aig_ManRandom64
(
int
fReset
)
{
word
Res
=
((
word
)
Aig_ManRandom
(
fReset
))
<<
32
;
return
Res
|
(
word
)
Aig_ManRandom
(
0
);
}
/**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