From b5a6517e9d8f319d7a965fd5c5751b925efeb064 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 27 May 2013 03:23:33 -0400 Subject: Remove explicit config.h and system.h includes from DSP code. Replace with rbcodecconfig.h and platform.h includes. Remove now- unneeded ones as well. Change-Id: I6111b71e90bf86d9fe272a7916f2d34a5c6dd724 --- lib/rbcodec/platform.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/rbcodec/platform.h') diff --git a/lib/rbcodec/platform.h b/lib/rbcodec/platform.h index fe79358b21..be2fd059d9 100644 --- a/lib/rbcodec/platform.h +++ b/lib/rbcodec/platform.h @@ -31,6 +31,16 @@ size_t strlcpy(char *dst, const char *src, size_t siz); #ifndef BIT_N # define BIT_N(n) (1U << (n)) #endif + +#ifndef MASK_N +/* Make a mask of n contiguous bits, shifted left by 'shift' */ +# define MASK_N(type, n, shift) \ + ((type)((((type)1 << (n)) - (type)1) << (shift))) +#endif + +#ifndef INIT_ATTR +# define INIT_ATTR +#endif /* #ifdef CODEC @@ -115,4 +125,6 @@ static inline int32_t clip_sample_16(int32_t sample) } #endif */ + +int find_first_set_bit(uint32_t value); #endif /* PLATFORM_H_INCLUDED */ -- cgit v1.2.3