Changeset 5f67cd61 in mainline


Ignore:
Timestamp:
2012-04-18T07:41:45Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f22d5ef0
Parents:
0c37135
Message:

updated crc comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_crc.c

    r0c37135 r5f67cd61  
    7575};
    7676
     77/** Modify CRC value.
     78 *
     79 * @param crc   current CRC value
     80 * @param data  new byte of data to be "added" to CRC
     81 * @return              updated CRC value
     82 */
    7783static inline uint16_t crc16_byte(uint16_t crc, const uint8_t data)
    7884{
     
    8086}
    8187
    82 /**
    83  * crc16 - compute the CRC-16 for the data buffer
    84  * @crc:        previous CRC value
    85  * @buffer:     data pointer
    86  * @len:        number of bytes in the buffer
     88/** Compute the CRC-16 for the data buffer.
    8789 *
    88  * Returns the updated CRC value.
     90 * @param crc           previous CRC value
     91 * @param buffer        data pointer
     92 * @param len           number of bytes in the buffer
     93 * @return                      updated CRC value
    8994 */
    9095uint16_t crc16(uint16_t crc, const uint8_t *buffer, size_t len)
Note: See TracChangeset for help on using the changeset viewer.