NETCalcCRC*

C Specification

#include <revolution/net.h>

u16 NETCalcCRC16( const void* datap, u32 size );
u32 NETCalcCRC32( const void* datap, u32 size );

Arguments

datap Pointer to the input data
size Size of the input data

Return Values

Various CRC values

Description

This function calculates various CRC values.
Any size and alignment position can be used for the input data.

The calculation method used by each function is described below.
FunctionsNumber of bitsGenerated polynomialsInitial ValueResult complement process
NETCalcCRC1616-bitx^16 + x^15 + x^2 + x^00x0000None.
NETCalcCRC3232-bitx^32+x^26+x^23+x^22+x^16+x^12+x^11+x^10+x^8+x^7+x^5+x^4+x^2+x^1+x^00xFFFFFFFF1's complement

See Also

Revision History

2006/09/01 Initial version.


CONFIDENTIAL