Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
abc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kestrel Collaboration
Kestrel Tooling
abc
Commits
b74b7dfc
Commit
b74b7dfc
authored
Aug 12, 2020
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extending &sim_read to use non-64-divisible pattern counts.
parent
5c8ee4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
src/misc/vec/vecWrd.h
src/misc/vec/vecWrd.h
+13
-3
No files found.
src/misc/vec/vecWrd.h
View file @
b74b7dfc
...
...
@@ -1300,10 +1300,20 @@ static inline Vec_Wrd_t * Vec_WrdReadHex( char * pFileName, int * pnWords, int f
p
=
Vec_WrdAlloc
(
1000
);
while
(
(
c
=
fgetc
(
pFile
))
!=
EOF
)
{
if
(
c
==
'\n'
&&
nWords
==
-
1
)
nWords
=
Vec_WrdSize
(
p
);
if
(
c
==
'\n'
||
c
==
'\r'
||
c
==
'\t'
||
c
==
' '
)
if
(
c
==
'\r'
||
c
==
'\t'
||
c
==
' '
)
continue
;
if
(
c
==
'\n'
)
{
if
(
nChars
>
0
)
{
Vec_WrdPush
(
p
,
Num
);
nChars
=
0
;
Num
=
0
;
}
if
(
nWords
==
-
1
&&
Vec_WrdSize
(
p
)
>
0
)
nWords
=
Vec_WrdSize
(
p
);
continue
;
}
Num
|=
(
word
)
Vec_WrdReadHexOne
((
char
)
c
)
<<
(
nChars
*
4
);
if
(
++
nChars
<
16
)
continue
;
...
...
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