Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:>> -msse for SSE code, -msse2 for SSE2 code, -msse4.1 for SSE4.1 code > > Yes, that was it. Brain fart. These flags were not needed on x86_64. > > ErikBut now all C code is compiled with -msse2 and it won't work on older CPUs. Isn't it better to compile only necessary files with this flag?
Erik de Castro Lopo
2013-Sep-17 20:20 UTC
[flac-dev] PATCH: x86-64 support and SSE intrinscis code
lvqcl wrote:> Erik de Castro Lopo <mle+la at mega-nerd.com> wrote: > > >> -msse for SSE code, -msse2 for SSE2 code, -msse4.1 for SSE4.1 code > > > > Yes, that was it. Brain fart. These flags were not needed on x86_64. > > > > Erik > > But now all C code is compiled with -msse2 and it won't work on older CPUs. > Isn't it better to compile only necessary files with this flag?Hmm, compiling just one or two flags with these flags is somewhat difficult. I'll see if I can think of some way around this. Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
Erik de Castro Lopo wrote:> Hmm, compiling just one or two flags with these flags is somewhat difficult.Currently my intrinsic code is split into 5 files: lpc_intrin_sse.c lpc_intrin_sse2.c lpc_intrin_sse41.c stream_encoder_intrin_sse2.c stream_encoder_intrin_ssse3.c> I'll see if I can think of some way around this.That would be great.