# HG changeset patch # User michael # Date 1152390199 0 # Node ID f85d0703845011e31266dac2098b97c7b80d1dbd # Parent bc66b55033ac6ff16608f38c69116b2b7099d138 put the code which is specific for the large crc table under #ifndef CONFIG_SMALL diff -r bc66b55033ac -r f85d07038450 crc.c --- a/crc.c Fri Jul 07 22:43:32 2006 +0000 +++ b/crc.c Sat Jul 08 20:23:19 2006 +0000 @@ -33,10 +33,12 @@ } } ctx[256]=1; +#ifndef CONFIG_SMALL if(ctx_size >= sizeof(AVCRC)*1024) for (i = 0; i < 256; i++) for(j=0; j<3; j++) ctx[256*(j+1) + i]= (ctx[256*j + i]>>8) ^ ctx[ ctx[256*j + i]&0xFF ]; +#endif return 0; } @@ -44,6 +46,7 @@ uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length){ const uint8_t *end= buffer+length; +#ifndef CONFIG_SMALL if(!ctx[256]) while(buffer>16)&0xFF)] ^ctx[0*256 + ((crc>>24) )]; } +#endif while(buffer> 8);