Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*++
// Copyright (c) 1997-2002 Microsoft Corporation, All Rights Reserved
Module Name:
CRC32.H
Abstract:
Standard CRC-32 implementation
History:
raymcc 07-Jul-97 Createada
--*/
#ifndef _CRC_H_
#define _CRC_H_
#define STARTING_CRC32_VALUE 0xFFFFFFFF
DWORD UpdateCRC32( LPBYTE pSrc, // Points to buffer
int nBytes, // Number of bytes to compute
DWORD dwOldCrc // Must be STARTING_CRC_VALUE (0xFFFFFFFF)
// if no previous CRC, otherwise this is the
// CRC of the previous cycle.
);
#define FINALIZE_CRC32(x) (x=~x)
#endif
|