[FFmpeg-devel] [PATCH] lavu/intmath.h: fix compilation with msvc10.
Michael Niedermayer
michael at niedermayer.cc
Thu Jun 9 21:30:24 CEST 2016
On Mon, Jun 06, 2016 at 05:11:34PM +1000, Matt Oliver wrote:
> ---
> libavutil/x86/intmath.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libavutil/x86/intmath.h b/libavutil/x86/intmath.h
> index f58b0d0..de177dd 100644
> --- a/libavutil/x86/intmath.h
> +++ b/libavutil/x86/intmath.h
> @@ -47,6 +47,7 @@ static av_always_inline av_const int ff_log2_x86(unsigned
> int v)
> # endif
> # define ff_log2_16bit av_log2
>
> +#if defined(_MSC_VER) && (_MSC_VER >= 1700)
> # define ff_ctz(v) _tzcnt_u32(v)
should this not be some configre based chec like
CONFIG_TZCNT_U32
?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160609/f21c4e0b/attachment.sig>
More information about the ffmpeg-devel
mailing list