|
From: Clark, R. <ro...@ti...> - 2010-02-26 14:01:16
|
On Feb 26, 2010, at 6:36 AM, Tim-Philipp Müller wrote: > On Fri, 2010-02-26 at 14:05 +0200, Felipe Contreras wrote: > >>> +#ifndef DIM /* XXX is there a better alternative available? */ >>> +# define DIM(x) (sizeof(x)/sizeof((x)[0])) >>> +#endif >> >> Let's call it ARRAY_SIZE (just like in the kernel). Maybe there's >> something in GLib for that (can't recall though), but I like >> ARRAY_SIZE :) > > GLib macro is G_N_ELEMENTS, fwiw. > ahh, brilliant.. I couldn't figure out what macro name to look for, and was hoping for someone to clue me in :-) BR, -R > Cheers > -Tim > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gstreamer-openmax mailing list > Gst...@li... > https://lists.sourceforge.net/lists/listinfo/gstreamer-openmax |