Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-08-02 Thread Ronald S. Bultje
Hi, On Thu, Aug 2, 2012 at 12:07 PM, Ronald S. Bultje wrote: > Hi, > > On Thu, Aug 2, 2012 at 11:55 AM, Måns Rullgård wrote: >> "Ronald S. Bultje" writes: >>> On Mon, Jul 30, 2012 at 8:10 AM, Måns Rullgård wrote: "Ronald S. Bultje" writes: > On Mon, Jul 30, 2012 at 8:03 AM, Måns Rull

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-08-02 Thread Ronald S. Bultje
Hi, On Thu, Aug 2, 2012 at 11:55 AM, Måns Rullgård wrote: > "Ronald S. Bultje" writes: >> On Mon, Jul 30, 2012 at 8:10 AM, Måns Rullgård wrote: >>> "Ronald S. Bultje" writes: On Mon, Jul 30, 2012 at 8:03 AM, Måns Rullgård wrote: > inline_mmx_deps="inline_asm mmx" > inline_sse_dep

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-08-02 Thread Måns Rullgård
"Ronald S. Bultje" writes: > Hi, > > On Mon, Jul 30, 2012 at 8:10 AM, Måns Rullgård wrote: >> "Ronald S. Bultje" writes: >>> On Mon, Jul 30, 2012 at 8:03 AM, Måns Rullgård wrote: inline_mmx_deps="inline_asm mmx" inline_sse_deps="inline_mmx" >>> >>> If the user uses --disable-sse, thi

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-08-02 Thread Ronald S. Bultje
Hi, On Mon, Jul 30, 2012 at 8:10 AM, Måns Rullgård wrote: > "Ronald S. Bultje" writes: >> On Mon, Jul 30, 2012 at 8:03 AM, Måns Rullgård wrote: >>> inline_mmx_deps="inline_asm mmx" >>> inline_sse_deps="inline_mmx" >> >> If the user uses --disable-sse, this doesn't disable it here. I >> suppose

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-30 Thread Måns Rullgård
"Ronald S. Bultje" writes: > Hi, > > On Mon, Jul 30, 2012 at 8:03 AM, Måns Rullgård wrote: >> inline_mmx_deps="inline_asm mmx" >> inline_sse_deps="inline_mmx" > > If the user uses --disable-sse, this doesn't disable it here. I > suppose you might mean inline_sse_deps="inline_mmx sse"? Right. >

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-30 Thread Måns Rullgård
Justin Ruggles writes: > I think we have several things to address: > > 1) detecting feature support in older compilers > - we should validate (independent of our existing code) that these > are the only features we need to detect and support for inline asm > and for yasm/nasm Th

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-30 Thread Ronald S. Bultje
Hi, On Mon, Jul 30, 2012 at 8:03 AM, Måns Rullgård wrote: > inline_mmx_deps="inline_asm mmx" > inline_sse_deps="inline_mmx" If the user uses --disable-sse, this doesn't disable it here. I suppose you might mean inline_sse_deps="inline_mmx sse"? Other than that, looks good to me. I don't think w

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-30 Thread Måns Rullgård
Diego Biurrun writes: > There are two capabilities that are interesting in this context: > > a) cpu > b) compiler > c) assembler > > Our current HAVE_FOO macros indicate a mix of everything. It seems to > be the time to separate the capabilities. So first off, do we need all > three capabilitie

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-30 Thread Justin Ruggles
On 07/30/2012 09:52 AM, Ronald S. Bultje wrote: > Hi, > > On Mon, Jul 30, 2012 at 2:41 AM, Måns Rullgård wrote: >> "Ronald S. Bultje" writes: >>> On Thu, Jul 26, 2012 at 4:52 PM, Ronald S. Bultje >>> wrote: On Thu, Jul 26, 2012 at 3:54 PM, Diego Biurrun wrote: > On Thu, Jul 26, 2012

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-30 Thread Diego Biurrun
On Mon, Jul 30, 2012 at 06:52:09AM -0700, Ronald S. Bultje wrote: > On Mon, Jul 30, 2012 at 2:41 AM, Måns Rullgård wrote: > > "Ronald S. Bultje" writes: > >> On Thu, Jul 26, 2012 at 4:52 PM, Ronald S. Bultje > >> wrote: > >>> On Thu, Jul 26, 2012 at 3:54 PM, Diego Biurrun wrote: > On Thu,

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-30 Thread Ronald S. Bultje
Hi, On Mon, Jul 30, 2012 at 2:41 AM, Måns Rullgård wrote: > "Ronald S. Bultje" writes: >> On Thu, Jul 26, 2012 at 4:52 PM, Ronald S. Bultje wrote: >>> On Thu, Jul 26, 2012 at 3:54 PM, Diego Biurrun wrote: On Thu, Jul 26, 2012 at 03:42:24PM -0700, Ronald S. Bultje wrote: > On Thu, Jul

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-30 Thread Måns Rullgård
"Ronald S. Bultje" writes: > Hi, > > On Thu, Jul 26, 2012 at 4:52 PM, Ronald S. Bultje wrote: >> On Thu, Jul 26, 2012 at 3:54 PM, Diego Biurrun wrote: >>> On Thu, Jul 26, 2012 at 03:42:24PM -0700, Ronald S. Bultje wrote: On Thu, Jul 26, 2012 at 2:39 PM, Diego Biurrun wrote: > On Thu,

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-29 Thread Ronald S. Bultje
Hi, On Thu, Jul 26, 2012 at 4:52 PM, Ronald S. Bultje wrote: > On Thu, Jul 26, 2012 at 3:54 PM, Diego Biurrun wrote: >> On Thu, Jul 26, 2012 at 03:42:24PM -0700, Ronald S. Bultje wrote: >>> On Thu, Jul 26, 2012 at 2:39 PM, Diego Biurrun wrote: >>> > On Thu, Jul 26, 2012 at 01:50:17PM -0700, Ron

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-26 Thread Ronald S. Bultje
Hi, On Thu, Jul 26, 2012 at 3:54 PM, Diego Biurrun wrote: > On Thu, Jul 26, 2012 at 03:42:24PM -0700, Ronald S. Bultje wrote: >> On Thu, Jul 26, 2012 at 2:39 PM, Diego Biurrun wrote: >> > On Thu, Jul 26, 2012 at 01:50:17PM -0700, Ronald S. Bultje wrote: >> >> >> >> discussion thread. We currentl

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-26 Thread Diego Biurrun
On Thu, Jul 26, 2012 at 03:42:24PM -0700, Ronald S. Bultje wrote: > On Thu, Jul 26, 2012 at 2:39 PM, Diego Biurrun wrote: > > On Thu, Jul 26, 2012 at 01:50:17PM -0700, Ronald S. Bultje wrote: > >> > >> discussion thread. We currently use HAVE_SSSE3 and related macros to > >> indicate that we want

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-26 Thread Ronald S. Bultje
Hi, On Thu, Jul 26, 2012 at 2:39 PM, Diego Biurrun wrote: > On Thu, Jul 26, 2012 at 01:50:17PM -0700, Ronald S. Bultje wrote: >> >> discussion thread. We currently use HAVE_SSSE3 and related macros to >> indicate that we want to compile these and that our compiler tools are >> good enough to know

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-26 Thread Luca Barbato
On 07/26/2012 11:53 PM, Martin Storsjö wrote: > Currently avx has ssse3 as a dependency, where ssse3 is tested via > inline asm while avx is tested via yasm. On MSVC the ssse3 inline asm > test obviously fails, leading to HAVE_AVX=0, giving no AVX yasm either. Clearing it would be good. lu --

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-26 Thread Martin Storsjö
On Thu, 26 Jul 2012, Diego Biurrun wrote: On Thu, Jul 26, 2012 at 01:50:17PM -0700, Ronald S. Bultje wrote: discussion thread. We currently use HAVE_SSSE3 and related macros to indicate that we want to compile these and that our compiler tools are good enough to know what to do with it. As a r

Re: [libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-26 Thread Diego Biurrun
On Thu, Jul 26, 2012 at 01:50:17PM -0700, Ronald S. Bultje wrote: > > discussion thread. We currently use HAVE_SSSE3 and related macros to > indicate that we want to compile these and that our compiler tools are > good enough to know what to do with it. As a result, we currently use > HAVE_AVX aro

[libav-devel] [RFC] split HAVE_MMX/MMX2/SSE/SSE2/SSSE3/AVX for inline asm vs. yasm

2012-07-26 Thread Ronald S. Bultje
Hi guys, discussion thread. We currently use HAVE_SSSE3 and related macros to indicate that we want to compile these and that our compiler tools are good enough to know what to do with it. As a result, we currently use HAVE_AVX around all avx code (yasm only - we don't have any avx inline asm), HA