There was a commit "Fall back to intrinsics if NASM is not available" ( http://git.xiph.org/?p=flac.git;a=commit;h=d163ef456797ef4807138b0ecb5da9ff05e147e2 ) But CPU detection code for IA-32 uses ASM code, and cpuinfo.use_asm == false when NASM isn't available. The attached patch fixes it. Now CPU features are also detected when only FLAC__HAS_X86INTRIN is defined. -------------- next part -------------- A non-text attachment was scrubbed... Name: cpuid_no_nasm.patch Type: application/octet-stream Size: 3994 bytes Desc: not available Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20140228/07b76edf/attachment.obj
Erik de Castro Lopo
2014-Mar-02 10:40 UTC
[flac-dev] PATCH: CPU feature detection when NASM n/a
lvqcl wrote:> There was a commit "Fall back to intrinsics if NASM is not available" > ( http://git.xiph.org/?p=flac.git;a=commit;h=d163ef456797ef4807138b0ecb5da9ff05e147e2 ) > > But CPU detection code for IA-32 uses ASM code, and cpuinfo.use_asm == false > when NASM isn't available. The attached patch fixes it. Now CPU features are > also detected when only FLAC__HAS_X86INTRIN is defined.Applied, thanks. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/