repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
alsa.audio: move handling of XRUN when writting to the slave task
[AROS.git]
/
rom
/
filesys
/
afs
/
checksums.c
blob
60a2c831b2cb1b6630f3d56c245d8bbc4b2dc5ed
1
/*
2
Copyright © 1995-2005, The AROS Development Team. All rights reserved.
3
$Id$
4
*/
5
6
#include
"os.h"
7
#include
"checksums.h"
8
9
ULONG
calcChkSum
(
ULONG SizeBlock
,
ULONG
*
buffer
) {
10
ULONG sum
=
0
,
value
;
11
ULONG
*
p
, *
end
;
12
13
p
=
buffer
;
14
end
=
buffer
+
SizeBlock
;
15
while
(
p
<
end
)
16
{
17
value
= *
p
++;
18
sum
+=
OS_BE2LONG
(
value
);
19
}
20
return
sum
;
21
}
22