Mercurial > libavutil.hg
comparison adler32.c @ 873:4d9ad0ed07d0 libavutil
Replace many includes of libavutil/common.h with what is actually needed
This reduces the number of false dependencies on header files and
speeds up compilation.
author | mru |
---|---|
date | Tue, 09 Mar 2010 17:39:19 +0000 |
parents | f23019f8fd69 |
children |
comparison
equal
deleted
inserted
replaced
872:9d32a031ab0b | 873:4d9ad0ed07d0 |
---|---|
19 * 2. Altered source versions must be plainly marked as such, and must not be | 19 * 2. Altered source versions must be plainly marked as such, and must not be |
20 * misrepresented as being the original software. | 20 * misrepresented as being the original software. |
21 * 3. This notice may not be removed or altered from any source distribution. | 21 * 3. This notice may not be removed or altered from any source distribution. |
22 */ | 22 */ |
23 | 23 |
24 #include "common.h" | 24 #include "config.h" |
25 #include "adler32.h" | 25 #include "adler32.h" |
26 | 26 |
27 #define BASE 65521L /* largest prime smaller than 65536 */ | 27 #define BASE 65521L /* largest prime smaller than 65536 */ |
28 | 28 |
29 #define DO1(buf) {s1 += *buf++; s2 += s1;} | 29 #define DO1(buf) {s1 += *buf++; s2 += s1;} |
51 return (s2 << 16) | s1; | 51 return (s2 << 16) | s1; |
52 } | 52 } |
53 | 53 |
54 #ifdef TEST | 54 #ifdef TEST |
55 #include "log.h" | 55 #include "log.h" |
56 #include "timer.h" | |
56 #define LEN 7001 | 57 #define LEN 7001 |
57 volatile int checksum; | 58 volatile int checksum; |
58 int main(void){ | 59 int main(void){ |
59 int i; | 60 int i; |
60 char data[LEN]; | 61 char data[LEN]; |