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
fb6c9e85
Commit
fb6c9e85
authored
Apr 25, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
486eacc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/proof/ssc/sscUtil.c
+3
-3
No files found.
src/proof/ssc/sscUtil.c
View file @
fb6c9e85
...
...
@@ -45,7 +45,7 @@ struct Hsh_Man_t_
int
nTableSize
;
};
static
inline
int
*
Hsh_ObjData
(
Hsh_Man_t
*
p
,
int
iThis
)
{
return
p
->
pData
+
p
->
nSize
*
iThis
;
}
static
inline
unsigned
*
Hsh_ObjData
(
Hsh_Man_t
*
p
,
int
iThis
)
{
return
p
->
pData
+
p
->
nSize
*
iThis
;
}
static
inline
Hsh_Obj_t
*
Hsh_ObjGet
(
Hsh_Man_t
*
p
,
int
iObj
)
{
return
iObj
==
-
1
?
NULL
:
p
->
pObjs
+
iObj
;
}
////////////////////////////////////////////////////////////////////////
...
...
@@ -104,10 +104,10 @@ static inline int Hsh_ManHash( unsigned * pData, int nSize, int nTableSize )
int
Hsh_ManAdd
(
Hsh_Man_t
*
p
,
int
iThis
)
{
Hsh_Obj_t
*
pObj
;
int
*
pThis
=
Hsh_ObjData
(
p
,
iThis
);
unsigned
*
pThis
=
Hsh_ObjData
(
p
,
iThis
);
int
*
pPlace
=
p
->
pTable
+
Hsh_ManHash
(
pThis
,
p
->
nSize
,
p
->
nTableSize
);
for
(
pObj
=
Hsh_ObjGet
(
p
,
*
pPlace
);
pObj
;
pObj
=
Hsh_ObjGet
(
p
,
pObj
->
iNext
)
)
if
(
!
memcmp
(
pThis
,
Hsh_ObjData
(
p
,
pObj
->
iThis
),
sizeof
(
int
)
*
p
->
nSize
)
)
if
(
!
memcmp
(
pThis
,
Hsh_ObjData
(
p
,
pObj
->
iThis
),
sizeof
(
unsigned
)
*
p
->
nSize
)
)
return
pObj
-
p
->
pObjs
;
assert
(
p
->
nObjs
<
p
->
nTableSize
);
pObj
=
p
->
pObjs
+
p
->
nObjs
;
...
...
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