diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2013-05-27 03:23:33 -0400 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2013-05-27 03:23:33 -0400 |
| commit | b5a6517e9d8f319d7a965fd5c5751b925efeb064 (patch) | |
| tree | 3d4f548f85fa87a736b72eef237fb6fbd44d16af /lib/rbcodec/platform.h | |
| parent | 30fe6eb66c59f8c2b0b16ef305a9ab3742595115 (diff) | |
| download | rockbox-b5a6517e9d8f319d7a965fd5c5751b925efeb064.zip rockbox-b5a6517e9d8f319d7a965fd5c5751b925efeb064.tar.gz rockbox-b5a6517e9d8f319d7a965fd5c5751b925efeb064.tar.bz2 rockbox-b5a6517e9d8f319d7a965fd5c5751b925efeb064.tar.xz | |
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
Diffstat (limited to 'lib/rbcodec/platform.h')
| -rw-r--r-- | lib/rbcodec/platform.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/rbcodec/platform.h b/lib/rbcodec/platform.h index fe79358..be2fd05 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 */ |