Commit 096db654 authored by Michael Niedermayer's avatar Michael Niedermayer

qsort doxy

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 88f87eba
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
#include "common.h" #include "common.h"
/**
* Quicksort
* This sort is fast, and fully inplace but not stable and it is possible
* to construct input that requires O(n^2) time but this is very unlikely to
* happen with non constructed input.
*/
#define AV_QSORT(p, num, type, cmp) {\ #define AV_QSORT(p, num, type, cmp) {\
void *stack[64][2];\ void *stack[64][2];\
int sp= 1;\ int sp= 1;\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment