Commit 39c2a6bf authored by Mans Rullgard's avatar Mans Rullgard

bitdepth: simplify FUNC/FUNCC macros

Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 710b8df9
...@@ -85,13 +85,7 @@ ...@@ -85,13 +85,7 @@
# define CLIP(a) cm[a] # define CLIP(a) cm[a]
#endif #endif
#if BIT_DEPTH == 8 #define FUNC3(a, b, c) a ## _ ## b ## c
# define FUNC(a) a ## _8 #define FUNC2(a, b, c) FUNC3(a, b, c)
# define FUNCC(a) a ## _8_c #define FUNC(a) FUNC2(a, BIT_DEPTH,)
#elif BIT_DEPTH == 9 #define FUNCC(a) FUNC2(a, BIT_DEPTH, _c)
# define FUNC(a) a ## _9
# define FUNCC(a) a ## _9_c
#elif BIT_DEPTH == 10
# define FUNC(a) a ## _10
# define FUNCC(a) a ## _10_c
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment