Re: [flac-dev] PATCH: bugfixes for bitmath.h

2013-09-08 Thread lvqcl
Erik de Castro Lopo wrote: >> However _BitScanReverse64() is called with a pointer to FLAC__uint64 >> (8-byte int). IMHO it's a bug > > I would not call that a bug, just a result of trying to write cross > platform code and relying on functions that are not specified by > any standard. Well, the

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

2013-09-08 Thread lvqcl
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_IA32) and FLAC__HAS_X86INTR