X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/68d9d60a4d5a4696faf3e36a9a8a7f10ed5bdd22..2414f97889aa53ca2b357e6ed3fe2960ee1b48ff:/include/crc.h diff --git a/include/crc.h b/include/crc.h index 2ee9a4dd..8e68f3b3 100644 --- a/include/crc.h +++ b/include/crc.h @@ -1,12 +1,13 @@ -/* - * crc.h - * - * Generic CRC calculation code. - * - */ +//----------------------------------------------------------------------------- +// This code is licensed to you under the terms of the GNU GPL, version 2 or, +// at your option, any later version. See the LICENSE.txt file for the text of +// the license. +//----------------------------------------------------------------------------- +// Generic CRC calculation code. +//----------------------------------------------------------------------------- -#ifndef CRC_H_ -#define CRC_H_ +#ifndef __CRC_H +#define __CRC_H #include @@ -26,7 +27,7 @@ extern void crc_init(crc_t *crc, int order, uint32_t polynom, uint32_t initial_v /* Update the crc state. data is the data of length data_width bits (only the the * data_width lower-most bits are used). - */ + */ extern void crc_update(crc_t *crc, uint32_t data, int data_width); /* Clean the crc state, e.g. reset it to initial_value */ @@ -44,4 +45,4 @@ extern uint32_t crc_finish(crc_t *crc); .final_xor = (_final_xor), \ .mask = ((1L<<(_order))-1) } -#endif /* CRC_H_ */ +#endif /* __CRC_H */