[flac-dev] IA32 and NASM
lvqcl
lvqcl.mail at gmail.com
Fri Jan 31 07:26:58 PST 2014
Is Nasm always available when the target architecture is IA-32?
For example, FLAC has FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_NN() functions
that require NASM presence, and FLAC__lpc_compute_autocorrelation_intrin_sse_lag_NN()
functions that require x86 intrinsics support.
FLAC makes use of the former (if NASM is available) but doesn't try to use
the latter when NASM is not found.
Or does it make sence to add the following code:
#ifdef FLAC__HAS_X86INTRIN
#if defined FLAC__SSE_SUPPORTED && !defined FLAC__HAS_NASM
if(encoder->private_->cpuinfo.ia32.sse) {
encoder->private_->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_intrin_sse_lag_NN;
...
...
}
#endif
#endif
More information about the flac-dev
mailing list