add lag checking code to SSE autocorrelation routine
authorJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 30 May 2001 19:22:26 +0000 (19:22 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 30 May 2001 19:22:26 +0000 (19:22 +0000)
src/libFLAC/i386/lpc_asm.s

index 53c9460..8187d81 100644 (file)
@@ -62,6 +62,7 @@ cident FLAC__lpc_compute_autocorrelation_asm_i386
        ;[esp + 24] == data_len
        ;[esp + 20] == data[]
 
+.begin:
        push    ebp
        push    ebx
        push    esi
@@ -213,6 +214,9 @@ cident FLAC__lpc_compute_autocorrelation_asm_i386_sse
        ;[esp + 8] == data_len
        ;[esp + 4] == data[]
 
+       cmp     [esp + 12], 8
+       jne     near FLAC__lpc_compute_autocorrelation_asm_i386.begin
+
        ;       for(coeff = 0; coeff < lag; coeff++)
        ;               autoc[coeff] = 0.0;
        xorps   xmm6, xmm6