summaryrefslogtreecommitdiffstats
path: root/converter/source/cQuicksort.h
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-04 21:13:10 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-04 21:13:10 +0100
commitc10ba99d155ec0f1b0b735d3651d3b78304c6b82 (patch)
treed697ccc211edf74c7dbc88f5c8bc02551b0290c2 /converter/source/cQuicksort.h
parentUpdated denotch map converter. Compiled with zlib that MCServr uses to remove the lag spike problem caused when reading map files using a different compression. Remade makefile and cleaned up code considerably. (diff)
downloadcuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.gz
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.bz2
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.lz
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.xz
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.tar.zst
cuberite-c10ba99d155ec0f1b0b735d3651d3b78304c6b82.zip
Diffstat (limited to 'converter/source/cQuicksort.h')
-rw-r--r--converter/source/cQuicksort.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/converter/source/cQuicksort.h b/converter/source/cQuicksort.h
new file mode 100644
index 000000000..b9327bd7d
--- /dev/null
+++ b/converter/source/cQuicksort.h
@@ -0,0 +1,16 @@
+#pragma once
+
+
+class cQuicksort {
+
+
+public:
+ void quicksort(int*, int, int);
+
+
+private:
+ int partition(int*, int, int, int);
+ int median3(int*,int,int);
+ void swap(int &, int &);
+
+};