projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e46a982
)
Add a macro to get the number of elements in a table.
author
Benoit Fouet
<benoit.fouet@free.fr>
Wed, 15 Oct 2008 07:24:54 +0000
(07:24 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Wed, 15 Oct 2008 07:24:54 +0000
(07:24 +0000)
Originally committed as revision 15619 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/common.h
patch
|
blob
|
history
diff --git
a/libavutil/common.h
b/libavutil/common.h
index
42fe951
..
9c78804
100644
(file)
--- a/
libavutil/common.h
+++ b/
libavutil/common.h
@@
-116,6
+116,7
@@
#define FFMIN3(a,b,c) FFMIN(FFMIN(a,b),c)
#define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
+#define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
/* misc math functions */
extern const uint8_t ff_log2_tab[256];