Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Deepali Garg
Ph2_ACF
Commits
cb37f59e
Commit
cb37f59e
authored
Jul 06, 2016
by
Deepali-Garg
Browse files
Sparse+CLuster
parent
d814ac45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Utils/Event.cc
View file @
cb37f59e
...
...
@@ -150,19 +150,19 @@ namespace Ph2_HwInterface {
//for ( uint8_t i = vsize; i > 0; i-- )
//fEventData.push_back ( list[list.size() - i] );
event_size
=
EVENT_HEADER_SIZE_
CHAR
;
event_size
=
EVENT_HEADER_SIZE_
32
;
begin
=
0
;
end
=
0
;
for
(
auto
&
it
:
fSparseMap
)
{
uint8_t
cFeId
=
static_cast
<
uint8_t
>
(
it
.
first
);
uint8_t
cNCbc
=
static_cast
<
uint8_t
>
(
it
.
second
.
size
()
);
event_size
+=
cNCbc
*
CBC_EVENT_SIZE_
CHAR
;
event_size
+=
cNCbc
*
CBC_EVENT_SIZE_
32
;
for
(
auto
&
jt
:
it
.
second
)
{
uint8_t
cCbcId
=
static_cast
<
uint8_t
>
(
jt
.
first
);
begin
=
EVENT_HEADER_SIZE_
CHAR
+
cFeId
*
CBC_EVENT_SIZE_
CHAR
*
cNCbc
+
cCbcId
*
CBC_EVENT_SIZE_
CHAR
;
end
=
begin
+
CBC_EVENT_SIZE_
CHAR
;
begin
=
EVENT_HEADER_SIZE_
32
+
cFeId
*
CBC_EVENT_SIZE_
32
*
cNCbc
+
cCbcId
*
CBC_EVENT_SIZE_
32
;
end
=
begin
+
CBC_EVENT_SIZE_
32
;
for
(
uint32_t
position
=
begin
;
position
<=
end
;
position
++
)
{
uint32_t
cByteP
=
position
/
8
;
uint32_t
cBitP
=
position
%
8
;
...
...
Write
Preview
Supports
Markdown
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