[FFmpeg-devel] [PATCH] Make bubblesort() a common function

Michael Niedermayer michaelni
Sun Nov 22 22:28:56 CET 2009


On Sun, Nov 22, 2009 at 09:05:55PM +0000, M?ns Rullg?rd wrote:
> Vitor Sessak <vitor1001 at gmail.com> writes:
> 
> > $subj, useful for SIPR, maybe also for WMAVoice.
> >
> > -Vitor
> > Index: libavcodec/lsp.c
> > ===================================================================
> > --- libavcodec/lsp.c	(revision 20569)
> > +++ libavcodec/lsp.c	(working copy)
> > @@ -173,3 +173,14 @@
> >          lpc2[-lp_half_order] = 0.5*(paf-qaf);
> >      }
> >  }
> > +
> > +void ff_bubblesort(float *lsp, int lp_order)
> 
> Whats wrong with qsort?  It's even standard C.

its slow for the case here AFAIK

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091122/35b69aa5/attachment.pgp>



More information about the ffmpeg-devel mailing list