X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=wma_common.c;h=519be89cfa2f1c3a74b7f90fea4e2045d2f6a6a7;hp=0cb881e5de2eb851e5e0594d9fa18de17f100002;hb=3b447b02e2d74d596ecf6f5f764bf847653d407c;hpb=b0fe6d882dd35b01360a66e130d6714aff7b6a0d diff --git a/wma_common.c b/wma_common.c index 0cb881e5..519be89c 100644 --- a/wma_common.c +++ b/wma_common.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2010 Andre Noll + * Copyright (C) 2009-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -28,6 +28,8 @@ * \param pattern_len The length of the pattern in bytes. * \param buf The buffer to search for the pattern. * \param buf_size The number of bytes in \a buf. + * + * \return A pointer into \a buf or \p NULL if the pattern was not found. */ const char *search_pattern(const char *pattern, int pattern_len, const char *buf, int buf_size) @@ -116,7 +118,7 @@ int read_asf_header(const char *buf, int loaded, struct asf_header_info *ahi) return 1; } -const uint8_t log2_tab[256] = { +static const uint8_t log2_tab[256] = { 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, @@ -142,7 +144,7 @@ const uint8_t log2_tab[256] = { * * \return An integer approximation of log2(v). */ -int wma_log2(unsigned int v) +__a_const int wma_log2(unsigned int v) { int n = 0; if (v & 0xffff0000) {