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
2fcdd113
Commit
2fcdd113
authored
Feb 27, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with cube hashing.
parent
118776f3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
src/misc/extra/extraUtilPrime.c
+0
-0
src/misc/vec/vecBit.h
+25
-0
No files found.
src/misc/extra/extraUtilPrime.c
View file @
2fcdd113
This diff is collapsed.
Click to expand it.
src/misc/vec/vecBit.h
View file @
2fcdd113
...
...
@@ -310,6 +310,13 @@ static inline void Vec_BitWriteEntry( Vec_Bit_t * p, int i, int Entry )
p
->
pArray
[
i
>>
5
]
&=
~
(
1
<<
(
i
&
31
));
else
assert
(
0
);
}
static
inline
int
Vec_BitAddEntry
(
Vec_Bit_t
*
p
,
int
i
)
{
if
(
Vec_BitEntry
(
p
,
i
)
)
return
1
;
Vec_BitWriteEntry
(
p
,
i
,
1
);
return
0
;
}
/**Function*************************************************************
...
...
@@ -601,6 +608,24 @@ static inline int Vec_BitCount( Vec_Bit_t * p )
return
Counter
;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static
inline
void
Vec_BitReset
(
Vec_Bit_t
*
p
)
{
int
i
,
nWords
=
(
p
->
nSize
>>
5
)
+
((
p
->
nSize
&
31
)
>
0
);
for
(
i
=
0
;
i
<
nWords
;
i
++
)
p
->
pArray
[
i
]
=
0
;
}
ABC_NAMESPACE_HEADER_END
#endif
...
...
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