From: Erik M. <er...@us...> - 2002-01-20 23:16:21
|
Update of /cvsroot/blob/blob/include/blob In directory usw-pr-cvs1:/tmp/cvs-serv335/include/blob Modified Files: Makefile.am Added Files: crc32.h Log Message: I've been playing with Russ' JFFS2 patch and had some problems with its CRC32 implementation (both size and performance). Luckily Russell King wrote a CRC32 implementation without the huge table, and after some tuning it is both small and fast (on ARM). --- NEW FILE: crc32.h --- /* * crc32.c: calculate CRC32 * * Copyright (C) 2002 Erik Mouw <J.A...@it...> * based on linux/drivers/net/am79c961a.c * Copyright (C) 1995-2001 Russell King <rm...@ar...> * * $Id: crc32.h,v 1.1 2002/01/20 23:16:18 erikm Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ident "$Id: crc32.h,v 1.1 2002/01/20 23:16:18 erikm Exp $" #ifndef BLOB_CRC32_H #define BLOB_CRC32_H #include <blob/types.h> u32 crc32(u32 val, const void *data, int len); #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/blob/blob/include/blob/Makefile.am,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- Makefile.am 2002/01/06 18:59:40 1.13 +++ Makefile.am 2002/01/20 23:16:18 1.14 @@ -18,6 +18,7 @@ arch.h \ command.h \ command_hist.h \ + crc32.h \ errno.h \ error.h \ flash.h \ |