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
a5e9563a
Commit
a5e9563a
authored
Jul 21, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handling corner cases in TT print-out.
parent
9ff1776d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/misc/extra/extraUtilFile.c
+4
-0
No files found.
src/misc/extra/extraUtilFile.c
View file @
a5e9563a
...
...
@@ -592,6 +592,10 @@ void Extra_PrintHexadecimal( FILE * pFile, unsigned Sign[], int nVars )
void
Extra_PrintHexadecimalString
(
char
*
pString
,
unsigned
Sign
[],
int
nVars
)
{
int
nDigits
,
Digit
,
k
;
if
(
nVars
==
0
&&
!
(
Sign
[
0
]
&
1
)
)
{
sprintf
(
pString
,
"0"
);
return
;
}
// const0
if
(
nVars
==
0
&&
(
Sign
[
0
]
&
1
)
)
{
sprintf
(
pString
,
"1"
);
return
;
}
// const1
if
(
nVars
==
1
&&
(
Sign
[
0
]
&
1
)
)
{
sprintf
(
pString
,
"1"
);
return
;
}
// inverter
if
(
nVars
==
1
&&
!
(
Sign
[
0
]
&
1
)
)
{
sprintf
(
pString
,
"2"
);
return
;
}
// buffer
// write the number into the file
nDigits
=
(
1
<<
nVars
)
/
4
;
for
(
k
=
nDigits
-
1
;
k
>=
0
;
k
--
)
...
...
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