Prototypes | |
| int | finite (double) |
| static void | reduce_gctFstat_toplist_precision (toplist_t *l) |
| static int | _atomic_write_gctFstat_toplist_to_file (toplist_t *l, const char *filename, UINT4 *checksum, int write_done) |
| static int | print_gctFstatline_to_str (GCTtopOutputEntry fline, char *buf, int buflen) |
| static int | print_single_detector_quantities_to_str (char *outstr, size_t outstrlen, const REAL4 *quantities, const UINT4 numDetectors) |
| static int | print_single_detector_intval_to_str (char *outstr, size_t outstrlen, const INT4 *quantities, const UINT4 numDetectors) |
| static int | write_gctFstat_toplist_item_to_fp (GCTtopOutputEntry fline, FILE *fp, UINT4 *checksum) |
| static int | gctFstat_result_order (const void *a, const void *b) |
| static int | gctFstat_smaller (const void *a, const void *b) |
| static int | gctNC_smaller (const void *a, const void *b) |
| static int | gctBSGL_smaller (const void *a, const void *b) |
| static int | gctBSGLtL_smaller (const void *a, const void *b) |
| static int | gctBtSGLtL_smaller (const void *a, const void *b) |
| static int | gctFstat_final_qsort (const void *a, const void *b) |
| int | create_gctFstat_toplist (toplist_t **tl, UINT8 length, SortBy_t whatToSortBy) |
| creates a toplist with length elements, returns -1 on error (usually out of memory), else 0 More... | |
| void | free_gctFstat_toplist (toplist_t **l) |
| frees the space occupied by the toplist More... | |
| int | insert_into_gctFstat_toplist (toplist_t *tl, GCTtopOutputEntry *elem) |
| Inserts an element in to the toplist either if there is space left or the element is larger than the smallest element in the toplist. More... | |
| void | sort_gctFstat_toplist (toplist_t *l) |
| sorts the toplist with an internal sorting function, used before finally writing it More... | |
| static void | reduce_gctFstatline_precision (void *line) |
| int | write_gctFstat_toplist_to_fp (toplist_t *tl, FILE *fp, UINT4 *checksum) |
| Writes the toplist to an (already open) filepointer Returns the number of written charactes sets the checksum if non-NULL Returns something <0 on error. More... | |
| int | write_gct_checkpoint (const char *filename, toplist_t *tl, toplist_t *t2, toplist_t *t3, UINT4 counter, BOOLEAN do_sync) |
| Checkpointing. More... | |
| int | read_gct_checkpoint (const char *filename, toplist_t *tl, toplist_t *t2, toplist_t *t3, UINT4 *counter) |
| tries to read a checkpoint More... | |
| int | clear_gct_checkpoint (const char *filename) |
| removes a checkpoint returns 0 on success, errno on failure More... | |
| int | write_hfs_oputput (const char *filename, toplist_t *tl) |
| write the final output file: More... | |
Go to the source code of this file.
Macros | |
| #define | min(a, b) ((a)<(b)?(a):(b)) |
| #define | SYNC_FAIL_LIMIT 5 |
| #define | TEMP_EXT ".tmp" |
| #define | __func__ "" |
| log an I/O error, i.e. More... | |
| #define | LOGIOERROR(mess, filename) |
| #define | TMP_EXT ".tmp" |
Variables | |
| char * | global_column_headings_stringp |
Definition at line 75 of file GCTtoplist.c.
| #define SYNC_FAIL_LIMIT 5 |
Definition at line 79 of file GCTtoplist.c.
| #define TEMP_EXT ".tmp" |
| #define __func__ "" |
log an I/O error, i.e.
source code line no., ferror, errno and strerror, and doserrno on Windows, too
Definition at line 673 of file GCTtoplist.c.
| #define LOGIOERROR | ( | mess, | |
| filename | |||
| ) |
Definition at line 682 of file GCTtoplist.c.
| #define TMP_EXT ".tmp" |
| int finite | ( | double | ) |
|
static |
Definition at line 480 of file GCTtoplist.c.
|
static |
Definition at line 514 of file GCTtoplist.c.
|
static |
Definition at line 298 of file GCTtoplist.c.
|
static |
Definition at line 389 of file GCTtoplist.c.
|
static |
Definition at line 411 of file GCTtoplist.c.
|
static |
Definition at line 439 of file GCTtoplist.c.
Definition at line 93 of file GCTtoplist.c.
Definition at line 125 of file GCTtoplist.c.
Definition at line 148 of file GCTtoplist.c.
Definition at line 171 of file GCTtoplist.c.
Definition at line 192 of file GCTtoplist.c.
Definition at line 213 of file GCTtoplist.c.
Definition at line 236 of file GCTtoplist.c.
creates a toplist with length elements, returns -1 on error (usually out of memory), else 0
Definition at line 246 of file GCTtoplist.c.
| void free_gctFstat_toplist | ( | toplist_t ** | l | ) |
frees the space occupied by the toplist
Definition at line 270 of file GCTtoplist.c.
| int insert_into_gctFstat_toplist | ( | toplist_t * | list, |
| GCTtopOutputEntry * | line | ||
| ) |
Inserts an element in to the toplist either if there is space left or the element is larger than the smallest element in the toplist.
In the latter case, remove the smallest element from the toplist Returns 1 if the element was actually inserted, 0 if not.
Definition at line 281 of file GCTtoplist.c.
| void sort_gctFstat_toplist | ( | toplist_t * | l | ) |
sorts the toplist with an internal sorting function, used before finally writing it
Definition at line 291 of file GCTtoplist.c.
|
static |
Definition at line 464 of file GCTtoplist.c.
Writes the toplist to an (already open) filepointer Returns the number of written charactes sets the checksum if non-NULL Returns something <0 on error.
Definition at line 489 of file GCTtoplist.c.
| int write_gct_checkpoint | ( | const char * | filename, |
| toplist_t * | tl, | ||
| toplist_t * | t2, | ||
| toplist_t * | t3, | ||
| UINT4 | counter, | ||
| BOOLEAN | do_sync | ||
| ) |
Checkpointing.
writes a checkpoint:
Definition at line 688 of file GCTtoplist.c.
| int read_gct_checkpoint | ( | const char * | filename, |
| toplist_t * | tl, | ||
| toplist_t * | t2, | ||
| toplist_t * | t3, | ||
| UINT4 * | counter | ||
| ) |
tries to read a checkpoint
Definition at line 941 of file GCTtoplist.c.
removes a checkpoint returns 0 on success, errno on failure
Definition at line 1242 of file GCTtoplist.c.
write the final output file:
Definition at line 1284 of file GCTtoplist.c.
|
extern |
Definition at line 231 of file HierarchSearchGCT.c.