This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Linking: -lxcb -lxcb-image | |
//#include <xcb/xcb.h> | |
#include <xcb/xcb_image.h> | |
#include <malloc.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <linux/joystick.h> | |
//#include <time.h> | |
#include <sys/stat.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define Minimum(A,B) ((A) < (B) ? (A) : (B)) | |
static void | |
MergeSort(int *A, int Count, int *S) | |
{ | |
// A is the array to sort. | |
// S should be a buffer of at least the same size as A, doesn't have to be initialized. | |
for (int i = 0; i+1 < Count; i+=2) | |
{ | |
if (A[i] > A[i+1]) |