00001 /* clib/include/able/crc.h 00002 * 00003 * ABLE CRC functions 00004 * CCIT CRC-32 implementation uses starting polynomial of 0xedb88320 00005 * 00006 * Copyright 2004 Simtec Electronics 00007 * 00008 * Permission is hereby granted, free of charge, to any person 00009 * obtaining a copy of this software and associated documentation 00010 * files (the "Software"), to deal in the Software without 00011 * restriction, including without limitation the rights to use, copy, 00012 * modify, merge, publish, distribute, sublicense, and/or sell copies 00013 * of the Software, and to permit persons to whom the Software is 00014 * furnished to do so, subject to the following conditions: 00015 * 00016 * The above copyright notice and this permission notice shall be 00017 * included in all copies or substantial portions of the Software. 00018 * 00019 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00020 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00021 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00022 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00023 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00024 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00025 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00026 * SOFTWARE. 00027 * 00028 */ 00029 00030 #ifndef _ABLE_CLIB_ABLE_CRC_H 00031 #define _ABLE_CLIB_ABLE_CRC_H 1 00032 00033 extern u32_t able_crc32(u32_t crc, const u8_t *data, size_t length); 00034 00035 #endif /* _ABLE_CLIB_ABLE_CRC_H */