Re: [flac-dev] PATCH: x86-64 support and SSE intrinscis code

2013-09-14 Thread Erik de Castro Lopo
lvqcl wrote: > It's not possible to use ia32/*.nasm code in 64-bit compiles. > There's still no 64-bit asm code in FLAC. I'm not familiar with asm too, > so I wrote SSE-accelerated code using intrinsics. > > This code uses two new preprocessor macros: > FLAC__CPU_X86_64 (analogous to FLAC__CPU_IA

Re: [flac-dev] x86-64 support and SSE intrinscis code

2013-09-14 Thread Erik de Castro Lopo
lvqcl wrote: > I try to make my code more clean and have a few questions: > > 1. GCC related: MinGW contains cpuid.h header file that defines __get_cpuid() > function. Is it standard? Or is it better to use inline asm to get cpuid info? cpuid.h should be good for all GCC related compilers. > 2.

Re: [flac-dev] PATCH: x86-64 support and SSE intrinscis code

2013-09-14 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: > When should FLAC__HAS_X86INTRIN be defined? What header file should I be > checking for? Ah, should be checking for . The rest seems to be coming together. Testing this now. Erik -- -- Erik de Cast

Re: [flac-dev] PATCH: x86-64 support and SSE intrinscis code

2013-09-14 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: > Erik de Castro Lopo wrote: > > > When should FLAC__HAS_X86INTRIN be defined? What header file should I be > > checking for? > > Ah, should be checking for . > > The rest seems to be coming together. Testing this now. There is a segfault happening in the new code wh