Mercurial > libavutil.hg
diff crc.c @ 993:f8db9a2bae05 libavutil
Add av_ prefix to bswap macros
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:12:30 +0000 |
parents | a13125b5be3a |
children |
line wrap: on
line diff
--- a/crc.c Sat Jul 10 22:09:01 2010 +0000 +++ b/crc.c Sat Jul 10 22:12:30 2010 +0000 @@ -49,7 +49,7 @@ * If 0, you must swap the CRC parameter and the result of av_crc * if you need the standard representation (can be simplified in * most cases to e.g. bswap16): - * bswap_32(crc << (32-bits)) + * av_bswap32(crc << (32-bits)) * @param bits number of bits for the CRC * @param poly generator polynomial without the x**bits coefficient, in the * representation as specified by le @@ -73,7 +73,7 @@ } else { for (c = i << 24, j = 0; j < 8; j++) c = (c<<1) ^ ((poly<<(32-bits)) & (((int32_t)c)>>31) ); - ctx[i] = bswap_32(c); + ctx[i] = av_bswap32(c); } } ctx[256]=1; @@ -121,7 +121,7 @@ crc = ctx[((uint8_t)crc) ^ *buffer++] ^ (crc >> 8); while(buffer<end-3){ - crc ^= le2ne_32(*(const uint32_t*)buffer); buffer+=4; + crc ^= av_le2ne32(*(const uint32_t*)buffer); buffer+=4; crc = ctx[3*256 + ( crc &0xFF)] ^ctx[2*256 + ((crc>>8 )&0xFF)] ^ctx[1*256 + ((crc>>16)&0xFF)]