]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/bit_depth_template.c
threads: add sysconf based number of CPUs detection
[ffmpeg] / libavcodec / bit_depth_template.c
index 4da0a6e0c978a771d9ffb04e2a2a5206a1a5b7e9..9071ec2a35135106071d199dd3a153ad684b9741 100644 (file)
 #   define CLIP(a) cm[a]
 #endif
 
-#if BIT_DEPTH == 8
-#   define FUNC(a)  a ## _8
-#   define FUNCC(a) a ## _8_c
-#elif BIT_DEPTH == 9
-#   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
+#define FUNC3(a, b, c)  a ## _ ## b ## c
+#define FUNC2(a, b, c)  FUNC3(a, b, c)
+#define FUNC(a)  FUNC2(a, BIT_DEPTH,)
+#define FUNCC(a) FUNC2(a, BIT_DEPTH, _c)