⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 quicksort.h

📁 Torus 3D Engine is an open-source OpenGL ES 3D Engine for creating your own games in BREW environmen
💻 H
字号:
//////////////////////////////////////////////////////////////////////
//
// QUICKSORT REPLACEMENT (not available on Brew v2.0)
//
// Vander Nunes, 2005.
//
//////////////////////////////////////////////////////////////////////

#ifndef __QUICKSORT_H__

	#define __QUICKSORT_H__

	#define QUICK_CUTOFF 8

	static void shortsort(char *lo, char *hi, unsigned int width, int (*comp)(const void *, const void *));
	static void swap(char *p, char *q, unsigned int width);
	int exp_cmp(const void *a, const void *b);

	void quicksort(void *base, unsigned int num, unsigned int width, int (*comp)(const void *, const void *));

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -