Martin Storsjö <mar...@martin.st> writes: > On Sat, 27 Oct 2012, Justin Ruggles wrote: > >> --- >> doc/APIchanges | 3 +++ >> libavutil/common.h | 4 ++++ >> libavutil/intmath.h | 41 +++++++++++++++++++++++++++++++++++++++++ >> libavutil/version.h | 2 +- >> 4 files changed, 49 insertions(+), 1 deletions(-) >> >> diff --git a/doc/APIchanges b/doc/APIchanges >> index 24defe4..c8b8fbf 100644 >> --- a/doc/APIchanges >> +++ b/doc/APIchanges >> @@ -13,6 +13,9 @@ libavutil: 2012-10-22 >> >> API changes, most recent first: >> >> +2012-xx-xx - xxxxxxx - lavu 52.1.0 - intmath.h >> + Add av_ctz() for trailing zero bit count >> + >> 2012-10-18 - xxxxxxx - lavu 51.45.0 - error.h >> Add AVERROR_EXPERIMENTAL >> >> diff --git a/libavutil/common.h b/libavutil/common.h >> index 3465863..fd82048 100644 >> --- a/libavutil/common.h >> +++ b/libavutil/common.h >> @@ -83,6 +83,10 @@ av_const int av_log2(unsigned v); >> av_const int av_log2_16bit(unsigned v); >> #endif >> >> +#ifndef av_ctz >> +av_const int av_ctz(unsigned v); >> +#endif > > This patch needs a concrete implementation of this function for > external callers - either in the form of the av_log2 functions that > just call the optimized version available at build time, or like the > other ones in common.h that have the fallback C version defined and > hooked up there.
Or don't put it in common.h at all. Long-term, I'd like to get rid of that file entirely. -- Måns Rullgård m...@mansr.com _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel