alsa.audio: move handling of XRUN when writting to the slave task
[AROS.git] / rom / filesys / afs / checksums.c
blob60a2c831b2cb1b6630f3d56c245d8bbc4b2dc5ed
1 /*
2 Copyright © 1995-2005, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "os.h"
7 #include "checksums.h"
9 ULONG calcChkSum(ULONG SizeBlock, ULONG *buffer) {
10 ULONG sum=0, value;
11 ULONG *p, *end;
13 p = buffer;
14 end = buffer + SizeBlock;
15 while (p < end)
17 value = *p++;
18 sum += OS_BE2LONG(value);
20 return sum;