mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
rename i386 to ia32 everywhere
This commit is contained in:
@@ -47,7 +47,7 @@ $(PROGRAM) : $(OBJS)
|
|||||||
$(CC) $(CFLAGS) -E $< -o $@
|
$(CC) $(CFLAGS) -E $< -o $@
|
||||||
|
|
||||||
%.o : %.nasm
|
%.o : %.nasm
|
||||||
$(NASM) -f elf -d ELF -i i386/ $< -o $@
|
$(NASM) -f elf -d ELF -i ia32/ $< -o $@
|
||||||
|
|
||||||
.PHONY : clean
|
.PHONY : clean
|
||||||
clean :
|
clean :
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ $(DYNAMIC_LIB) : $(OBJS)
|
|||||||
$(CC) $(CFLAGS) -E $< -o $@
|
$(CC) $(CFLAGS) -E $< -o $@
|
||||||
|
|
||||||
%.o : %.nasm
|
%.o : %.nasm
|
||||||
$(NASM) -f elf -d ELF -i i386/ $< -o $@
|
$(NASM) -f elf -d ELF -i ia32/ $< -o $@
|
||||||
|
|
||||||
.PHONY : clean
|
.PHONY : clean
|
||||||
clean :
|
clean :
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ fi
|
|||||||
AC_OUTPUT( Makefile \
|
AC_OUTPUT( Makefile \
|
||||||
src/Makefile \
|
src/Makefile \
|
||||||
src/libFLAC/Makefile \
|
src/libFLAC/Makefile \
|
||||||
src/libFLAC/i386/Makefile \
|
src/libFLAC/ia32/Makefile \
|
||||||
src/flac/Makefile \
|
src/flac/Makefile \
|
||||||
src/metaflac/Makefile \
|
src/metaflac/Makefile \
|
||||||
src/plugin_xmms/Makefile \
|
src/plugin_xmms/Makefile \
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ if FLaC__NO_ASM
|
|||||||
else
|
else
|
||||||
if FLaC__CPU_IA32
|
if FLaC__CPU_IA32
|
||||||
if FLaC__HAS_NASM
|
if FLaC__HAS_NASM
|
||||||
SUBDIRS = i386 .
|
SUBDIRS = ia32 .
|
||||||
libFLAC_la_LIBADD = i386/libFLAC-asm.la
|
libFLAC_la_LIBADD = ia32/libFLAC-asm.la
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ OBJS = \
|
|||||||
stream_decoder.o \
|
stream_decoder.o \
|
||||||
stream_encoder.o \
|
stream_encoder.o \
|
||||||
stream_encoder_framing.o \
|
stream_encoder_framing.o \
|
||||||
i386/cpu_asm.o \
|
ia32/cpu_asm.o \
|
||||||
i386/fixed_asm.o \
|
ia32/fixed_asm.o \
|
||||||
i386/lpc_asm.o
|
ia32/lpc_asm.o
|
||||||
|
|
||||||
include ../../build/lib.mk
|
include ../../build/lib.mk
|
||||||
|
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ C_FILES= \
|
|||||||
stream_encoder_framing.c
|
stream_encoder_framing.c
|
||||||
|
|
||||||
NASM_FILES= \
|
NASM_FILES= \
|
||||||
i386/cpu_asm.nasm \
|
ia32/cpu_asm.nasm \
|
||||||
i386/fixed_asm.nasm \
|
ia32/fixed_asm.nasm \
|
||||||
i386/lpc_asm.nasm
|
ia32/lpc_asm.nasm
|
||||||
|
|
||||||
OBJS= $(C_FILES:.c=.obj) $(NASM_FILES:.nasm=.obj)
|
OBJS= $(C_FILES:.c=.obj) $(NASM_FILES:.nasm=.obj)
|
||||||
|
|
||||||
@@ -56,13 +56,13 @@ all: libFLAC.lib
|
|||||||
libFLAC.lib: $(OBJS)
|
libFLAC.lib: $(OBJS)
|
||||||
link.exe -lib -out:../../obj/lib/$*.lib $(OBJS)
|
link.exe -lib -out:../../obj/lib/$*.lib $(OBJS)
|
||||||
|
|
||||||
i386/cpu_asm.obj: i386/cpu_asm.nasm
|
ia32/cpu_asm.obj: ia32/cpu_asm.nasm
|
||||||
$(NASM) -f win32 -d WIN32 -i i386/ i386/cpu_asm.nasm -o i386/cpu_asm.obj
|
$(NASM) -f win32 -d WIN32 -i ia32/ ia32/cpu_asm.nasm -o ia32/cpu_asm.obj
|
||||||
i386/fixed_asm.obj: i386/fixed_asm.nasm
|
ia32/fixed_asm.obj: ia32/fixed_asm.nasm
|
||||||
$(NASM) -f win32 -d WIN32 -i i386/ i386/fixed_asm.nasm -o i386/fixed_asm.obj
|
$(NASM) -f win32 -d WIN32 -i ia32/ ia32/fixed_asm.nasm -o ia32/fixed_asm.obj
|
||||||
i386/lpc_asm.obj: i386/lpc_asm.nasm
|
ia32/lpc_asm.obj: ia32/lpc_asm.nasm
|
||||||
$(NASM) -f win32 -d WIN32 -i i386/ i386/lpc_asm.nasm -o i386/lpc_asm.obj
|
$(NASM) -f win32 -d WIN32 -i ia32/ ia32/lpc_asm.nasm -o ia32/lpc_asm.obj
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-del *.obj i386\*.obj *.pch
|
-del *.obj ia32\*.obj *.pch
|
||||||
-del ..\..\obj\lib\libFLAC.lib ..\..\obj\lib\libFLAC.pdb
|
-del ..\..\obj\lib\libFLAC.lib ..\..\obj\lib\libFLAC.pdb
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ void FLAC__cpu_info(FLAC__CPUInfo *info)
|
|||||||
#if !defined FLAC__NO_ASM && defined FLAC__HAS_NASM
|
#if !defined FLAC__NO_ASM && defined FLAC__HAS_NASM
|
||||||
info->use_asm = true;
|
info->use_asm = true;
|
||||||
{
|
{
|
||||||
unsigned cpuid = FLAC__cpu_info_asm_i386();
|
unsigned cpuid = FLAC__cpu_info_asm_ia32();
|
||||||
info->data.ia32.cmov = (cpuid & FLAC__CPUINFO_IA32_CPUID_CMOV)? true : false;
|
info->data.ia32.cmov = (cpuid & FLAC__CPUINFO_IA32_CPUID_CMOV)? true : false;
|
||||||
info->data.ia32.mmx = (cpuid & FLAC__CPUINFO_IA32_CPUID_MMX)? true : false;
|
info->data.ia32.mmx = (cpuid & FLAC__CPUINFO_IA32_CPUID_MMX)? true : false;
|
||||||
info->data.ia32.fxsr = (cpuid & FLAC__CPUINFO_IA32_CPUID_FXSR)? true : false;
|
info->data.ia32.fxsr = (cpuid & FLAC__CPUINFO_IA32_CPUID_FXSR)? true : false;
|
||||||
|
|||||||
@@ -20,14 +20,14 @@
|
|||||||
|
|
||||||
data_section
|
data_section
|
||||||
|
|
||||||
cglobal FLAC__cpu_info_asm_i386
|
cglobal FLAC__cpu_info_asm_ia32
|
||||||
|
|
||||||
code_section
|
code_section
|
||||||
|
|
||||||
; **********************************************************************
|
; **********************************************************************
|
||||||
;
|
;
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__cpu_info_asm_i386
|
cident FLAC__cpu_info_asm_ia32
|
||||||
|
|
||||||
push ebx
|
push ebx
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
data_section
|
data_section
|
||||||
|
|
||||||
cglobal FLAC__fixed_compute_best_predictor_asm_i386_mmx_cmov
|
cglobal FLAC__fixed_compute_best_predictor_asm_ia32_mmx_cmov
|
||||||
|
|
||||||
code_section
|
code_section
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ cglobal FLAC__fixed_compute_best_predictor_asm_i386_mmx_cmov
|
|||||||
; return order;
|
; return order;
|
||||||
; }
|
; }
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__fixed_compute_best_predictor_asm_i386_mmx_cmov
|
cident FLAC__fixed_compute_best_predictor_asm_ia32_mmx_cmov
|
||||||
|
|
||||||
; esp + 36 == data[]
|
; esp + 36 == data[]
|
||||||
; esp + 40 == data_len
|
; esp + 40 == data_len
|
||||||
|
|||||||
@@ -20,14 +20,14 @@
|
|||||||
|
|
||||||
data_section
|
data_section
|
||||||
|
|
||||||
cglobal FLAC__lpc_compute_autocorrelation_asm_i386
|
cglobal FLAC__lpc_compute_autocorrelation_asm_ia32
|
||||||
cglobal FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_4
|
cglobal FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_4
|
||||||
cglobal FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_8
|
cglobal FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_8
|
||||||
cglobal FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_12
|
cglobal FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_12
|
||||||
cglobal FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386
|
cglobal FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32
|
||||||
cglobal FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386_mmx
|
cglobal FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32_mmx
|
||||||
cglobal FLAC__lpc_restore_signal_asm_i386
|
cglobal FLAC__lpc_restore_signal_asm_ia32
|
||||||
cglobal FLAC__lpc_restore_signal_asm_i386_mmx
|
cglobal FLAC__lpc_restore_signal_asm_ia32_mmx
|
||||||
|
|
||||||
code_section
|
code_section
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ cglobal FLAC__lpc_restore_signal_asm_i386_mmx
|
|||||||
; }
|
; }
|
||||||
;
|
;
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__lpc_compute_autocorrelation_asm_i386
|
cident FLAC__lpc_compute_autocorrelation_asm_ia32
|
||||||
;[esp + 24] == autoc[]
|
;[esp + 24] == autoc[]
|
||||||
;[esp + 20] == lag
|
;[esp + 20] == lag
|
||||||
;[esp + 16] == data_len
|
;[esp + 16] == data_len
|
||||||
@@ -413,7 +413,7 @@ cident FLAC__lpc_compute_autocorrelation_asm_i386
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_4
|
cident FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_4
|
||||||
;[esp + 16] == autoc[]
|
;[esp + 16] == autoc[]
|
||||||
;[esp + 12] == lag
|
;[esp + 12] == lag
|
||||||
;[esp + 8] == data_len
|
;[esp + 8] == data_len
|
||||||
@@ -460,7 +460,7 @@ cident FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_4
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_8
|
cident FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_8
|
||||||
;[esp + 16] == autoc[]
|
;[esp + 16] == autoc[]
|
||||||
;[esp + 12] == lag
|
;[esp + 12] == lag
|
||||||
;[esp + 8] == data_len
|
;[esp + 8] == data_len
|
||||||
@@ -519,7 +519,7 @@ cident FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_8
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_12
|
cident FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_12
|
||||||
;[esp + 16] == autoc[]
|
;[esp + 16] == autoc[]
|
||||||
;[esp + 12] == lag
|
;[esp + 12] == lag
|
||||||
;[esp + 8] == data_len
|
;[esp + 8] == data_len
|
||||||
@@ -602,7 +602,7 @@ cident FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_12
|
|||||||
; }
|
; }
|
||||||
;
|
;
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386
|
cident FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32
|
||||||
;[esp + 40] residual[]
|
;[esp + 40] residual[]
|
||||||
;[esp + 36] lp_quantization
|
;[esp + 36] lp_quantization
|
||||||
;[esp + 32] order
|
;[esp + 32] order
|
||||||
@@ -812,7 +812,7 @@ cident FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386
|
|||||||
; the channel must be <= 16. Especially note that this routine cannot be used
|
; the channel must be <= 16. Especially note that this routine cannot be used
|
||||||
; for side-channel coded 16bps channels since the effective bps is 17.
|
; for side-channel coded 16bps channels since the effective bps is 17.
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386_mmx
|
cident FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32_mmx
|
||||||
;[esp + 40] residual[]
|
;[esp + 40] residual[]
|
||||||
;[esp + 36] lp_quantization
|
;[esp + 36] lp_quantization
|
||||||
;[esp + 32] order
|
;[esp + 32] order
|
||||||
@@ -977,7 +977,7 @@ cident FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386_mmx
|
|||||||
.last_one:
|
.last_one:
|
||||||
mov eax, [esp + 32]
|
mov eax, [esp + 32]
|
||||||
inc ebx
|
inc ebx
|
||||||
jnz near FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386.begin
|
jnz near FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32.begin
|
||||||
|
|
||||||
.end:
|
.end:
|
||||||
pop edi
|
pop edi
|
||||||
@@ -1003,7 +1003,7 @@ cident FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386_mmx
|
|||||||
; }
|
; }
|
||||||
; }
|
; }
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__lpc_restore_signal_asm_i386
|
cident FLAC__lpc_restore_signal_asm_ia32
|
||||||
;[esp + 40] data[]
|
;[esp + 40] data[]
|
||||||
;[esp + 36] lp_quantization
|
;[esp + 36] lp_quantization
|
||||||
;[esp + 32] order
|
;[esp + 32] order
|
||||||
@@ -1210,7 +1210,7 @@ cident FLAC__lpc_restore_signal_asm_i386
|
|||||||
; the channel must be <= 16. Especially note that this routine cannot be used
|
; the channel must be <= 16. Especially note that this routine cannot be used
|
||||||
; for side-channel coded 16bps channels since the effective bps is 17.
|
; for side-channel coded 16bps channels since the effective bps is 17.
|
||||||
ALIGN 16
|
ALIGN 16
|
||||||
cident FLAC__lpc_restore_signal_asm_i386_mmx
|
cident FLAC__lpc_restore_signal_asm_ia32_mmx
|
||||||
;[esp + 40] data[]
|
;[esp + 40] data[]
|
||||||
;[esp + 36] lp_quantization
|
;[esp + 36] lp_quantization
|
||||||
;[esp + 32] order
|
;[esp + 32] order
|
||||||
@@ -1233,7 +1233,7 @@ cident FLAC__lpc_restore_signal_asm_i386_mmx
|
|||||||
test ebx, ebx
|
test ebx, ebx
|
||||||
jz near .end ; do nothing if data_len == 0
|
jz near .end ; do nothing if data_len == 0
|
||||||
cmp eax, byte 4
|
cmp eax, byte 4
|
||||||
jb near FLAC__lpc_restore_signal_asm_i386.begin
|
jb near FLAC__lpc_restore_signal_asm_ia32.begin
|
||||||
|
|
||||||
mov edx, [esp + 28]
|
mov edx, [esp + 28]
|
||||||
movd mm6, [esp + 36]
|
movd mm6, [esp + 36]
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ void FLAC__cpu_info(FLAC__CPUInfo *info);
|
|||||||
#ifndef FLAC__NO_ASM
|
#ifndef FLAC__NO_ASM
|
||||||
#ifdef FLAC__CPU_IA32
|
#ifdef FLAC__CPU_IA32
|
||||||
#ifdef FLAC__HAS_NASM
|
#ifdef FLAC__HAS_NASM
|
||||||
unsigned FLAC__cpu_info_asm_i386();
|
unsigned FLAC__cpu_info_asm_ia32();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ unsigned FLAC__fixed_compute_best_predictor(const int32 data[], unsigned data_le
|
|||||||
#ifndef FLAC__NO_ASM
|
#ifndef FLAC__NO_ASM
|
||||||
#ifdef FLAC__CPU_IA32
|
#ifdef FLAC__CPU_IA32
|
||||||
#ifdef FLAC__HAS_NASM
|
#ifdef FLAC__HAS_NASM
|
||||||
unsigned FLAC__fixed_compute_best_predictor_asm_i386_mmx_cmov(const int32 data[], unsigned data_len, real residual_bits_per_sample[FLAC__MAX_FIXED_ORDER+1]);
|
unsigned FLAC__fixed_compute_best_predictor_asm_ia32_mmx_cmov(const int32 data[], unsigned data_len, real residual_bits_per_sample[FLAC__MAX_FIXED_ORDER+1]);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ void FLAC__lpc_compute_autocorrelation(const real data[], unsigned data_len, uns
|
|||||||
#ifndef FLAC__NO_ASM
|
#ifndef FLAC__NO_ASM
|
||||||
#ifdef FLAC__CPU_IA32
|
#ifdef FLAC__CPU_IA32
|
||||||
#ifdef FLAC__HAS_NASM
|
#ifdef FLAC__HAS_NASM
|
||||||
void FLAC__lpc_compute_autocorrelation_asm_i386(const real data[], unsigned data_len, unsigned lag, real autoc[]);
|
void FLAC__lpc_compute_autocorrelation_asm_ia32(const real data[], unsigned data_len, unsigned lag, real autoc[]);
|
||||||
void FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_4(const real data[], unsigned data_len, unsigned lag, real autoc[]);
|
void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_4(const real data[], unsigned data_len, unsigned lag, real autoc[]);
|
||||||
void FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_8(const real data[], unsigned data_len, unsigned lag, real autoc[]);
|
void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_8(const real data[], unsigned data_len, unsigned lag, real autoc[]);
|
||||||
void FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_12(const real data[], unsigned data_len, unsigned lag, real autoc[]);
|
void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_12(const real data[], unsigned data_len, unsigned lag, real autoc[]);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@@ -108,8 +108,8 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients(const int32 data[], unsign
|
|||||||
#ifndef FLAC__NO_ASM
|
#ifndef FLAC__NO_ASM
|
||||||
#ifdef FLAC__CPU_IA32
|
#ifdef FLAC__CPU_IA32
|
||||||
#ifdef FLAC__HAS_NASM
|
#ifdef FLAC__HAS_NASM
|
||||||
void FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386(const int32 data[], unsigned data_len, const int32 qlp_coeff[], unsigned order, int lp_quantization, int32 residual[]);
|
void FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32(const int32 data[], unsigned data_len, const int32 qlp_coeff[], unsigned order, int lp_quantization, int32 residual[]);
|
||||||
void FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386_mmx(const int32 data[], unsigned data_len, const int32 qlp_coeff[], unsigned order, int lp_quantization, int32 residual[]);
|
void FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32_mmx(const int32 data[], unsigned data_len, const int32 qlp_coeff[], unsigned order, int lp_quantization, int32 residual[]);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@@ -133,8 +133,8 @@ void FLAC__lpc_restore_signal(const int32 residual[], unsigned data_len, const i
|
|||||||
#ifndef FLAC__NO_ASM
|
#ifndef FLAC__NO_ASM
|
||||||
#ifdef FLAC__CPU_IA32
|
#ifdef FLAC__CPU_IA32
|
||||||
#ifdef FLAC__HAS_NASM
|
#ifdef FLAC__HAS_NASM
|
||||||
void FLAC__lpc_restore_signal_asm_i386(const int32 residual[], unsigned data_len, const int32 qlp_coeff[], unsigned order, int lp_quantization, int32 data[]);
|
void FLAC__lpc_restore_signal_asm_ia32(const int32 residual[], unsigned data_len, const int32 qlp_coeff[], unsigned order, int lp_quantization, int32 data[]);
|
||||||
void FLAC__lpc_restore_signal_asm_i386_mmx(const int32 residual[], unsigned data_len, const int32 qlp_coeff[], unsigned order, int lp_quantization, int32 data[]);
|
void FLAC__lpc_restore_signal_asm_ia32_mmx(const int32 residual[], unsigned data_len, const int32 qlp_coeff[], unsigned order, int lp_quantization, int32 data[]);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -229,12 +229,12 @@ FLAC__StreamDecoderState FLAC__stream_decoder_init(
|
|||||||
FLAC__ASSERT(decoder->private->cpuinfo.type == FLAC__CPUINFO_TYPE_IA32);
|
FLAC__ASSERT(decoder->private->cpuinfo.type == FLAC__CPUINFO_TYPE_IA32);
|
||||||
#ifdef FLAC__HAS_NASM
|
#ifdef FLAC__HAS_NASM
|
||||||
if(decoder->private->cpuinfo.data.ia32.mmx) {
|
if(decoder->private->cpuinfo.data.ia32.mmx) {
|
||||||
decoder->private->local_lpc_restore_signal = FLAC__lpc_restore_signal_asm_i386;
|
decoder->private->local_lpc_restore_signal = FLAC__lpc_restore_signal_asm_ia32;
|
||||||
decoder->private->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal_asm_i386_mmx;
|
decoder->private->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal_asm_ia32_mmx;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
decoder->private->local_lpc_restore_signal = FLAC__lpc_restore_signal_asm_i386;
|
decoder->private->local_lpc_restore_signal = FLAC__lpc_restore_signal_asm_ia32;
|
||||||
decoder->private->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal_asm_i386;
|
decoder->private->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal_asm_ia32;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -377,25 +377,25 @@ FLAC__StreamEncoderState FLAC__stream_encoder_init(
|
|||||||
#ifdef FLAC__HAS_NASM
|
#ifdef FLAC__HAS_NASM
|
||||||
if(0 && encoder->private->cpuinfo.data.ia32.sse) { /* SSE version lacks necessary resolution, plus SSE flag doesn't check for OS support */
|
if(0 && encoder->private->cpuinfo.data.ia32.sse) { /* SSE version lacks necessary resolution, plus SSE flag doesn't check for OS support */
|
||||||
if(encoder->protected->max_lpc_order < 4)
|
if(encoder->protected->max_lpc_order < 4)
|
||||||
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_4;
|
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_4;
|
||||||
else if(encoder->protected->max_lpc_order < 8)
|
else if(encoder->protected->max_lpc_order < 8)
|
||||||
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_8;
|
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_8;
|
||||||
else if(encoder->protected->max_lpc_order < 12)
|
else if(encoder->protected->max_lpc_order < 12)
|
||||||
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_i386_sse_lag_12;
|
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_12;
|
||||||
else
|
else
|
||||||
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_i386;
|
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_ia32;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_i386;
|
encoder->private->local_lpc_compute_autocorrelation = FLAC__lpc_compute_autocorrelation_asm_ia32;
|
||||||
if(encoder->private->cpuinfo.data.ia32.mmx && encoder->private->cpuinfo.data.ia32.cmov)
|
if(encoder->private->cpuinfo.data.ia32.mmx && encoder->private->cpuinfo.data.ia32.cmov)
|
||||||
encoder->private->local_fixed_compute_best_predictor = FLAC__fixed_compute_best_predictor_asm_i386_mmx_cmov;
|
encoder->private->local_fixed_compute_best_predictor = FLAC__fixed_compute_best_predictor_asm_ia32_mmx_cmov;
|
||||||
if(encoder->private->cpuinfo.data.ia32.mmx) {
|
if(encoder->private->cpuinfo.data.ia32.mmx) {
|
||||||
encoder->private->local_lpc_compute_residual_from_qlp_coefficients = FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386;
|
encoder->private->local_lpc_compute_residual_from_qlp_coefficients = FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32;
|
||||||
encoder->private->local_lpc_compute_residual_from_qlp_coefficients_16bit = FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386_mmx;
|
encoder->private->local_lpc_compute_residual_from_qlp_coefficients_16bit = FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32_mmx;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
encoder->private->local_lpc_compute_residual_from_qlp_coefficients = FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386;
|
encoder->private->local_lpc_compute_residual_from_qlp_coefficients = FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32;
|
||||||
encoder->private->local_lpc_compute_residual_from_qlp_coefficients_16bit = FLAC__lpc_compute_residual_from_qlp_coefficients_asm_i386;
|
encoder->private->local_lpc_compute_residual_from_qlp_coefficients_16bit = FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user