PandA-2024.02
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
+
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
+
Enumerations
a
b
c
d
f
g
i
m
n
o
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
+
Related Functions
a
b
c
e
f
h
i
l
o
p
r
s
t
u
v
w
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
q
r
s
t
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Enumerations
a
b
c
d
e
f
h
i
k
l
m
o
p
r
s
t
u
v
+
Enumerator
a
b
c
d
e
f
g
i
k
l
n
o
p
r
s
t
u
v
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
documentation
tutorial_fpl_2017
lab4
materials
4.1
checksum.c
Go to the documentation of this file.
1
#include <stdint.h>
2
3
#include "
checksum.h
"
4
5
uint8_t
checksum
(uint64_t in1, uint64_t in2)
6
{
7
uint8_t
sum
= 0;
8
for
(
int
i = 0; i <
sizeof
(uint64_t); i++)
9
{
10
uint8_t a = (in1 >> (8*i)) & 0xFF;
11
uint8_t b = (in2 >> (8*i)) & 0xFF;
12
sum += a + b;
13
}
14
return
sum
;
15
}
checksum
uint8_t checksum(uint64_t in1, uint64_t in2)
Definition:
checksum.c:5
sum
int sum
Definition:
dotproduct.h:3
checksum.h
Generated on Mon Feb 12 2024 13:02:48 for PandA-2024.02 by
1.8.13