Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

static uint8_t calculateChecksum ( uint8_t *  pb,
size_t  cb,
size_t  iChecksum 
) [static]

Calculate the checksum.

Definition at line 82 of file biossums.c.

{
    uint8_t u8Sum = 0;
    size_t  i;

    for (i = 0; i < cb; i++)
        if (i != iChecksum)
            u8Sum += pb[i];

    return -u8Sum;
}


Generated by  Doxygen 1.6.0   Back to index