input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
int gmtio_x_read(GMT_CTRL *GMT, FILE *fp, off_t rel_move) { if (!fseeko(fp, rel_move, 1)) return 0; GMT->current.io.status = 8; return 9; }
GMT_LOCAL int gmtio_x_read (struct GMT_CTRL *GMT, FILE *fp, off_t rel_move) { if (fseek (fp, rel_move, SEEK_CUR)) { GMT->current.io.status = GMT_IO_EOF; return (GMT_DATA_READ_ERROR); } return (GMT_OK); }
gmtio_x_read
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtio_x_write(GMT_CTRL *GMT, FILE *fp, off_t n) { char c; off_t i; unsigned long v7; v7 = __readfsqword(0x28u); c = 32; for (i = 0; i < n; ++i) { if (fwrite(&c, 1u, 1u, fp) != 1) return 10; } return 0; }
GMT_LOCAL int gmtio_x_write (struct GMT_CTRL *GMT, FILE *fp, off_t n) { char c = ' '; off_t i; gmt_M_unused(GMT); for (i = 0; i < n; ++i) { if (gmt_M_fwrite (&c, sizeof (char), 1U, fp) != 1U) return (GMT_DATA_WRITE_ERROR); } return (GMT_NOERROR); }
gmtio_x_write
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_TEXTSET *gmtlib_alloc_textset(GMT_CTRL *GMT, GMT_TEXTSET *Din, unsigned int mode) { _QWORD *table; GMT_TEXTTABLE *v4; void **v5; const char *v6; GMT_TEXTTABLE *v7; GMT_TEXTTABLE *v8; GMT_TEXTTABLE *v9; void **v10; size_t *p_n_rows; GMT_TEXTSEGMENT *v12; GMT_TE...
struct GMT_TEXTSET * gmtlib_alloc_textset (struct GMT_CTRL *GMT, struct GMT_TEXTSET *Din, unsigned int mode) { unsigned int hdr; uint64_t tbl, seg, n_seg, seg_in_tbl; size_t len; struct GMT_TEXTSET *D = gmt_M_memory (GMT, NULL, 1, struct GMT_TEXTSET); if (mode) { D->n_alloc = D->n_tables = 1; if (mo...
gmtlib_alloc_textset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_alloc_univector(GMT_CTRL *GMT, GMT_UNIVECTOR *u, unsigned int type, uint64_t n_rows) { int error; error = 0; switch (type) { case 0u: u->uc1 = (uint8_t *)gmt_memory_func(GMT, u->uc1, n_rows, 1u, 0, "gmtlib_alloc_univector"); ...
int gmtlib_alloc_univector (struct GMT_CTRL *GMT, union GMT_UNIVECTOR *u, unsigned int type, uint64_t n_rows) { int error = GMT_OK; switch (type) { case GMT_UCHAR: u->uc1 = gmt_M_memory (GMT, u->uc1, n_rows, uint8_t); if (u->uc1 == NULL) error = GMT_MEMORY_ERROR; break; case GMT_CHAR: u->sc1 = gmt_M_memory...
gmtlib_alloc_univector
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_append_ogr_item(GMT_CTRL *GMT, char *name, unsigned int type, GMT_OGR *S) { char **v5; if (S) { S->name = (char **)gmt_memory_func(GMT, S->name, ++S->n_aspatial, 8u, 0, "gmtlib_append_ogr_item"); v5 = &S->name[S->n_aspatial - 1]; ...
int gmtlib_append_ogr_item (struct GMT_CTRL *GMT, char *name, unsigned int type, struct GMT_OGR *S) { if (S == NULL) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "gmtio_append_ogr_item: No GMT_OGR structure available\n"); return (GMT_PTR_IS_NULL); } S->n_aspatial++; S->name = gmt_M_memory (GMT, S->name, S->n_aspa...
gmtlib_append_ogr_item
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_assign_segment(GMT_CTRL *GMT, GMT_DATASEGMENT *S, uint64_t n_rows, uint64_t n_columns) { void **v4; void **v5; uint64_t col; uint64_t cola; if (n_rows) { S->data = (double **)gmt_memory_func(GMT, 0, n_columns, 8u, 0, "gmtlib_...
void gmtlib_assign_segment (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *S, uint64_t n_rows, uint64_t n_columns) { uint64_t col; if (n_rows == 0) return; S->data = gmt_M_memory (GMT, NULL, n_columns, double *); S->min = gmt_M_memory (GMT, NULL, n_columns, double); S->max = gmt_M_memory (GMT, NULL, n_colu...
gmtlib_assign_segment
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double *gmtlib_assign_vector(GMT_CTRL *GMT, uint64_t n_rows, uint64_t col) { void **v4; double *vector; if (!n_rows) return 0; if (n_rows <= 0x200000) { vector = (double *)gmt_memory_func(GMT, 0, n_rows, 8u, 0, "gmtlib_assign_vector"); memcpy(vector, GMT->hidd...
double *gmtlib_assign_vector (struct GMT_CTRL *GMT, uint64_t n_rows, uint64_t col) { double *vector = NULL; if (n_rows == 0) return NULL; if (n_rows > GMT_INITIAL_MEM_ROW_ALLOC) { if (n_rows < GMT->hidden.mem_rows) GMT->hidden.mem_coord[col] = gmt_M_memory (GMT, GMT->hidden.mem_coord[col], n_rows, double...
gmtlib_assign_vector
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_bcr_get_img(GMT_CTRL *GMT, GMT_IMAGE *G, double xx, double yy, unsigned char *z) { double v6; unsigned char v7; double v8; double yya; double xxa; GMT_IMAGE *Ga; GMT_CTRL *GMTa; unsigned int i; unsigned int j; unsigned int b; unsigned int nb; uint64_t ij; doub...
int gmtlib_bcr_get_img (struct GMT_CTRL *GMT, struct GMT_IMAGE *G, double xx, double yy, unsigned char *z) { unsigned int i, j, b, nb = G->header->n_bands; uint64_t ij; double retval[4], wsum, wx[4] = {0.0, 0.0, 0.0, 0.0}, wy[4] = {0.0, 0.0, 0.0, 0.0}, w; if (bcr_reject (G->header, &xx, &yy)) return (1); ...
gmtlib_bcr_get_img
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmtlib_bin_colselect(GMT_CTRL *GMT) { double v1; uint64_t col; for (col = 0; col < *(unsigned long *)((char *)&stru_230A0.r_offset + (_QWORD)GMT); ++col) { tmp_45[GMT->current.io.col[0][col].order] = GMT->current.io.curr_rec[GMT->current.io.col[0][col].col]; if (GMT->curren...
uint64_t gmtlib_bin_colselect (struct GMT_CTRL *GMT) { uint64_t col; static double tmp[GMT_BUFSIZ]; for (col = 0; col < GMT->common.i.n_cols; col++) { tmp[GMT->current.io.col[GMT_IN][col].order] = GMT->current.io.curr_rec[GMT->current.io.col[GMT_IN][col].col]; gmt_convert_col (GMT->current.io.col[GMT_IN][col],...
gmtlib_bin_colselect
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_change_dataset(GMT_CTRL *GMT, GMT_DATASET *D) { void **v2; void **v3; bool extend; bool adjust; uint64_t tbl; uint64_t seg; uint64_t col; uint64_t cola; uint64_t colb; uint64_t colc; uint64_t cold; unsigned int *used; double **temp; GMT_DATATABLE *T; GMT_DATASEGMENT *S; uint6...
void gmtlib_change_dataset (struct GMT_CTRL *GMT, struct GMT_DATASET *D) { uint64_t tbl, seg, col, src_col; unsigned int *used = NULL; bool extend = false, adjust = false; double **temp = NULL; struct GMT_DATATABLE *T = NULL; struct GMT_DATASEGMENT *S; if (!GMT->common.o.active) return; temp = gmt_M_memory...
gmtlib_change_dataset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_check_url_name(char *fname) { if (fname && (!strncmp(fname, "http:", 5u) || !strncmp(fname, "https:", 6u) || !strncmp(fname, "ftp:", 4u))) return 1; return !strncmp(fname, "/vsizip/", 8u) || !strncmp(fname, "/vsigzip/", 9u) || !strncmp(fname, "/vsicurl/", 9u) || !strncmp(fna...
bool gmtlib_check_url_name (char *fname) { if (gmt_M_file_is_url (fname)) return (true); if (!strncmp(fname,"/vsizip/", 8) || !strncmp(fname,"/vsigzip/",9) || !strncmp(fname,"/vsicurl/",9) || !strncmp(fname,"/vsimem/", 8) || !strncmp(fname,"/vsitar/", 8) ) return (true); else return (false); ...
gmtlib_check_url_name
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_clock_C_format(GMT_CTRL *GMT, char *form, GMT_CLOCK_IO *S, unsigned int mode) { char fmt[72]; unsigned long v7; v7 = __readfsqword(0x28u); S->skip = 0; if (mode && strlen(form) == 1 && *form == 45) { S->skip = 1; } else { gmtio_get_hms_order(GMT, form, S); ...
void gmtlib_clock_C_format (struct GMT_CTRL *GMT, char *form, struct GMT_CLOCK_IO *S, unsigned int mode) { S->skip = false; if (mode && strlen (form) == 1 && form[0] == '-') { S->skip = true; return; } gmtio_get_hms_order (GMT, form, S); if (S->order[0] >= 0) { char fmt[GMT_LEN64] = {""}; ...
gmtlib_clock_C_format
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_compare_observation(const void *a, const void *b) { if (*(float *)b <= *(float *)a) return *(float *)a > *(float *)b; else return -1; }
int gmtlib_compare_observation (const void *a, const void *b) { const struct GMT_OBSERVATION *obs_1 = a, *obs_2 = b; if (obs_1->value < obs_2->value) return -1; if (obs_1->value > obs_2->value) return 1; return 0; }
gmtlib_compare_observation
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_contract_headerpad(GMT_CTRL *GMT, GMT_GRID_HEADER *h, unsigned int *orig_pad, double *orig_wesn) { long v4; if (h) { v4 = *((_QWORD *)orig_pad + 1); *(_QWORD *)h->pad = *(_QWORD *)orig_pad; *(_QWORD *)&h->pad[2] = v4; memcpy(h->wesn, orig_wesn, sizeof(h->w...
void gmtlib_contract_headerpad (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, unsigned int *orig_pad, double *orig_wesn) { if (h == NULL) return; gmt_M_memcpy (h->pad, orig_pad, 4, unsigned int); gmt_M_memcpy (h->wesn, orig_wesn, 4, double); gmt_set_grddim (GMT, h); GMT_Report (GMT->parent, GMT_MSG_DEBUG...
gmtlib_contract_headerpad
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_contract_pad(GMT_CTRL *GMT, void *object, int family, unsigned int *orig_pad, double *orig_wesn) { GMT_GRID_HEADER *h; GMT_IMAGE *I; GMT_GRID *G; h = 0; if (family == 1) { G = grdio_get_grid_data((GMT_GRID *)object); if (G) h = G->header; } else if (family...
void gmtlib_contract_pad (struct GMT_CTRL *GMT, void *object, int family, unsigned int *orig_pad, double *orig_wesn) { struct GMT_GRID_HEADER *h = NULL; if (family == GMT_IS_GRID) { struct GMT_GRID *G = grdio_get_grid_data (object); if (G) h = G->header; } else if (family == GMT_IS_IMAGE) { struct GMT_IMAGE...
gmtlib_contract_pad
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtlib_conv_text2datarec(GMT_CTRL *GMT, char *record, unsigned int ncols, double *out) { const char *v4; unsigned int pos; unsigned int k; char p[4104]; unsigned long v12; v12 = __readfsqword(0x28u); k = 0; pos = 0; while (k < ncols) { v4 = _gmt_...
unsigned int gmtlib_conv_text2datarec (struct GMT_CTRL *GMT, char *record, unsigned int ncols, double *out) { unsigned int k = 0, pos = 0; char p[GMT_BUFSIZ]; while (k < ncols && gmt_strtok (record, GMT_TOKEN_SEPARATORS, &pos, p)) { if (!(p[0] == '+' || p[0] == '-' || p[0] == '.' || isdigit ((int)p[0]))) ...
gmtlib_conv_text2datarec
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_copy_ps(GMT_CTRL *GMT, GMT_POSTSCRIPT *P_copy, GMT_POSTSCRIPT *P_obj) { if (P_obj->n_bytes > P_copy->n_alloc) P_copy->data = (char *)gmt_memory_func(GMT, P_copy->data, P_obj->n_bytes, 1u, 0, "gmtlib_copy_ps"); memcpy(P_copy->data, P_obj-...
void gmtlib_copy_ps (struct GMT_CTRL *GMT, struct GMT_POSTSCRIPT *P_copy, struct GMT_POSTSCRIPT *P_obj) { if (P_obj->n_bytes > P_copy->n_alloc) P_copy->data = gmt_M_memory (GMT, P_copy->data, P_obj->n_bytes, char); gmt_M_memcpy (P_copy->data, P_obj->data, P_obj->n_bytes, char); P_copy->n_alloc = P_copy->n_bytes = ...
gmtlib_copy_ps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_DATASET *gmtlib_create_dataset(GMT_CTRL *GMT, uint64_t n_tables, uint64_t n_segments, uint64_t n_rows, uint64_t n_columns, unsigned int geometry, bool alloc_only) { GMT_DATATABLE **v7; GMTAPI_CTRL *parent; ...
struct GMT_DATASET * gmtlib_create_dataset (struct GMT_CTRL *GMT, uint64_t n_tables, uint64_t n_segments, uint64_t n_rows, uint64_t n_columns, unsigned int geometry, bool alloc_only) { uint64_t tbl; struct GMT_DATASET *D = NULL; D = gmt_M_memory (GMT, NULL, 1, struct GMT_DATASET); if (n_columns) { D->min = gmt...
gmtlib_create_dataset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_IMAGE *gmtlib_create_image(GMT_CTRL *GMT) { GMTAPI_CTRL *parent; unsigned int unique_var_ID; GMT_IMAGE *I; I = (GMT_IMAGE *)gmt_memory_func(GMT, 0, 1u, 0x68u, 0, "gmtlib_create_image"); I->header = (GMT_GRID_HEADER *)gmt_memory_func(GMT, 0, 1u, 0x640u, 0, ...
struct GMT_IMAGE *gmtlib_create_image (struct GMT_CTRL *GMT) { struct GMT_IMAGE *I = gmt_M_memory (GMT, NULL, 1, struct GMT_IMAGE); I->header = gmt_M_memory (GMT, NULL, 1, struct GMT_GRID_HEADER); I->alloc_mode = GMT_ALLOC_INTERNALLY; I->alloc_level = GMT->hidden.func_level; I->id = GMT->parent->unique_var_ID...
gmtlib_create_image
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_MATRIX *gmtlib_create_matrix(GMT_CTRL *GMT, uint64_t layers, unsigned int direction) { GMTAPI_CTRL *parent; unsigned int unique_var_ID; uint64_t v5; GMT_MATRIX *M; M = (GMT_MATRIX *)gmt_memory_func(GMT, 0, 1u, 0x260u, 0, "gmtlib_create_...
struct GMT_MATRIX * gmtlib_create_matrix (struct GMT_CTRL *GMT, uint64_t layers, unsigned int direction) { struct GMT_MATRIX *M = NULL; M = gmt_M_memory (GMT, NULL, 1, struct GMT_MATRIX); M->alloc_mode = (direction == GMT_IN) ? GMT_ALLOC_EXTERNALLY : GMT_ALLOC_INTERNALLY; M->alloc_level = GMT->hidden.func_level...
gmtlib_create_matrix
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_POSTSCRIPT *gmtlib_create_ps(GMT_CTRL *GMT, uint64_t length) { GMTAPI_CTRL *parent; unsigned int unique_var_ID; GMT_POSTSCRIPT *P; P = (GMT_POSTSCRIPT *)gmt_memory_func(GMT, 0, 1u, 0x38u, 0, "gmtlib_create_ps"); P->alloc_mode = GMT_enum_alloc_GMT_ALLOC_INTERNALLY; ...
struct GMT_POSTSCRIPT * gmtlib_create_ps (struct GMT_CTRL *GMT, uint64_t length) { struct GMT_POSTSCRIPT *P = NULL; P = gmt_M_memory (GMT, NULL, 1, struct GMT_POSTSCRIPT); P->alloc_mode = GMT_ALLOC_INTERNALLY; P->alloc_level = GMT->hidden.func_level; P->id = GMT->parent->unique_var_ID++; if (length) { P...
gmtlib_create_ps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_TEXTSET *gmtlib_create_textset(GMT_CTRL *GMT, uint64_t n_tables, uint64_t n_segments, uint64_t n_rows, bool alloc_only) { void **v5; void **v6; GMT_TEXTSEGMENT *v7; GMTAPI_CTRL *parent; unsigned int unique_var_ID; uint64_t tbl; uint...
struct GMT_TEXTSET * gmtlib_create_textset (struct GMT_CTRL *GMT, uint64_t n_tables, uint64_t n_segments, uint64_t n_rows, bool alloc_only) { uint64_t tbl, seg; struct GMT_TEXTTABLE *T = NULL; struct GMT_TEXTSET *D = NULL; D = gmt_M_memory (GMT, NULL, 1, struct GMT_TEXTSET); if (n_tables) D->table = gmt_M_me...
gmtlib_create_textset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_date_C_format(GMT_CTRL *GMT, char *form, GMT_DATE_IO *S, unsigned int mode) { bool v4; bool v5; int v6; int v7; int v8; bool no_delim; int k; int ka; int ywidth; char fmt[72]; unsigned long v16; v16 = __readfsqword(0x28u); memset(fmt, 0, 64); S->skip = ...
void gmtlib_date_C_format (struct GMT_CTRL *GMT, char *form, struct GMT_DATE_IO *S, unsigned int mode) { int k, ywidth; bool no_delim, watch; char fmt[GMT_LEN64] = {""}; S->skip = false; if (mode && strlen (form) == 1 && form[0] == '-') { S->skip = true; return; } watch = gmtio_get_ymdj_order (GMT...
gmtlib_date_C_format
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
float gmtlib_decode(GMT_CTRL *GMT, void *vptr, uint64_t k, unsigned int type) { float v4; float fval; switch (type) { case 'b': fval = (float)*((char *)vptr + k); break; case 'd': v4 = *((double *)vptr + k); fval = v4; break; case 'f': fval = *((float *)vptr + k); break; case ...
float gmtlib_decode (struct GMT_CTRL *GMT, void *vptr, uint64_t k, unsigned int type) { float fval; switch (type) { case 'b': fval = (float)(((char *)vptr)[k]); break; case 's': fval = (float)(((short int *)vptr)[k]); break; case 'i': case 'm': fval = (float)(((int *)vptr)[k]); break; c...
gmtlib_decode
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_determine_pole(GMT_CTRL *GMT, double *lon, double *lat, uint64_t n) { double v5; double v6; bool touched_N; bool touched_S; int type; int n_360; uint64_t row; double dlon; double lon_sum; double lat_sum; touched_N = 0; touched_S = 0; type = 0; lon_sum = 0.0; lat_sum = 0.0; if...
int gmtlib_determine_pole (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t n) { bool touched_N = false, touched_S = false; uint64_t row; int type = 0, n_360; double dlon, lon_sum = 0.0, lat_sum = 0.0; static char *pole[5] = {"south (CCW)", "south (CW)", "no", "north (CW)", "north (CCW)"}; if (n...
gmtlib_determine_pole
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_IMAGE *gmtlib_duplicate_image(GMT_CTRL *GMT, GMT_IMAGE *I, unsigned int mode) { GMT_GRID_HEADER *header; GMT_GRID_HEADER *v4; GMT_GRID_HEADER *v5; char modea; GMT_IMAGE *Inew; GMT_GRID_HEADER *save; modea = mode; Inew = gmtlib_create_image(GMT); save = Inew->head...
struct GMT_IMAGE *gmtlib_duplicate_image (struct GMT_CTRL *GMT, struct GMT_IMAGE *I, unsigned int mode) { struct GMT_IMAGE *Inew = NULL; struct GMT_GRID_HEADER *save = NULL; Inew = gmtlib_create_image (GMT); save = Inew->header; gmt_M_memcpy (Inew, I, 1, struct GMT_IMAGE); Inew->header = save; Inew->data = ...
gmtlib_duplicate_image
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_MATRIX *gmtlib_duplicate_matrix(GMT_CTRL *GMT, GMT_MATRIX *M_in, bool duplicate_data) { GMT_MATRIX *M; uint64_t size; M = (GMT_MATRIX *)gmt_memory_func(GMT, 0, 1u, 0x260u, 0, "gmtlib_duplicate_matrix"); memcpy(M, M_in, sizeof(GMT_MATRI...
struct GMT_MATRIX * gmtlib_duplicate_matrix (struct GMT_CTRL *GMT, struct GMT_MATRIX *M_in, bool duplicate_data) { struct GMT_MATRIX *M = NULL; M = gmt_M_memory (GMT, NULL, 1, struct GMT_MATRIX); gmt_M_memcpy (M, M_in, 1, struct GMT_MATRIX); gmt_M_memset (&M->data, 1, union GMT_UNIVECTOR); if (duplicate_data) { ...
gmtlib_duplicate_matrix
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_OGR *gmtlib_duplicate_ogr(GMT_CTRL *GMT, GMT_OGR *G) { char **v3; unsigned int k; unsigned int ka; GMT_OGR *G_dup; if (!G) return 0; G_dup = (GMT_OGR *)gmt_memory_func(GMT, 0, 1u, 0x58u, 0, "gmtlib_duplicate_ogr"); if (G->region) G_dup->region = strdup(G->region); for (k = 0; k <= 3; ...
struct GMT_OGR * gmtlib_duplicate_ogr (struct GMT_CTRL *GMT, struct GMT_OGR *G) { unsigned int k; struct GMT_OGR *G_dup = NULL; if (!G) return (NULL); G_dup = gmt_M_memory (GMT, NULL, 1, struct GMT_OGR); if (G->region) G_dup->region = strdup (G->region); for (k = 0; k < 4; k++) if (G->proj[k]) G_dup->proj[k] =...
gmtlib_duplicate_ogr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_POSTSCRIPT *gmtlib_duplicate_ps(GMT_CTRL *GMT, GMT_POSTSCRIPT *P_from, unsigned int mode) { GMT_POSTSCRIPT *P; P = gmtlib_create_ps(GMT, P_from->n_bytes); gmtlib_copy_ps(GMT, P, P_from); return P; }
struct GMT_POSTSCRIPT * gmtlib_duplicate_ps (struct GMT_CTRL *GMT, struct GMT_POSTSCRIPT *P_from, unsigned int mode) { struct GMT_POSTSCRIPT *P = gmtlib_create_ps (GMT, P_from->n_bytes); gmt_M_unused(mode); gmtlib_copy_ps (GMT, P, P_from); return (P); }
gmtlib_duplicate_ps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_TEXTSET *gmtlib_duplicate_textset(GMT_CTRL *GMT, GMT_TEXTSET *Din, unsigned int mode) { char **v3; uint64_t tbl; uint64_t row; uint64_t seg; GMT_TEXTSET *D; D = gmtlib_alloc_textset(GMT, Din, mode); for (tbl = 0; tbl < Din->n_tables; ++tbl) { for (seg = 0; se...
struct GMT_TEXTSET *gmtlib_duplicate_textset (struct GMT_CTRL *GMT, struct GMT_TEXTSET *Din, unsigned int mode) { uint64_t tbl, row, seg; struct GMT_TEXTSET *D = NULL; D = gmtlib_alloc_textset (GMT, Din, mode); for (tbl = 0; tbl < Din->n_tables; tbl++) for (seg = 0; seg < Din->table[tbl]->n_segments; seg++) { for...
gmtlib_duplicate_textset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_eliminate_lon_jumps(GMT_CTRL *GMT, double *lon, uint64_t n_rows) { unsigned int way; uint64_t row; uint64_t rowa; GMT_QUAD *Q; Q = gmt_quad_init(GMT, 1u); for (row = 0; row < n_rows; ++row) gmt_quad_add(GMT, Q, lon[row]); way = gmt_quad_finalize(GMT, Q); for (rowa = 0; rowa < n_rows; ++...
void gmtlib_eliminate_lon_jumps (struct GMT_CTRL *GMT, double *lon, uint64_t n_rows) { unsigned int way; uint64_t row; struct GMT_QUAD *Q = gmt_quad_init (GMT, 1); for (row = 0; row < n_rows; row++) gmt_quad_add (GMT, Q, lon[row]); way = gmt_quad_finalize (GMT, Q); for (row = 0; row < n_rows; row++) gmt_...
gmtlib_eliminate_lon_jumps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_encode(GMT_CTRL *GMT, void *vptr, uint64_t k, float z, unsigned int type) { switch (type) { case 'b': *((_BYTE *)vptr + k) = lrintf(z); break; case 'd': *((double *)vptr + k) = z; break; case 'f': *((float *)vptr + k) = z; break; case 'i': case 'm': ...
void gmtlib_encode (struct GMT_CTRL *GMT, void *vptr, uint64_t k, float z, unsigned int type) { switch (type) { case 'b': ((char *)vptr)[k] = (char)lrintf (z); break; case 's': ((short int *)vptr)[k] = (short int)lrintf (z); break; case 'i': case 'm': ((int *)vptr)[k] = (int)lrintf (z); bre...
gmtlib_encode
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtlib_expand_headerpad(GMT_CTRL *GMT, GMT_GRID_HEADER *h, double *new_wesn, unsigned int *orig_pad, double *orig_wesn) { long v5; long v6; long v7; unsigned int k; unsigned int ka; unsigned int tmp_pad[4]; unsigned int...
unsigned int gmtlib_expand_headerpad (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, double *new_wesn, unsigned int *orig_pad, double *orig_wesn) { unsigned int tmp_pad[4] = {0, 0, 0, 0}, delta[4] = {0, 0, 0, 0}, k = 0; gmt_M_memcpy (tmp_pad, h->pad, 4, unsigned int); if (new_wesn[XLO] > h->wesn[XLO]) k++,...
gmtlib_expand_headerpad
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_explain_options(GMT_CTRL *GMT, char *options) { int num_processors; char u; unsigned int k; double s; unsigned long s_length; char *GMT_choice[2]; unsigned long v8; v8 = __readfsqword(0x28u); GMT_choice[0] = (char *)&unk_4712D0; GMT_choice[1] = (char *)&unk_4712D4; if (options && !GMT...
void gmtlib_explain_options (struct GMT_CTRL *GMT, char *options) { char u, *GMT_choice[2] = {"OFF", "ON"}, *V_code = "qncvld"; double s; unsigned int k; size_t s_length; if (!options) return; if (GMT->common.synopsis.extended) return; u = GMT->session.unit_name[GMT->current.setting.proj_length_unit][0]; s =...
gmtlib_explain_options
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_file_is_downloadable(GMT_CTRL *GMT, const char *file, unsigned int *kind) { int pos; pos = 0; *kind = 0; if (!GMT->current.setting.auto_download) return 0; if (!file) return 0; if (*file != 64 || !strncmp(file, "@GMTAPI@-", 9u)) { if (!strncmp(file, ...
bool gmtlib_file_is_downloadable (struct GMT_CTRL *GMT, const char *file, unsigned int *kind) { #ifdef DEBUG static char *fkind[5] = {"Regular File", "Cache File", "Data File", "URL File", "URL Query"}; #endif unsigned int pos = 0; *kind = GMT_REGULAR_FILE; if (GMT->current.setting.auto_download == GMT_NO_DOW...
gmtlib_file_is_downloadable
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_dataset_ptr(GMT_CTRL *GMT, GMT_DATASET *data) { unsigned int tbl; unsigned int k; if (data) { for (tbl = 0; tbl < data->n_tables; ++tbl) gmt_free_table(GMT, data->table[tbl]); gmt_free_func(GMT, data->min, 0, "gmtlib_free_dataset_ptr"); data->min = 0; gmt_free_func(GMT, dat...
void gmtlib_free_dataset_ptr (struct GMT_CTRL *GMT, struct GMT_DATASET *data) { unsigned int tbl, k; if (!data) return; for (tbl = 0; tbl < data->n_tables; tbl++) { gmt_free_table (GMT, data->table[tbl]); } gmt_M_free (GMT, data->min); gmt_M_free (GMT, data->max); gmt_M_free (GMT, data->table); for (k = 0;...
gmtlib_free_dataset_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_dir_list(GMT_CTRL *GMT, char ***addr) { unsigned int k; char **list; k = 0; for (list = *addr; list[k]; list[k++] = 0) free(list[k]); gmt_free_func(GMT, list, 0, "gmtlib_free_dir_list"); }
void gmtlib_free_dir_list (struct GMT_CTRL *GMT, char ***addr) { unsigned int k = 0; char **list = *addr; while (list[k]) { gmt_M_str_free (list[k]); k++; } gmt_M_free (GMT, list); }
gmtlib_free_dir_list
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_image(GMT_CTRL *GMT, GMT_IMAGE **I, bool free_image) { gmtlib_free_image_ptr(GMT, *I, free_image); gmt_free_func(GMT, *I, 0, "gmtlib_free_image"); *I = 0; }
void gmtlib_free_image (struct GMT_CTRL *GMT, struct GMT_IMAGE **I, bool free_image) { gmtlib_free_image_ptr (GMT, *I, free_image); gmt_M_free (GMT, *I); }
gmtlib_free_image
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_image_ptr(GMT_CTRL *GMT, GMT_IMAGE *I, bool free_image) { if (I) { if (free_image && I->data && I->alloc_mode == GMT_enum_alloc_GMT_ALLOC_INTERNALLY) { gmt_free_func(GMT, I->data, 1, "gmtlib_free_image_ptr"); I->data = 0; } if (free_image && I->alpha && I->allo...
void gmtlib_free_image_ptr (struct GMT_CTRL *GMT, struct GMT_IMAGE *I, bool free_image) { if (!I) return; if (free_image && I->data) { if (I->alloc_mode == GMT_ALLOC_INTERNALLY) gmt_M_free_aligned (GMT, I->data); } if (free_image && I->alpha) { if (I->alloc_mode == GMT_ALLOC_INTERNALLY) gmt_M_free_alig...
gmtlib_free_image_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_list(GMT_CTRL *GMT, char **list, uint64_t n) { uint64_t i; for (i = 0; i < n; ++i) { free(list[i]); list[i] = 0; } gmt_free_func(GMT, list, 0, "gmtlib_free_list"); }
void gmtlib_free_list (struct GMT_CTRL *GMT, char **list, uint64_t n) { uint64_t i; for (i = 0; i < n; i++) gmt_M_str_free (list[i]); gmt_M_free (GMT, list); }
gmtlib_free_list
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_matrix(GMT_CTRL *GMT, GMT_MATRIX **M, bool free_matrix) { gmtlib_free_matrix_ptr(GMT, *M, free_matrix); gmt_free_func(GMT, *M, 0, "gmtlib_free_matrix"); *M = 0; }
void gmtlib_free_matrix (struct GMT_CTRL *GMT, struct GMT_MATRIX **M, bool free_matrix) { (void)gmtlib_free_matrix_ptr (GMT, *M, free_matrix); gmt_M_free (GMT, *M); }
gmtlib_free_matrix
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtlib_free_matrix_ptr(GMT_CTRL *GMT, GMT_MATRIX *M, bool free_matrix) { if (!M) return 0; if (M != (GMT_MATRIX *)-104LL && free_matrix) { if (M->alloc_mode == GMT_enum_alloc_GMT_ALLOC_INTERNALLY) gmtio_free_univector(GMT, &M->data, M->type); gmtio_...
unsigned int gmtlib_free_matrix_ptr (struct GMT_CTRL *GMT, struct GMT_MATRIX *M, bool free_matrix) { if (!M) return 0; if (&(M->data) && free_matrix) { if (M->alloc_mode == GMT_ALLOC_INTERNALLY) gmtio_free_univector (GMT, &(M->data), M->type); gmtio_null_univector (GMT, &(M->data), M->type); } return (M->a...
gmtlib_free_matrix_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_ogr(GMT_CTRL *GMT, GMT_OGR **G, unsigned int mode) { unsigned int k; unsigned int ka; if (*G) { for (k = 0; k < (*G)->n_aspatial; ++k) { if (mode == 1 && (*G)->name) { free((*G)->name[k]); (*G)->name[k] = 0; } if ((*G)->tvalue) { free((*G)->tvalue[k]...
void gmtlib_free_ogr (struct GMT_CTRL *GMT, struct GMT_OGR **G, unsigned int mode) { unsigned int k; if (!(*G)) return; for (k = 0; k < (*G)->n_aspatial; k++) { if (mode == 1 && (*G)->name) gmt_M_str_free ((*G)->name[k]); if ((*G)->tvalue) gmt_M_str_free ((*G)->tvalue[k]); } gmt_M_free (GMT, (*G)->tvalue)...
gmtlib_free_ogr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_one_custom_symbol(GMT_CTRL *GMT, GMT_CUSTOM_SYMBOL *sym) { GMT_CUSTOM_SYMBOL_ITEM *s; GMT_CUSTOM_SYMBOL_ITEM *current; if (sym) { s = sym->first; while (s) { current = s; s = s->next; gmt_free_func(GMT, current->fill, 0, "gmtlib_free_one_custom_symbol"); current->...
GMT_LOCAL void gmtlib_free_one_custom_symbol (struct GMT_CTRL *GMT, struct GMT_CUSTOM_SYMBOL *sym) { struct GMT_CUSTOM_SYMBOL_ITEM *s = NULL, *current = NULL; if (sym == NULL) return; s = sym->first; while (s) { current = s; s = s->next; gmt_M_free (GMT, current->fill); gmt_M_free (GMT, current->pen); ...
gmtlib_free_one_custom_symbol
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_ps(GMT_CTRL *GMT, GMT_POSTSCRIPT **P) { gmtlib_free_ps_ptr(GMT, *P); gmt_free_func(GMT, *P, 0, "gmtlib_free_ps"); *P = 0; *P = 0; }
void gmtlib_free_ps (struct GMT_CTRL *GMT, struct GMT_POSTSCRIPT **P) { gmtlib_free_ps_ptr (GMT, *P); gmt_M_free (GMT, *P); *P = NULL; }
gmtlib_free_ps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_ps_ptr(GMT_CTRL *GMT, GMT_POSTSCRIPT *P) { unsigned int k; if (P->n_alloc && P->data && P->alloc_mode == GMT_enum_alloc_GMT_ALLOC_INTERNALLY) { gmt_free_func(GMT, P->data, 0, "gmtlib_free_ps_ptr"); P->data = 0; } P->data = 0; P->n_bytes = 0; P->n_alloc = P->n_bytes; for (k ...
void gmtlib_free_ps_ptr (struct GMT_CTRL *GMT, struct GMT_POSTSCRIPT *P) { unsigned k; if (P->n_alloc && P->data) { if (P->alloc_mode == GMT_ALLOC_INTERNALLY) gmt_M_free (GMT, P->data); } P->data = NULL; P->n_alloc = P->n_bytes = 0; for (k = 0; k < P->n_headers; k++) gmt_M_str_free (P->header[k]); ...
gmtlib_free_ps_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_textset(GMT_CTRL *GMT, GMT_TEXTSET **data) { gmtlib_free_textset_ptr(GMT, *data); gmt_free_func(GMT, *data, 0, "gmtlib_free_textset"); *data = 0; }
void gmtlib_free_textset (struct GMT_CTRL *GMT, struct GMT_TEXTSET **data) { gmtlib_free_textset_ptr (GMT, *data); gmt_M_free (GMT, *data); }
gmtlib_free_textset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_textset_ptr(GMT_CTRL *GMT, GMT_TEXTSET *data) { unsigned int tbl; unsigned int k; for (tbl = 0; tbl < data->n_tables; ++tbl) gmtio_free_texttable(GMT, data->table[tbl], data->alloc_mode); gmt_free_func(GMT, data->table, 0, "gmtlib_free_textset_ptr"); data->table = 0; for (k = 0; k <= 1...
void gmtlib_free_textset_ptr (struct GMT_CTRL *GMT, struct GMT_TEXTSET *data) { unsigned int tbl, k; for (tbl = 0; tbl < data->n_tables; tbl++) gmtio_free_texttable (GMT, data->table[tbl], data->alloc_mode); gmt_M_free (GMT, data->table); for (k = 0; k < 2; k++) gmt_M_str_free (data->file[k]); }
gmtlib_free_textset_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_free_tmp_arrays(GMT_CTRL *GMT) { size_t col; if (GMT->hidden.mem_cols) GMT_Report( GMT->parent, 6u, "GMT memory: Free %zu temporary column arrays, each of length : %zu\n", GMT->hidden.mem_cols, GMT->hidden.mem_rows); for (col = 0; col < GMT->hidden.mem_cols; ++col) { g...
void gmtlib_free_tmp_arrays (struct GMT_CTRL *GMT) { size_t col; if (GMT->hidden.mem_cols) GMT_Report (GMT->parent, GMT_MSG_DEBUG, "GMT memory: Free %" PRIuS " temporary column arrays, each of length : %" PRIuS "\n", GMT->hidden.mem_cols, GMT->hidden.mem_rows); for (col = 0; col < GMT->hidden.mem_cols; col++) { ...
gmtlib_free_tmp_arrays
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtlib_free_vector_ptr(GMT_CTRL *GMT, GMT_VECTOR *V, bool free_vector) { uint64_t col; if (!V) return 0; if (V->data && free_vector) { for (col = 0; col < V->n_columns; ++col) { if (V->alloc_mode == GMT_enum_alloc_GMT_ALLOC_INTERNALLY) gmtio_...
unsigned int gmtlib_free_vector_ptr (struct GMT_CTRL *GMT, struct GMT_VECTOR *V, bool free_vector) { if (!V) return 0; if (V->data && free_vector) { uint64_t col; for (col = 0; col < V->n_columns; col++) { if (V->alloc_mode == GMT_ALLOC_INTERNALLY) gmtio_free_univector (GMT, &(V->data[col]), V->type[col...
gmtlib_free_vector_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_g_ymd_is_bad(int y, int m, int d) { return m <= 0 || m > 12 || d <= 0 || d > gmtlib_gmonth_length(y, m); }
bool gmtlib_g_ymd_is_bad (int y, int m, int d) { int k; if (m < 1 || m > 12 || d < 1) return (true); k = gmtlib_gmonth_length (y, m); if (d > k) return (true); return (false); }
gmtlib_g_ymd_is_bad
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_gap_detected(GMT_CTRL *GMT) { uint64_t i; if (!GMT->common.g.active || !GMT->current.io.pt_no) return 0; for (i = 0; i < GMT->common.g.n_methods; ++i) { if (GMT->common.g.get_dist[i](GMT, GMT->common.g.col[i]) > GMT->common.g.gap[i] != GMT->common.g.match_all) return...
bool gmtlib_gap_detected (struct GMT_CTRL *GMT) { uint64_t i; if (!GMT->common.g.active || GMT->current.io.pt_no == 0) return (false); for (i = 0; i < GMT->common.g.n_methods; i++) { if ((GMT->common.g.get_dist[i] (GMT, GMT->common.g.col[i]) > GMT->common.g.gap[i]) != GMT->common.g.match_all) return (!GMT-...
gmtlib_gap_detected
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_gcal_from_dt(GMT_CTRL *GMT, double t, GMT_GCAL *cal) { int64_t rd; double x; int64_t i; unsigned long v6; v6 = __readfsqword(0x28u); gmt_dt2rdc(GMT, t, &rd, &x); gmt_gcal_from_rd(GMT, rd, cal); i = gmtlib_splitinteger(x, 60, &cal->sec); cal->hour = (int)i / 60; cal->min = i % 60; }
void gmtlib_gcal_from_dt (struct GMT_CTRL *GMT, double t, struct GMT_GCAL *cal) { int64_t rd, i; double x; gmt_dt2rdc (GMT, t, &rd, &x); gmt_gcal_from_rd (GMT, rd, cal); i = gmtlib_splitinteger (x, 60, &cal->sec); cal->hour = (unsigned int)(i / GMT_MIN2SEC_I); cal->min = (unsigned int)(i % GMT_MIN2SEC...
gmtlib_gcal_from_dt
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_genper_map_clip_path(GMT_CTRL *GMT, uint64_t np, double *work_x, double *work_y) { uint64_t v4; double v5; double v6; double g_xmax; double g_xmin; double g_ymax; double v10; double cosx; double sinx; double *work_ya; double *work_xa; uint64_t npa; GM...
int gmtlib_genper_map_clip_path (struct GMT_CTRL *GMT, uint64_t np, double *work_x, double *work_y) { uint64_t i; double da, angle; double x, y, xt, yt; if (GMT->current.proj.g_debug > 0) { gmt_message (GMT, "\n\ngenper_map_clip_path: np %" PRIu64 "\n", np); gmt_message (GMT, " x_scale %e y_scale %e, x0 %e y0 ...
gmtlib_genper_map_clip_path
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_geo_C_format(GMT_CTRL *GMT) { char fmt[72]; unsigned long v3; v3 = __readfsqword(0x28u); gmtio_get_dms_order(GMT, (char *)floorf + (_QWORD)GMT, &GMT->current.io.geo); if (GMT->current.io.geo.no_sign) return 37; if (GMT->current.io.geo.decimal) { if (!*((_BYTE *)gmtlib_map_latcross + (_QW...
int gmtlib_geo_C_format (struct GMT_CTRL *GMT) { struct GMT_GEO_IO *S = &GMT->current.io.geo; gmtio_get_dms_order (GMT, GMT->current.setting.format_geo_out, S); if (S->no_sign) return (GMT_IO_BAD_PLOT_DEGREE_FORMAT); if (S->decimal) { if (!GMT->current.setting.format_float_out[0]) return (GMT_NOERROR...
gmtlib_geo_C_format
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_geo_to_dms(double val, int n_items, double fact, int *d, int *m, int *s, int *ix) { double v7; double v8; int v9; double v10; double v11; int v12; double v13; int v14; double v15; bool minus; int imin; int isec; double min; double mina; double sec; min...
bool gmtlib_geo_to_dms (double val, int n_items, double fact, int *d, int *m, int *s, int *ix) { bool minus; int isec, imin; double sec, fsec, min, fmin, step; minus = (val < 0.0); step = (fact == 0.0) ? GMT_CONV8_LIMIT : 0.5 / fact; if (n_items == 3) { sec = GMT_DEG2SEC_F * fabs (val) + step; ise...
gmtlib_geo_to_dms
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char **gmtlib_get_dir_list(GMT_CTRL *GMT, char *path, char *ext) { char **result; size_t v4; size_t n; size_t n_alloc; char **list; size_t e_len; DIR *D; struct dirent *F; size_t d_namlen; n = 0; n_alloc = 8; e_len = 0; if (access(path, 0)) return 0; D = opendir(path); if (D) { if...
char **gmtlib_get_dir_list (struct GMT_CTRL *GMT, char *path, char *ext) { size_t n = 0, n_alloc = GMT_TINY_CHUNK; char **list = NULL; #ifdef HAVE_DIRENT_H_ DIR *D = NULL; struct dirent *F = NULL; size_t d_namlen = 0, e_len = 0; if (access (path, F_OK)) return NULL; if ((D = opendir (path)) == NULL) { GM...
gmtlib_get_dir_list
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_get_grdtype(GMT_CTRL *GMT, unsigned int direction, GMT_GRID_HEADER *h) { if (GMT->current.io.col_type[(unsigned long)direction][0] == 4) { if (fabs(h->wesn[1] - h->wesn[0] - 360.0) >= 0.0001) { if (fabs((double)(int)h->n_columns * h->inc[0] - 360.0) >= 0.0001) { if ...
int gmtlib_get_grdtype (struct GMT_CTRL *GMT, unsigned int direction, struct GMT_GRID_HEADER *h) { if (gmt_M_x_is_lon (GMT, direction)) { if (fabs (h->wesn[XHI] - h->wesn[XLO] - 360.0) < GMT_CONV4_LIMIT) { GMT_Report (GMT->parent, GMT_MSG_LONG_VERBOSE, "Geographic grid, longitudes span exactly 360\n"); ...
gmtlib_get_grdtype
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
p_to_io_func gmtlib_get_io_ptr(GMT_CTRL *GMT, int direction, GMT_swap_direction swap, char type) { int (*v4)(GMT_CTRL *, FILE *, uint64_t, double *); int (*v5)(GMT_CTRL *, FILE *, uint64_t, double *); int (*v6)(GMT_CTRL *, FILE *, uint64_t, double *); int (*v7)(GMT_CTRL *, FILE *,...
p_to_io_func gmtlib_get_io_ptr (struct GMT_CTRL *GMT, int direction, enum GMT_swap_direction swap, char type) { p_to_io_func p = NULL; switch (type) { case 'd': if (direction == GMT_IN) p = (swap & k_swap_in) ? &gmtio_d_read_swab : &gmtio_d_read; else p = (swap & k_swap_out) ? &gmtio_d_write_sw...
gmtlib_get_io_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_get_lon_minmax(GMT_CTRL *GMT, double *lon, uint64_t n_rows, double *min, double *max) { unsigned int way; uint64_t row; GMT_QUAD *Q; Q = gmt_quad_init(GMT, 1u); for (row = 0; row < n_rows; ++row) gmt_quad_add(GMT, Q, lon[row]); way = gmt_quad_finalize(GMT, Q); *...
void gmtlib_get_lon_minmax (struct GMT_CTRL *GMT, double *lon, uint64_t n_rows, double *min, double *max) { unsigned int way; uint64_t row; struct GMT_QUAD *Q = gmt_quad_init (GMT, 1); for (row = 0; row < n_rows; row++) gmt_quad_add (GMT, Q, lon[row]); way = gmt_quad_finalize (GMT, Q); *min = Q->min[way]...
gmtlib_get_lon_minmax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_get_num_processors() { if (n_cpu_0 > 0) return n_cpu_0; n_cpu_0 = sysconf(84); if (n_cpu_0 <= 0) n_cpu_0 = 1; return n_cpu_0; }
int gmtlib_get_num_processors() { static int n_cpu = 0; if (n_cpu > 0) return n_cpu; #if defined WIN32 { SYSTEM_INFO sysinfo; GetSystemInfo ( &sysinfo ); n_cpu = sysinfo.dwNumberOfProcessors; } #elif defined HAVE_SC_NPROCESSORS_ONLN n_cpu = (int)sysconf (_SC_NPROCESSORS_ONLN); #elif defined HAVE_SC_NP...
gmtlib_get_num_processors
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_get_option_id(int start, char *this_option) { int id; id = -1; while (start <= 70 && id == -1) { if (!strcmp(GMT_unique_option_0[start], this_option)) id = start; ++start; } return id; }
int gmtlib_get_option_id (int start, char *this_option) { int k, id = -1; for (k = start; k < GMT_N_UNIQUE && id == -1; k++) if (!strcmp (GMT_unique_option[k], this_option)) id = k; return (id); }
gmtlib_get_option_id
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_get_point_from_r_az(GMT_CTRL *GMT, double lon0, double lat0, double r, double azim, double *lon1, double *lat1) { double v7; double v8; double cosx; double sinx; double *lat1a; double *lon1a; double azima; double ra; double la...
void gmtlib_get_point_from_r_az (struct GMT_CTRL *GMT, double lon0, double lat0, double r, double azim, double *lon1, double *lat1) { double sinr, cosr, sinaz, cosaz, siny, cosy; gmt_M_unused(GMT); sincosd (azim, &sinaz, &cosaz); sincosd (r, &sinr, &cosr); sincosd (lat0, &siny, &cosy); *lon1 = lon0 + atan2d ...
gmtlib_get_point_from_r_az
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtlib_get_pos_of_filename(const char *url) { size_t pos; size_t posa; pos = strlen(url); if (!pos) __assert_fail("pos > 0", "/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/" "src/gmt_init.c", 0x32FEu, "gmtlib_get_pos_of_filename...
unsigned int gmtlib_get_pos_of_filename (const char *url) { size_t pos = strlen (url); assert (pos > 0); pos--; while (url[pos] && pos > 0 && url[pos] != '/') pos--; if (url[pos] == '/') pos++; if (url[pos] == '@') pos++; return (unsigned int)pos; }
gmtlib_get_pos_of_filename
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_get_region_from_data(GMTAPI_CTRL *API, int family, bool exact, GMT_OPTION **options, double *wesn) { char *arg; bool v8; unsigned int item; int fd; GMT_GRID *G; GMT_OPTION *head; GMT_DATASET *Out; GMT_OPTION *opt; GMT_OPTION *tmp; char *list; FILE *fp; ...
GMT_LOCAL int gmtlib_get_region_from_data (struct GMTAPI_CTRL *API, int family, bool exact, struct GMT_OPTION **options, double wesn[]) { unsigned int item; bool geo; struct GMT_GRID *G = NULL; struct GMT_OPTION *opt = NULL, *head = NULL, *tmp = NULL; struct GMT_DATASET *Out = NULL; char virt_file[GMT_STR16]...
gmtlib_get_region_from_data
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_get_time_label(GMT_CTRL *GMT, char *string, GMT_PLOT_CALCLOCK *P, GMT_PLOT_AXIS_ITEM *T, double t) { int v5; int v6; int v7; GMT_GCAL calendar; unsigned long v11; v11 = __readfsqword(0x28u); gmtlib_gcal_from_dt(GMT, t, &calendar); switch (T->unit) { case 'C': ...
void gmtlib_get_time_label (struct GMT_CTRL *GMT, char *string, struct GMT_PLOT_CALCLOCK *P, struct GMT_PLOT_AXIS_ITEM *T, double t) { struct GMT_GCAL calendar; gmtlib_gcal_from_dt (GMT, t, &calendar); switch (T->unit) { case 'Y': (P->date.compact) ? sprintf (string, "%d", calendar.year) : sprintf (stri...
gmtlib_get_time_label
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
gmt_enum_units gmtlib_get_unit_number(GMT_CTRL *GMT, char unit) { gmt_enum_units mode; if (!unit) return gmt_enum_units_GMT_IS_METER; if ((unsigned int)unit > 0x75 || unit < 77) return gmt_enum_units_GMT_IS_NOUNIT; switch (unit) { case 'M': mode = gmt_enum_units_GMT_IS_MILE; break; case 'c'...
enum gmt_enum_units gmtlib_get_unit_number (struct GMT_CTRL *GMT, char unit) { enum gmt_enum_units mode; gmt_M_unused(GMT); switch (unit) { case '\0': case 'e': mode = GMT_IS_METER; break; case 'k': mode = GMT_IS_KM; break; case 'M': mode = GMT_IS_MILE; break; case 'n': mode = GMT_IS_...
gmtlib_get_unit_number
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmtlib_getuserpath(GMT_CTRL *GMT, const char *stem, char *path) { if (*stem == 47) { if (!access(stem, 4)) return strcpy(path, stem); return 0; } else if (!GMT->session.TMPDIR || (sprintf(path, "%s/%s", GMT->session.TMPDIR, stem), access(path, 4))) { if (!access(st...
char *gmtlib_getuserpath (struct GMT_CTRL *GMT, const char *stem, char *path) { #ifdef WIN32 if (stem[0] == '/' || stem[1] == ':') #else if (stem[0] == '/') #endif { if (!access (stem, R_OK)) return (strcpy (path, stem)); return (NULL); } if (GMT->session.TMPDIR) { sprintf (path, "%s/%s", GM...
gmtlib_getuserpath
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmtlib_glob_list(GMT_CTRL *GMT, const char *pattern, char ***list) { int v4; const char *v5; char **v6; unsigned int pos; unsigned int k; int flags; int ret; char **p; glob_t results; char item[264]; unsigned long v15; v15 = __readfsqword(0x28u); pos = 0; k = 0; flags = 0; p = ...
uint64_t gmtlib_glob_list (struct GMT_CTRL *GMT, const char *pattern, char ***list) { #ifdef WIN32 uint64_t k = 0, n = 0; size_t n_alloc = GMT_SMALL_CHUNK; char **p = NULL, **file = NULL; if ((p = gmtlib_get_dir_list (GMT, ".", NULL)) == NULL) return 0; file = gmt_M_memory (GMT, NULL, n_alloc, char *); while (p...
gmtlib_glob_list
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_gmonth_length(int year, int month) { int k; if (month <= 0 || month > 12) return 0; if (month == 2) { if (gmtlib_is_gleap(year)) return 29; else return 28; } else { k = month % 2; if (month > 7) return 31 - k; else return k + 30; } }
int gmtlib_gmonth_length (int year, int month) { int k; if (month < 1 || month > 12) return 0; if (month != 2) { k = month % 2; return ((month < 8) ? 30 + k : 31 - k); } k = (gmtlib_is_gleap (year)) ? 29 : 28; return (k); }
gmtlib_gmonth_length
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_grd_flip_vertical(void *gridp, const unsigned int n_cols32, const unsigned int n_rows32, const unsigned int n_stride32, size_t cell_size) { double v5; double v6; size_t row; size_t stride; size_t n_rows; size_t rows_over_2; char *tmp;...
void gmtlib_grd_flip_vertical (void *gridp, const unsigned n_cols32, const unsigned n_rows32, const unsigned n_stride32, size_t cell_size) { size_t row, n_cols = n_cols32, n_rows = n_rows32; size_t rows_over_2 = (size_t) floor (n_rows / 2.0); size_t stride = n_cols; char *grid = (char*)gridp; char *tmp = calloc...
gmtlib_grd_flip_vertical
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_grd_get_units(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { unsigned int i; char *units; double scale; double offset; GMT_TIME_SYSTEM time_system; char string[3][256]; unsigned long v8; v8 = __readfsqword(0x28u); strncpy(string[0], header->x_units, 0x50u); strncpy(string[1], header->y_units...
void gmtlib_grd_get_units (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { unsigned int i; char string[3][GMT_LEN256], *units = NULL; double scale = 1.0, offset = 0.0; struct GMT_TIME_SYSTEM time_system; strncpy (string[0], header->x_units, GMT_GRID_UNIT_LEN80); strncpy (string[1], header->y_units...
gmtlib_grd_get_units
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_grd_real_interleave(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *data) { uint64_t row; uint64_t col; uint64_t col_1; uint64_t col_2; uint64_t col_2a; uint64_t left_node_1; uint64_t left_node_2; for (row = header->my; row; --row) { left_node_1 = (row - 1...
void gmtlib_grd_real_interleave (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *data) { uint64_t row, col, col_1, col_2, left_node_1, left_node_2; gmt_M_unused(GMT); for (row = header->my; row > 0; row--) { left_node_1 = gmt_M_ij (header, row-1, 0); left_node_2 = 2 * left_node_1; for...
gmtlib_grd_real_interleave
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_grd_set_units(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { unsigned int i; unsigned int ia; char *string[3]; char date[16]; char clock[16]; char unit[88]; unsigned long v8; v8 = __readfsqword(0x28u); memset(unit, 0, 80); memset(date, 0, sizeof(date)); memset(clock, 0, sizeof(clock)); s...
void gmtlib_grd_set_units (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { unsigned int i; char *string[3] = {NULL, NULL, NULL}, unit[GMT_GRID_UNIT_LEN80] = {""}; char date[GMT_LEN16] = {""}, clock[GMT_LEN16] = {""}; string[0] = header->x_units; string[1] = header->y_units; string[2] = header->z_un...
gmtlib_grd_set_units
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtlib_great_circle_dist_degree(GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) { double v6; double v7; double v8; double sin_half_squared; sin_half_squared = map_haversine(GMT, lon1, lat1, lon2, lat2); if (sin_half_squared >= 0.0 && fabs(sqr...
double gmtlib_great_circle_dist_degree (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) { double sin_half_squared = map_haversine (GMT, lon1, lat1, lon2, lat2); return (2.0 * d_asind (d_sqrt (sin_half_squared))); }
gmtlib_great_circle_dist_degree
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_great_circle_intersection(GMT_CTRL *GMT, double *A, double *B, double *C, double *X, double *CX_dist) { unsigned int i; double cos_MX1; double cos_AB; double P[4]; double E[4]; double M[4]; double Xneg[4]; *(_QWORD *)&Xneg[3] = __readfsqword(0x28u); gmt...
int gmtlib_great_circle_intersection (struct GMT_CTRL *GMT, double A[], double B[], double C[], double X[], double *CX_dist) { unsigned int i; double P[3], E[3], M[3], Xneg[3], cos_AB, cos_MX1, cos_MX2, cos_test; gmt_cross3v (GMT, A, B, P); gmt_normalize3v (GMT, P); gmt_cross3v (GMT, C, P, E); g...
gmtlib_great_circle_intersection
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtlib_half_map_width(GMT_CTRL *GMT, double y) { int projection; double ya; double yb; projection = GMT->current.proj.projection; if (projection > 407) return GMT->current.map.half_width; if (projection >= 404) goto LABEL_34; if (projection == 403) { LABEL_12: if (GMT->common.R.obliq...
double gmtlib_half_map_width (struct GMT_CTRL *GMT, double y) { double half_width; switch (GMT->current.proj.projection) { case GMT_STEREO: case GMT_LAMB_AZ_EQ: case GMT_GNOMONIC: case GMT_AZ_EQDIST: case GMT_VANGRINTEN: if (!GMT->common.R.oblique && GMT->current.map.is_world) { y -= GMT->curren...
gmtlib_half_map_width
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_init_complex(GMT_GRID_HEADER *header, unsigned int complex_mode, uint64_t *imag_offset) { uint64_t v3; if ((complex_mode & 8) != 0) v3 = header->size >> 1; else v3 = 0; *imag_offset = v3; return (complex_mode & 0x10) == 0; }
bool gmtlib_init_complex (struct GMT_GRID_HEADER *header, unsigned int complex_mode, uint64_t *imag_offset) { bool do_header = !(complex_mode & GMT_GRID_NO_HEADER); *imag_offset = (complex_mode & GMT_GRID_IS_COMPLEX_IMAG) ? header->size / 2ULL : 0ULL; return (do_header); }
gmtlib_init_complex
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_init_ellipsoid(GMT_CTRL *GMT) { double v1; double f; f = GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid] .flattening; GMT->current.proj.ECC2 = f + f - f * f; GMT->current.proj.ECC4 = GMT->current.proj.ECC2 * GMT->current.proj.ECC2; GMT->current.proj.ECC6 = GMT-...
void gmtlib_init_ellipsoid (struct GMT_CTRL *GMT) { double f; f = GMT->current.setting.ref_ellipsoid[GMT->current.setting.proj_ellipsoid].flattening; GMT->current.proj.ECC2 = 2.0 * f - f * f; GMT->current.proj.ECC4 = GMT->current.proj.ECC2 * GMT->current.proj.ECC2; GMT->current.proj.ECC6 = GMT->current.proj.EC...
gmtlib_init_ellipsoid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_init_geodesic(GMT_CTRL *GMT) { GMT_enum_geodesic proj_geodesic; proj_geodesic = GMT->current.setting.proj_geodesic; if (proj_geodesic == GMT_enum_geodesic_GMT_GEODESIC_RUDOE) { GMT->current.map.geodesic_meter = (double (*)( GMT_CTRL *, double, double, double, double))map_rudoe_dist_meter;...
void gmtlib_init_geodesic (struct GMT_CTRL *GMT) { switch (GMT->current.setting.proj_geodesic) { case GMT_GEODESIC_VINCENTY: GMT->current.map.geodesic_meter = map_vincenty_dist_meter; GMT->current.map.geodesic_az_backaz = map_az_backaz_vincenty; break; case GMT_GEODESIC_ANDOYER: GMT->current.map.geodes...
gmtlib_init_geodesic
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_io_banner(GMT_CTRL *GMT, unsigned int direction) { char v3; char *message; uint64_t col; unsigned long alloc; size_t m_len; size_t len; size_t lena; char s[2]; char skip[72]; unsigned long v12; v12 = __readfsqword(0x28u); memset(skip, 0, 64); *(_WORD *)s = 0; alloc = 256; m_len...
int gmtlib_io_banner (struct GMT_CTRL *GMT, unsigned int direction) { static const char *gmt_direction[2] = {"Input", "Output"}; char *message = NULL, skip[GMT_LEN64] = {""}; char *letter = "-cuhHiIlLfditTn", s[2] = {0, 0}; uint64_t col; uint64_t n_bytes; size_t alloc = GMT_LEN256, m_len = 0, len; #if 0 if (GM...
gmtlib_io_banner
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_io_binary_header(GMT_CTRL *GMT, FILE *fp, unsigned int dir) { size_t v3; char c; uint64_t k; size_t nr; unsigned long v7; v7 = __readfsqword(0x28u); c = 32; if (dir) { for (k = 0; k < GMT->current.setting.io_n_header_items; ++k) fwrite(&c, 1u, 1u, fp); } else { nr = 0; f...
void gmtlib_io_binary_header (struct GMT_CTRL *GMT, FILE *fp, unsigned int dir) { uint64_t k; char c = ' '; if (dir == GMT_IN) { size_t nr = 0; for (k = 0; k < GMT->current.setting.io_n_header_items; k++) nr += gmt_M_fread (&c, sizeof (char), 1U, fp); } else { for (k = 0; k < GMT->current.setting.io_n_heade...
gmtlib_io_binary_header
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_io_init(GMT_CTRL *GMT) { unsigned int i; unsigned int ia; unsigned int ib; unsigned int ic; unsigned int id; GMT->session.input_ascii = (void *(*)(GMT_CTRL *, FILE *, uint64_t *, int *))gmtio_ascii_input; GMT->current.io.input = GMT->session.input_ascii; GMT->current.io.output = ...
void gmtlib_io_init (struct GMT_CTRL *GMT) { unsigned int i; GMT->current.io.input = GMT->session.input_ascii = &gmtio_ascii_input; GMT->current.io.output = &gmtio_ascii_output; GMT->current.io.ogr_parser = &gmtio_ogr_header_parser; GMT->current.io.give_report = true; GMT->current.io.seg_no = GM...
gmtlib_io_init
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_is_an_object(GMT_CTRL *GMT, void *ptr) { return api_get_object_id_from_data_ptr(GMT->parent, ptr) != -1; }
bool gmtlib_is_an_object (struct GMT_CTRL *GMT, void *ptr) { return (api_get_object_id_from_data_ptr (GMT->parent, ptr) == GMT_NOTSET) ? false : true; }
gmtlib_is_an_object
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_is_color(GMT_CTRL *GMT, char *word) { int i; int n; int na; int n_hyphen; int n_slashes; n_hyphen = 0; n_slashes = 0; n = strlen(word); if (!n) return 0; if (*word == 35) return 1; if (gmt_colorname2index(GMT, word) >= 0) return 1; if (strchr(word, 116)) return 0; ...
bool gmtlib_is_color (struct GMT_CTRL *GMT, char *word) { int i, k, n, n_hyphen = 0, n_slashes = 0; n = (int)strlen (word); if (n == 0) return (false); if (word[0] == '#') return (true); if (gmt_colorname2index (GMT, word) >= 0) return (true); if (strchr(word,'t')) return (false); if (strchr(word...
gmtlib_is_color
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_is_gleap(int gyear) { int y400; if (calclock_cal_imod(gyear, 4)) return 0; y400 = calclock_cal_imod(gyear, 400); return !y400 || calclock_cal_imod(y400, 100) != 0; }
bool gmtlib_is_gleap (int gyear) { int y400; if (calclock_cal_imod (gyear, 4) != 0) return (false); y400 = calclock_cal_imod (gyear, 400); if (y400 == 0) return (true); if (calclock_cal_imod (y400, 100) == 0) return (false); return (true); }
gmtlib_is_gleap
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtlib_iso_ywd_is_bad(int y, int w, int d) { return y < 0 || w <= 0 || w > 53 || d <= 0 || d > 7; }
bool gmtlib_iso_ywd_is_bad (int y, int w, int d) { if (y < 0 || w < 1 || w > 53 || d < 1 || d > 7) return (true); return (false); }
gmtlib_iso_ywd_is_bad
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmtlib_latpath(GMT_CTRL *GMT, double lat, double lon1, double lon2, double **x, double **y) { double *v6; double *v8; double *v9; double *v10; double *v11; double v12; double v13; double v14; size_t v15; size_t v16; size_t v17; bool keep_trying; int n_try; _B...
uint64_t gmtlib_latpath (struct GMT_CTRL *GMT, double lat, double lon1, double lon2, double **x, double **y) { size_t n_alloc = 0; uint64_t k, n; int n_try, pos; bool keep_trying; double dlon, dlon0, *tlon = NULL, *tlat = NULL, x0, x1, y0, y1, d, min_gap; if (GMT->current.map.parallel_straight == 2) { gmt_M_m...
gmtlib_latpath
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmtlib_lonpath(GMT_CTRL *GMT, double lon, double lat1, double lat2, double **x, double **y) { double *v6; size_t v8; double *v9; double *v10; double *v11; double *v12; double v13; double v14; double v15; size_t v16; double *v17; bool keep_trying; int n_try; _...
uint64_t gmtlib_lonpath (struct GMT_CTRL *GMT, double lon, double lat1, double lat2, double **x, double **y) { size_t n_alloc = 0; uint64_t n, k; int n_try, pos; bool keep_trying; double dlat, dlat0, *tlon = NULL, *tlat = NULL, x0, x1, y0, y1, d, min_gap; if (GMT->current.map.meridian_straight == 2) { gmt_M_m...
gmtlib_lonpath
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtlib_map_latcross(GMT_CTRL *GMT, double lat, double west, double east, GMT_XINGS **xings) { double v5; GMT_XINGS *v6; unsigned int v7; bool go; int i; unsigned int nx; unsigned int nc; double this_x; double this_y; double last_x; double last_y; siz...
unsigned int gmtlib_map_latcross (struct GMT_CTRL *GMT, double lat, double west, double east, struct GMT_XINGS **xings) { bool go = false; unsigned int i, nx, nc = 0; size_t n_alloc = GMT_SMALL_CHUNK; double lon, lon_old, this_x, this_y, last_x, last_y, xlon[2], xlat[2], gap; struct GMT_XINGS *X = NULL; X = gmt...
gmtlib_map_latcross
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtlib_map_loncross(GMT_CTRL *GMT, double lon, double south, double north, GMT_XINGS **xings) { double v5; double v6; GMT_XINGS *v7; unsigned int v8; double northa; bool go; int j; unsigned int nx; unsigned int nc; double this_x; double this_y; doubl...
unsigned int gmtlib_map_loncross (struct GMT_CTRL *GMT, double lon, double south, double north, struct GMT_XINGS **xings) { bool go = false; unsigned int j, nx, nc = 0; size_t n_alloc = GMT_SMALL_CHUNK; double lat, lat_old, this_x, this_y, last_x, last_y, xlon[2], xlat[2], gap; struct GMT_XINGS *X = NULL; X = gm...
gmtlib_map_loncross
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmtlib_map_path(GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2, double **x, double **y) { if (doubleAlmostEqualUlpsAndAbs(lat1, lat2, 1.110223024625157e-15, 5)) return gmtlib_latpath(GMT, lat1, lon1, lon2, x, y); else return gmtlib_lonpath(GMT, lon1, lat1...
uint64_t gmtlib_map_path (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2, double **x, double **y) { if (doubleAlmostEqualZero (lat1, lat2)) return (gmtlib_latpath (GMT, lat1, lon1, lon2, x, y)); else return (gmtlib_lonpath (GMT, lon1, lat1, lat2, x, y)); }
gmtlib_map_path
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_moment_interval(GMT_CTRL *GMT, GMT_MOMENT_INTERVAL *p, double dt_in, bool init) { signed int v4; unsigned int time_week_start; int v6; unsigned long v7; int64_t v8; signed int k; signed int ka; signed int kb; int kc; int kd; int ke; int kws; unsigned int...
void gmtlib_moment_interval (struct GMT_CTRL *GMT, struct GMT_MOMENT_INTERVAL *p, double dt_in, bool init) { int k, kws, kyd; unsigned int kml; if (init) { gmt_dt2rdc (GMT, dt_in, &(p->rd[0]), &(p->sd[0]) ); gmt_gcal_from_rd (GMT, p->rd[0], &(p->cc[0]) ); p->dt[0] = dt_in...
gmtlib_moment_interval
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_nc_get_att_text(GMT_CTRL *GMT, int ncid, int varid, char *name, char *text, size_t textlen) { size_t v7; int status; int statusa; size_t attlen; char *att; unsigned long v16; v16 = __readfsqword(0x28u); att = 0; status = nc_inq_attlen((unsigned int)ncid, (u...
int gmtlib_nc_get_att_text (struct GMT_CTRL *GMT, int ncid, int varid, char *name, char *text, size_t textlen) { int status; size_t attlen; char *att = NULL; status = nc_inq_attlen (ncid, varid, name, &attlen); if (status != NC_NOERR) { *text = '\0'; return status; } att = gmt_M_memory (GMT, NULL, attl...
gmtlib_nc_get_att_text
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_ogr_get_geometry(char *item) { if (!strcmp(item, "point") || !strcmp(item, "POINT")) return 1; if (!strcmp(item, "mpoint") || !strcmp(item, "MPOINT")) return 65; if (!strcmp(item, "line") || !strcmp(item, "LINE")) return 2; if (!strcmp(item, "mline") || !strcmp(item, "MLINE")) return ...
int gmtlib_ogr_get_geometry (char *item) { if (!strcmp (item, "point") || !strcmp (item, "POINT")) return (GMT_IS_POINT); if (!strcmp (item, "mpoint") || !strcmp (item, "MPOINT")) return (GMT_IS_MULTIPOINT); if (!strcmp (item, "line") || !strcmp (item, "LINE")) return (GMT_IS_LINESTRING); if (!strcmp (item, "mli...
gmtlib_ogr_get_geometry
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_ogr_get_type(char *item) { if (!strcmp(item, "double") || !strcmp(item, "DOUBLE")) return 9; if (!strcmp(item, "float") || !strcmp(item, "FLOAT")) return 8; if (!strcmp(item, "integer") || !strcmp(item, "INTEGER")) return 4; if (!strcmp(item, "char") || !strcmp(item, "CHAR")) return 0...
int gmtlib_ogr_get_type (char *item) { if (!strcmp (item, "double") || !strcmp (item, "DOUBLE")) return (GMT_DOUBLE); if (!strcmp (item, "float") || !strcmp (item, "FLOAT")) return (GMT_FLOAT); if (!strcmp (item, "integer") || !strcmp (item, "INTEGER")) return (GMT_INT); if (!strcmp (item, "char") || !str...
gmtlib_ogr_get_type
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_parse_B_option(GMT_CTRL *GMT, char *in) { if (*(_DWORD *)((char *)&stru_20EF8.r_offset + (_QWORD)GMT)) { if (*(_DWORD *)((char *)&stru_20EF8.r_offset + (_QWORD)GMT) == -1) { GMT_Report(GMT->parent, 1u, "Syntax error -B option: Mixing of GMT 4 and 5 level syntax " ...
int gmtlib_parse_B_option (struct GMT_CTRL *GMT, char *in) { int error = 0; if (GMT->common.B.mode == 0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Internal error: Calling gmtlib_parse_B_option before gmt_check_b_options somehow\n"); error = 1; } else if (GMT->common.B.mode == -1) { GMT_Report (GMT->parent, ...
gmtlib_parse_B_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_plot_C_format(GMT_CTRL *GMT) { int v1; unsigned int i; unsigned int ia; unsigned int j; unsigned int ja; int len; GMT_GEO_IO *S; char fmt[264]; unsigned long v9; v9 = __readfsqword(0x28u); S = &GMT->current.plot.calclock.geo; for (i = 0; i <= 2; ++i) { for (j = 0; j <= 1; ++j) ...
void gmtlib_plot_C_format (struct GMT_CTRL *GMT) { unsigned int i, j, length; struct GMT_GEO_IO *S = &GMT->current.plot.calclock.geo; for (i = 0; i < 3; i++) for (j = 0; j < 2; j++) gmt_M_memset (GMT->current.plot.format[i][j], GMT_LEN256, char); gmtio_get_dms_order (GMT, GMT->current.setting.format_geo_map, S...
gmtlib_plot_C_format
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_process_binary_input(GMT_CTRL *GMT, uint64_t n_read) { bool bad_record; bool set_nan_flag; uint64_t col_no; uint64_t n_NaN; double double_tmp; bad_record = 0; set_nan_flag = 0; n_NaN = 0; for (col_no = 0; col_no < n_read; ++col_no) { if (col_no > 1 && gmt_input_is_nan_proxy(GMT...
int gmtlib_process_binary_input (struct GMT_CTRL *GMT, uint64_t n_read) { uint64_t col_no, n_NaN; bool bad_record = false, set_nan_flag = false; for (col_no = n_NaN = 0; col_no < n_read; col_no++) { if (!gmt_M_is_dnan (GMT->current.io.curr_rec[col_no])) { if (col_no > 1 && gmt_input_is_nan_proxy (...
gmtlib_process_binary_input
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmtlib_putcmyk(GMT_CTRL *GMT, double *cmyk) { double v2; double v3; double v4; double v5; if (*cmyk >= -0.5) { if (cmyk[3] >= 0.00001) v2 = cmyk[3]; else v2 = 0.0; if (cmyk[2] >= 0.00001) v3 = cmyk[2]; else v3 = 0.0; if (cmyk[1] >= 0.00001) v4 = cmyk[1]...
char *gmtlib_putcmyk (struct GMT_CTRL *GMT, double *cmyk) { static char text[GMT_LEN256] = {""}; gmt_M_unused(GMT); if (cmyk[0] < -0.5) sprintf (text, "-"); else snprintf (text, GMT_LEN256, "%.5g/%.5g/%.5g/%.5g", gmt_M_q(cmyk[0]), gmt_M_q(cmyk[1]), gmt_M_q(cmyk[2]), gmt_M_q(cmyk[3])); gmtinit_append_trans (t...
gmtlib_putcmyk
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0