Mercurial > repos > bitlab > bitlab
comparison gecko/src/sortHits.c @ 1:35af401890c0 draft
Uploaded
author | bitlab |
---|---|
date | Thu, 13 Dec 2018 07:59:25 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:ee6b15b409e5 | 1:35af401890c0 |
---|---|
1 #include <stdio.h> | |
2 #include <stdlib.h> | |
3 #include "structs.h" | |
4 #include "commonFunctions.h" | |
5 #include "quicksort.h" | |
6 | |
7 int GT(BaseType a1, BaseType a2) { | |
8 if(a1.diag > a2.diag) | |
9 return 1; | |
10 else if (a1.diag < a2.diag) | |
11 return 0; | |
12 if (a1.posX > a2.posX) | |
13 return 1; | |
14 | |
15 return 0; | |
16 } | |
17 | |
18 int main(int ac, char** av) { | |
19 if (ac < 4) { | |
20 printf("USE: sortHits <max_size> <num_proc> <input_file> <output_file>\n"); | |
21 exit(1); | |
22 } | |
23 | |
24 return psort(atoi(av[1]), atoi(av[2]), av[3], av[4]); | |
25 } | |
26 |