summaryrefslogtreecommitdiff
path: root/lib/rbcodec/platform.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2013-05-27 03:23:33 -0400
committerMichael Sevakis <jethead71@rockbox.org>2013-05-27 03:23:33 -0400
commitb5a6517e9d8f319d7a965fd5c5751b925efeb064 (patch)
tree3d4f548f85fa87a736b72eef237fb6fbd44d16af /lib/rbcodec/platform.h
parent30fe6eb66c59f8c2b0b16ef305a9ab3742595115 (diff)
downloadrockbox-b5a6517e9d8f319d7a965fd5c5751b925efeb064.tar.gz
rockbox-b5a6517e9d8f319d7a965fd5c5751b925efeb064.zip
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.h12
1 files changed, 12 insertions, 0 deletions
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);
31#ifndef BIT_N 31#ifndef BIT_N
32# define BIT_N(n) (1U << (n)) 32# define BIT_N(n) (1U << (n))
33#endif 33#endif
34
35#ifndef MASK_N
36/* Make a mask of n contiguous bits, shifted left by 'shift' */
37# define MASK_N(type, n, shift) \
38 ((type)((((type)1 << (n)) - (type)1) << (shift)))
39#endif
40
41#ifndef INIT_ATTR
42# define INIT_ATTR
43#endif
34/* 44/*
35#ifdef CODEC 45#ifdef CODEC
36 46
@@ -115,4 +125,6 @@ static inline int32_t clip_sample_16(int32_t sample)
115} 125}
116#endif 126#endif
117*/ 127*/
128
129int find_first_set_bit(uint32_t value);
118#endif /* PLATFORM_H_INCLUDED */ 130#endif /* PLATFORM_H_INCLUDED */