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
double get_z_ave(double *v, double next_up, uint64_t n) { double v3; double v4; uint64_t k; double z_ave; k = 0; z_ave = 0.0; while (k < n) { if (next_up <= v[k]) v3 = next_up; else v3 = v[k]; z_ave = v3 + z_ave; ++k; } if ((n & 0x8000000000000000LL) != 0LL) v4 = (doub...
GMT_LOCAL double get_z_ave (double v[], double next_up, uint64_t n) { uint64_t k; double z_ave; for (k = 0, z_ave = 0.0; k < n; k++) z_ave += MIN (v[k], next_up); return (z_ave / n); }
get_z_ave
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_DCW_free(GMT_CTRL *GMT, GMT_DCW_SELECT *F) { unsigned int k; if (F->n_items) { for (k = 0; k < F->n_items; ++k) { free(F->item[k]->codes); F->item[k]->codes = 0; gmt_free_func(GMT, F->item[k], 0, "gmt_DCW_free"); F->item[k] = 0; } gmt_free_func(GMT, F->item, 0, "gmt_DCW...
void gmt_DCW_free (struct GMT_CTRL *GMT, struct GMT_DCW_SELECT *F) { unsigned int k; if (F->n_items == 0) return; for (k = 0; k < F->n_items; k++) { gmt_M_str_free (F->item[k]->codes); gmt_M_free (GMT, F->item[k]); } gmt_M_free (GMT, F->item); }
gmt_DCW_free
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmt_DCW_list(GMT_CTRL *GMT, unsigned int list_mode) { unsigned int v3; unsigned int i; unsigned int j; unsigned int k; unsigned int GMT_DCW_COUNTRIES; unsigned int GMT_DCW_STATES; unsigned int GMT_DCW_N_COUNTRIES_WITH_STATES; GMT_DCW_COUNTRY *GMT_DCW_country; GMT_DCW_STATE *GMT_DCW_state;...
unsigned int gmt_DCW_list (struct GMT_CTRL *GMT, unsigned list_mode) { unsigned int i, j, k, GMT_DCW_COUNTRIES = 0, GMT_DCW_STATES = 0, GMT_DCW_N_COUNTRIES_WITH_STATES = 0, n_bodies[3] = {0, 0, 0}; struct GMT_DCW_COUNTRY *GMT_DCW_country = NULL; struct GMT_DCW_STATE *GMT_DCW_state = NULL; struct GMT_DCW_COUNTRY_S...
gmt_DCW_list
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_DATASET *gmt_DCW_operation(GMT_CTRL *GMT, GMT_DCW_SELECT *F, double *wesn, unsigned int mode) { unsigned int verbose; size_t v6; size_t v7; double v8; double v9; GMT_DATATABLE **v10; bool v11; void **data; void **v13; double **v14; bool done; bool want_state; ...
struct GMT_DATASET * gmt_DCW_operation (struct GMT_CTRL *GMT, struct GMT_DCW_SELECT *F, double wesn[], unsigned int mode) { int item, ks, retval, ncid, xvarid, yvarid, id; int64_t first, last; size_t np, max_np = 0U, n_alloc; uint64_t k, seg, n_segments; unsigned int n_items = 0, pos = 0, kk, tbl = 0, j = 0...
gmt_DCW_operation
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_DCW_option(GMTAPI_CTRL *API, char option, unsigned int plot) { char *action[2]; char *action2[2]; unsigned long v6; v6 = __readfsqword(0x28u); action[0] = "extract"; action[1] = "plot"; action2[0] = "extracting"; action2[1] = "plotting"; if (plot == 1) GMT_Message(API, 0, ...
void gmt_DCW_option (struct GMTAPI_CTRL *API, char option, unsigned int plot) { char *action[2] = {"extract", "plot"}; char *action2[2] = {"extracting", "plotting"}; if (plot == 1) GMT_Message (API, GMT_TIME_NONE, "\t-%c Apply different fill or outline to specified list of countries.\n", option); else GMT_Mes...
gmt_DCW_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmt_DCW_parse(GMT_CTRL *GMT, char option, char *args, GMT_DCW_SELECT *F) { unsigned int pos; unsigned int n_errors; unsigned int n; char *c; char *a; GMT_DCW_ITEM *this_item; char p[4104]; unsigned long v14; v14 = __readfsqword(0x28u); n_errors = 0; pos = 0...
unsigned int gmt_DCW_parse (struct GMT_CTRL *GMT, char option, char *args, struct GMT_DCW_SELECT *F) { unsigned int n_errors = 0, pos = 0, n; char p[GMT_BUFSIZ] = {""}, *c = NULL, *a = NULL; struct GMT_DCW_ITEM *this_item = NULL; if ((a = strchr (args, '+'))) a[0] = '\0'; this_item = gmt_M_memory (GMT, NULL, 1...
gmt_DCW_parse
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_ECEF_forward(GMT_CTRL *GMT, double *in, double *out) { double v3; double a; double cosx; double sinx; double *outa; double *ina; GMT_CTRL *GMTa; double sin_lon; double cos_lon; double sin_lat; double cos_lat; double N; double tmp; unsigned long v16; GMTa = GMT; ina = in; outa...
void gmt_ECEF_forward (struct GMT_CTRL *GMT, double in[], double out[]) { double sin_lon, cos_lon, sin_lat, cos_lat, N, tmp; sincosd (in[GMT_X], &sin_lon, &cos_lon); sincosd (in[GMT_Y], &sin_lat, &cos_lat); N = GMT->current.proj.datum.from.a / d_sqrt (1.0 - GMT->current.proj.datum.from.e_squared * sin_lat * s...
gmt_ECEF_forward
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_ECEF_init(GMT_CTRL *GMT, GMT_DATUM *D) { memcpy(&GMT->current.proj.datum.from, D, sizeof(GMT->current.proj.datum.from)); }
void gmt_ECEF_init (struct GMT_CTRL *GMT, struct GMT_DATUM *D) { gmt_M_memcpy (&GMT->current.proj.datum.from, D, 1, struct GMT_DATUM); }
gmt_ECEF_init
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_ECEF_inverse(GMT_CTRL *GMT, double *in, double *out) { double v3; double v4; double v5; double v6; double v7; double v8; double v9; double a; double cosx; double sinx; double *outa; double *ina; GMT_CTRL *GMTa; unsigned int i; double sin_lat; double cos_lat; double sin_theta; ...
void gmt_ECEF_inverse (struct GMT_CTRL *GMT, double in[], double out[]) { unsigned int i; double in_p[3], sin_lat, cos_lat, N, p, theta, sin_theta, cos_theta; for (i = 0; i < 3; i++) in_p[i] = in[i] - GMT->current.proj.datum.from.xyz[i]; p = hypot (in_p[GMT_X], in_p[GMT_Y]); theta = atan (in_p[GMT_Z] * GM...
gmt_ECEF_inverse
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_Fcrit(GMT_CTRL *GMT, double alpha, double nu1, double nu2) { bool done; int NU1; int NU2; double p_high; double p_mid; double chisq1; double chisq2; double F_low; double F_high; double F_mid; double p; unsigned long v16; v16 = __readfsqword(0x28u); F_mid = 0.0; F_high = 5.0; ...
double gmt_Fcrit (struct GMT_CTRL *GMT, double alpha, double nu1, double nu2) { int NU1, NU2; bool done; double F_low, F_high, F_mid = 0.0, p_high, p_mid, p, chisq1, chisq2; F_high = 5.0; p = 1.0 - alpha; F_low = 0.0; gmtstat_F_to_ch1_ch2 (GMT, F_high, nu1, nu2, &chisq1, &chisq2); NU1 = irint (nu1); NU2 = ...
gmt_Fcrit
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_GSHHG_syntax(GMT_CTRL *GMT, char option) { gmt_message( GMT, "\t-%c Place limits on coastline features from the GSHHG data base.\n", (unsigned int)option); gmt_message(GMT, "\t Features smaller than <min_area> (in km^2) or of " "levels (0-4) outside the min-max levels...
void gmt_GSHHG_syntax (struct GMT_CTRL *GMT, char option) { gmt_message (GMT, "\t-%c Place limits on coastline features from the GSHHG data base.\n", option); gmt_message (GMT, "\t Features smaller than <min_area> (in km^2) or of levels (0-4) outside the min-max levels\n"); gmt_message (GMT, "\t will be skipped...
gmt_GSHHG_syntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_PvQv(GMT_CTRL *GMT, double x, double *v_ri, double *pq, unsigned int *iter) { double *v5; double *v6; double *v7; double v8; double v9; double v10; double v11; double v12; double v13; double v14; double v15; double v16; double v17; double v18; double v19; double v2...
void gmt_PvQv (struct GMT_CTRL *GMT, double x, double v_ri[], double pq[], unsigned int *iter) { bool p_set, q_set; double M, L, K, Xn, x2, k, k1, ep, em, sx, cx, fact; double a[2], v[2], vp1[2], G[2], g[2], u[2], t[2], f[2]; double R[2], r[2], z[2], s[2], c[2], w[2], tmp[2], X[2], A[2], B[2]; *iter = 0; pq...
gmt_PvQv
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_UTMzone_to_wesn(GMT_CTRL *GMT, unsigned int zone_x, char zone_y, int hemi, double *wesn) { bool error; error = 0; wesn[1] = (double)(int)zone_x * 6.0 - 180.0; *wesn = wesn[1] - 6.0; if (zone_y) { if (zone_y <= 64 || zone_y > 90) return 1; if (zone_y > 66) { ...
bool gmt_UTMzone_to_wesn (struct GMT_CTRL *GMT, unsigned int zone_x, char zone_y, int hemi, double wesn[]) { bool error = false; gmt_M_unused(GMT); wesn[XHI] = -180.0 + 6.0 * zone_x; wesn[XLO] = wesn[XHI] - 6.0; if (zone_y == 0) { if (hemi == -1) { wesn[YLO] = -80.0; wesn[YHI] = 0.0; } else if (hemi ...
gmt_UTMzone_to_wesn
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_access(GMT_CTRL *GMT, const char *filename, int mode) { char *c; char file[4096]; char path[4104]; unsigned long v8; v8 = __readfsqword(0x28u); memset(file, 0, sizeof(file)); if (filename && !strncmp(filename, "@GMTAPI@-", 9u)) return 0; file[0] = 0; if (!filename || !*filename) retur...
int gmt_access (struct GMT_CTRL *GMT, const char* filename, int mode) { char file[GMT_BUFSIZ] = {""}, *c = NULL; if (gmt_M_file_is_memory (filename)) return (0); file[0] = '\0'; if (!filename || !filename[0]) return (-1); sscanf (filename, "%[^=?]", file); if (file[0] == '\0') return (-1); if ((c = ...
gmt_access
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_add3v(GMT_CTRL *GMT, double *a, double *b, double *c) { int k; for (k = 0; k <= 2; ++k) c[k] = b[k] + a[k]; }
void gmt_add3v (struct GMT_CTRL *GMT, double *a, double *b, double *c) { int k; gmt_M_unused(GMT); for (k = 0; k < 3; k++) c[k] = a[k] + b[k]; }
gmt_add3v
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmt_add_R_if_modern_and_true(GMT_CTRL *GMT, const char *needs, bool do_it) { if (!strchr(needs, 114)) return 0; if (do_it) return gmt_set_missing_options(GMT, "R"); return 0; }
unsigned int gmt_add_R_if_modern_and_true (struct GMT_CTRL *GMT, const char *needs, bool do_it) { if (strchr (needs, 'r') == NULL) return GMT_NOERROR; if (do_it) return (gmt_set_missing_options (GMT, "R")); return GMT_NOERROR; }
gmt_add_R_if_modern_and_true
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_add_label_record(GMT_CTRL *GMT, GMT_TEXTSET *T, double x, double y, double angle, char *label) { char **v6; GMT_TEXTSEGMENT *v7; GMT_TEXTSEGMENT *v8; double geo[2]; char word[64]; char record[4104]; unsigned long v14; v14 = __readfsqword(0x28u); memset(word, 0, size...
void gmt_add_label_record (struct GMT_CTRL *GMT, struct GMT_TEXTSET *T, double x, double y, double angle, char *label) { char word[GMT_LEN64] = {""}, record[GMT_BUFSIZ] = {""}; double geo[2]; record[0] = 0; gmt_xy_to_geo (GMT, &geo[GMT_X], &geo[GMT_Y], x, y); gmt_ascii_format_col (GMT, word, geo[GMT_X], GMT_OUT...
gmt_add_label_record
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_add_to_record(GMT_CTRL *GMT, char *record, double val, uint64_t col, unsigned int way, unsigned int sep) { char word[72]; unsigned long v8; v8 = __readfsqword(0x28u); memset(word, 0, 64); gmt_ascii_format_col(GMT, word, val, way, col); if (sep > 9) { *record = 0; LOB...
void gmt_add_to_record (struct GMT_CTRL *GMT, char *record, double val, uint64_t col, unsigned int way, unsigned int sep) { char word[GMT_LEN64] = {""}; gmt_ascii_format_col (GMT, word, val, way, col); if (sep >= 10) { record[0] = '\0'; sep -= 10; } if (sep & 1) strcat (record, GMT->current.setting.io_...
gmt_add_to_record
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_adjust_dataset(GMT_CTRL *GMT, GMT_DATASET *D, uint64_t n_columns) { uint64_t tbl; for (tbl = 0; tbl < D->n_tables; ++tbl) gmtio_adjust_table(GMT, D->table[tbl], n_columns); D->n_columns = n_columns; }
void gmt_adjust_dataset (struct GMT_CTRL *GMT, struct GMT_DATASET *D, uint64_t n_columns) { uint64_t tbl; for (tbl = 0; tbl < D->n_tables; tbl++) gmtio_adjust_table (GMT, D->table[tbl], n_columns); D->n_columns = n_columns; }
gmt_adjust_dataset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_adjust_loose_wesn(GMT_CTRL *GMT, double *wesn, GMT_GRID_HEADER *header) { unsigned int v3; unsigned int v5; bool v6; double v7; double v8; double v9; double v10; bool error; bool global; double dx_0; double dx_0a; double small; double smalla; double val; d...
int gmt_adjust_loose_wesn (struct GMT_CTRL *GMT, double wesn[], struct GMT_GRID_HEADER *header) { bool global, error = false; double val, dx, small; char format[GMT_LEN64] = {""}; switch (gmt_minmaxinc_verify (GMT, wesn[XLO], wesn[XHI], header->inc[GMT_X], GMT_CONV4_LIMIT)) { case 3: return (GMT_GRD...
gmt_adjust_loose_wesn
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_albers(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double i_half_ECC; double v6; double one_m_ECC2; double v8; double cosx; double sinx; double *ya; double *xa; double lata; double lona; GMT_CTRL *GMTa; double s; double c; double q; double r; double theta; d...
void gmt_albers (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double s, c, q, theta, rho, r; gmt_M_wind_lon (GMT, lon) s = sind (lat); if (GMT_PROJ_IS_ZERO (GMT->current.proj.ECC)) q = 2.0 * s; else { r = GMT->current.proj.ECC * s; q = GMT->current.proj.one_m_ECC2 * (s / (1.0 -...
gmt_albers
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_albers_sph(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double v5; double v6; double a_C; double v8; double cosx; double sinx; double *ya; double *xa; double lata; double lona; GMT_CTRL *GMTa; double s; double c; double theta; double rho; un...
void gmt_albers_sph (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double s, c, theta, rho; gmt_M_wind_lon (GMT, lon) if (GMT->current.proj.GMT_convert_latitudes) lat = gmt_M_latg_to_lata (GMT, lat); theta = GMT->current.proj.a_n * lon * D2R; rho = GMT->current.proj.EQ_RAD * sqrt (GM...
gmt_albers_sph
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_alloc_datasegment(GMT_CTRL *GMT, GMT_DATASEGMENT *S, uint64_t n_rows, uint64_t n_columns, bool first) { void **v6; uint64_t col; uint64_t cola; if (first && n_columns) { S->data = (double **)gmt_memory_func(GMT, 0, n_columns, 8u, 0, ...
int gmt_alloc_datasegment (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *S, uint64_t n_rows, uint64_t n_columns, bool first) { uint64_t col; if (first && n_columns) { S->data = gmt_M_memory (GMT, NULL, n_columns, double *); #ifdef GMT_BACKWARDS_API S->coord = S->data; #endif S->min = gmt_M_memory (GMT, NULL,...
gmt_alloc_datasegment
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_DATASET *gmt_alloc_dataset(GMT_CTRL *GMT, GMT_DATASET *Din, uint64_t n_rows, uint64_t n_columns, unsigned int mode) { uint64_t v5; _QWORD *table; GMT_DATATABLE *v7; void **v8; const char *v9; GMT_DATATABLE *v10; GMT_DATATABLE *v11; GMT_DATATABLE *v12; GMT_DATATABLE *...
struct GMT_DATASET * gmt_alloc_dataset (struct GMT_CTRL *GMT, struct GMT_DATASET *Din, uint64_t n_rows, uint64_t n_columns, unsigned int mode) { unsigned int hdr; size_t len; uint64_t nr, tbl, seg, n_seg, seg_in_tbl; struct GMT_DATASET *D = gmt_M_memory (GMT, NULL, 1, struct GMT_DATASET); D->n_columns =...
gmt_alloc_dataset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_alloc_textsegment(GMT_CTRL *GMT, GMT_TEXTSEGMENT *S, uint64_t n_rows) { size_t old; if (S->data) { old = S->n_alloc; S->data = (char **)gmt_memory_func(GMT, S->data, n_rows, 8u, 0, "gmt_alloc_textsegment"); if (!S->data) return -1; if (n_rows > o...
int gmt_alloc_textsegment (struct GMT_CTRL *GMT, struct GMT_TEXTSEGMENT *S, uint64_t n_rows) { if (S->data) { size_t old = S->n_alloc; if ((S->data = gmt_M_memory (GMT, S->data, n_rows, char *)) == NULL) return -1; if (n_rows > old) gmt_M_memset (&S->data[old], n_rows - old, sizeof (char *)); } else ...
gmt_alloc_textsegment
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_ascii_format_col(GMT_CTRL *GMT, char *text, double x, unsigned int direction, uint64_t col) { unsigned int v5; v5 = GMT->current.io.col_type[(unsigned long)direction][col]; if (v5 == 64) { gmt_format_duration_output(GMT, x, text); } else { if (v5 <= 0x40) { if (...
void gmt_ascii_format_col (struct GMT_CTRL *GMT, char *text, double x, unsigned int direction, uint64_t col) { if (gmt_M_is_dnan (x)) { sprintf (text, "NaN"); return; } switch (GMT->current.io.col_type[direction][col]) { case GMT_IS_LON: gmtio_format_geo_output (GMT, false, x, text); break; case GMT...
gmt_ascii_format_col
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_ascii_format_one(GMT_CTRL *GMT, char *text, double x, unsigned int type) { if (type == 16) { gmt_format_abstime_output(GMT, x, text); } else { if (type <= 0x10) { if (type == 2) { gmtio_format_geo_output(GMT, 1, x, text); return; } if (typ...
void gmt_ascii_format_one (struct GMT_CTRL *GMT, char *text, double x, unsigned int type) { if (gmt_M_is_dnan (x)) { sprintf (text, "NaN"); return; } switch (type) { case GMT_IS_LON: gmtio_format_geo_output (GMT, false, x, text); break; case GMT_IS_LAT: gmtio_format_geo_output (GMT, true, x, text); ...
gmt_ascii_format_one
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_ascii_output_col(GMT_CTRL *GMT, FILE *fp, double x, uint64_t col) { char text[264]; unsigned long v6; v6 = __readfsqword(0x28u); memset(text, 0, 256); gmt_ascii_format_col(GMT, text, x, 1u, col); return fprintf(fp, "%s", text); }
int gmt_ascii_output_col (struct GMT_CTRL *GMT, FILE *fp, double x, uint64_t col) { char text[GMT_LEN256] = {""}; gmt_ascii_format_col (GMT, text, x, GMT_OUT, col); return (fprintf (fp, "%s", text)); }
gmt_ascii_output_col
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_assemble_br(GMT_CTRL *GMT, GMT_BR *c, bool shift, double edge, GMT_GSHHS_POL **pol) { int id; GMT_GSHHS_POL *p; p = (GMT_GSHHS_POL *)gmt_memory_func(GMT, 0, c->ns, 0x20u, 0, "gmt_assemble_br"); for (id = 0; id < c->ns; ++id) { p[id].lon = (...
int gmt_assemble_br (struct GMT_CTRL *GMT, struct GMT_BR *c, bool shift, double edge, struct GMT_GSHHS_POL **pol) { struct GMT_GSHHS_POL *p = NULL; int id; p = gmt_M_memory (GMT, NULL, c->ns, struct GMT_GSHHS_POL); for (id = 0; id < c->ns; id++) { p[id].lon = gmt_M_memory (GMT, NULL, c->seg[id].n, double); ...
gmt_assemble_br
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_assemble_shore(GMT_CTRL *GMT, GMT_SHORE *c, int dir, bool assemble, double west, double east, GMT_GSHHS_POL **pol) { int v8; unsigned char v9; int v10; _BOOL4 v11; size_t v12; int v13; GMT_GSHHS_POL *v14; GMT_GSHHS_POL *v15; int v16; GMT_GSHHS_POL *v17; GMT_GSHHS_POL...
int gmt_assemble_shore (struct GMT_CTRL *GMT, struct GMT_SHORE *c, int dir, bool assemble, double west, double east, struct GMT_GSHHS_POL **pol) { struct GMT_GSHHS_POL *p = NULL; int start_side, next_side, id, wet_or_dry, use_this_level, high_seg_level = GSHHS_MAX_LEVEL, k; int cid, nid, add, first_pos, entry_po...
gmt_assemble_shore
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmt_assign_ptrs(GMT_CTRL *GMT, unsigned int last, GMTMATH_STACK **S, GMT_DATATABLE **T, GMT_DATATABLE **T_prev) { GMT_DATATABLE *v6; if (last) { if (S[last]->constant && !S[last]->D) v6 = 0; else v6 = *S[last]->D->table; ...
GMT_LOCAL unsigned int gmt_assign_ptrs (struct GMT_CTRL *GMT, unsigned int last, struct GMTMATH_STACK *S[], struct GMT_DATATABLE **T, struct GMT_DATATABLE **T_prev) { unsigned int prev; if (last == 0) { GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Fatal error: Not enough items on the stack\n"); return UINT_MAX; ...
gmt_assign_ptrs
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_auto_frame_interval(GMT_CTRL *GMT, unsigned int axis, unsigned int item) { double v3; double v4; long v5; double v6; double v7; double v8; double v9; bool set_a; int i; double d; double da; double db; double dc; double f; double fa; double fb; doub...
void gmt_auto_frame_interval (struct GMT_CTRL *GMT, unsigned int axis, unsigned int item) { int i = 0; bool set_a = false; double maj[7] = {2.0, 5.0, 10.0, 15.0, 30.0, 60.0, 90.0}, sub[7] = {1.0, 1.0, 2.0, 5.0, 10.0, 15.0, 30.0}; double d, f, p; struct GMT_PLOT_AXIS *A = &GMT->current.map.frame.axis[axis]; stru...
gmt_auto_frame_interval
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_az_backaz(GMT_CTRL *GMT, double lonE, double latE, double lonS, double latS, bool baz) { return ((double (*)(GMT_CTRL *, bool, double, double, double, double))GMT->current.map.azimuth_func)(GMT, baz, lonE, ...
double gmt_az_backaz (struct GMT_CTRL *GMT, double lonE, double latE, double lonS, double latS, bool baz) { return (GMT->current.map.azimuth_func (GMT, lonE, latE, lonS, latS, baz)); }
gmt_az_backaz
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_azeqdist(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double v5; double v6; double v7; double cosx; double sinx; double *ya; double *xa; double lata; double lona; GMT_CTRL *GMTa; double clat; double slon; double clon; double slat; double t; double cc; double ...
void gmt_azeqdist (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double k, cc, c, clat, slon, clon, slat, t; gmt_M_wind_lon (GMT, lon) if (GMT_PROJ_IS_ZERO (lat-GMT->current.proj.pole) && GMT_PROJ_IS_ZERO (lon)) { *x = *y = 0.0; return; } sincosd (lat, &slat, &clat); sincosd (lon...
gmt_azeqdist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_azim_to_angle(GMT_CTRL *GMT, double lon, double lat, double c, double azim) { long v7; double cosx; double sinx; double azima; double ca; double lata; double lona; GMT_CTRL *GMTa; double lon1; double lat1; double x0; double x1; double sinaz; double cosaz; ...
double gmt_azim_to_angle (struct GMT_CTRL *GMT, double lon, double lat, double c, double azim) { double lon1, lat1, x0, x1, y0, y1, dx, width, sinaz, cosaz, angle; if (gmt_M_is_linear (GMT)) { angle = 90.0 - azim; if (GMT->current.proj.scale[GMT_X] != GMT->current.proj.scale[GMT_Y]) { sincosd (angle, &si...
gmt_azim_to_angle
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_bcr_get_z(GMT_CTRL *GMT, GMT_GRID *G, double xx, double yy) { double yya; double xxa; GMT_GRID *Ga; GMT_CTRL *GMTa; unsigned int i; unsigned int j; uint64_t ij; double retval; double wsum; uint64_t node; double w; double wx[4]; double wy[6]; GMTa = GMT; Ga = G; xxa = xx; yy...
double gmt_bcr_get_z (struct GMT_CTRL *GMT, struct GMT_GRID *G, double xx, double yy) { unsigned int i, j; uint64_t ij, node; double retval, 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 (GMT->session.d_NaN); ij = bcr_prep (G->header...
gmt_bcr_get_z
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_bcr_get_z_fast(GMT_CTRL *GMT, GMT_GRID *G, double xx, double yy) { unsigned int i; unsigned int j; uint64_t ij; double retval; double retvala; double wsum; uint64_t node; double w; double wx[4]; double wy[6]; *(_QWORD *)&wy[5] = __readfsqword(0x28u); memset(wx, 0, sizeof(wx)); mems...
double gmt_bcr_get_z_fast (struct GMT_CTRL *GMT, struct GMT_GRID *G, double xx, double yy) { unsigned int i, j; uint64_t ij, node; double retval, wsum, wx[4] = {0.0, 0.0, 0.0, 0.0}, wy[4] = {0.0, 0.0, 0.0, 0.0}, w; ij = bcr_prep (G->header, xx, yy, wx, wy); retval = wsum = 0.0; for (j = 0; j < G->hea...
gmt_bcr_get_z_fast
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_CTRL *gmt_begin(GMTAPI_CTRL *API, const char *session, unsigned int pad) { GMT_CTRL *GMT; GMT = gmtinit_new_GMT_ctrl(API, session, pad); API->GMT = GMT; GMT->PSL = (PSL_CTRL *)New_PSL_Ctrl("GMT5"); if (GMT->PSL) { GMT->PSL->init.unit = 1; PSL_beginsession(GMT->PSL, API->external, GMT->session.SHA...
struct GMT_CTRL *gmt_begin (struct GMTAPI_CTRL *API, const char *session, unsigned int pad) { struct GMT_CTRL *GMT = NULL; #ifdef __FreeBSD__ #ifdef _i386_ fpsetmask (fpgetmask () & ~(FP_X_DZ | FP_X_INV)); #endif #endif #ifdef WIN32 if ( _setmode(_fileno(stdin), _O_BINARY) == -1 ) { GMT_M...
gmt_begin
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_CTRL *gmt_begin_module(GMTAPI_CTRL *API, const char *lib_name, const char *mod_name, GMT_CTRL **Ccopy) { API->GMT->current.setting.run_mode = 0; return gmt_init_module(API, lib_name, mod_name, &byte_44CCDE, &byte_44CCDE, 0, Ccopy); }
struct GMT_CTRL * gmt_begin_module (struct GMTAPI_CTRL *API, const char *lib_name, const char *mod_name, struct GMT_CTRL **Ccopy) { API->GMT->current.setting.run_mode = GMT_CLASSIC; return (gmt_init_module (API, lib_name, mod_name, "", "", NULL, Ccopy)); }
gmt_begin_module
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_CTRL *gmt_begin_module_sub(GMTAPI_CTRL *API, const char *lib_name, const char *mod_name, GMT_CTRL **Ccopy) { char **v4; char *v5; char *v6; char *v7; char *v8; char *v9; char *v10; char *v11; char *v12; char *v13; unsigned int i; unsigned int ia; unsigned int...
GMT_LOCAL struct GMT_CTRL *gmt_begin_module_sub (struct GMTAPI_CTRL *API, const char *lib_name, const char *mod_name, struct GMT_CTRL **Ccopy) { unsigned int i; struct GMT_CTRL *GMT = API->GMT, *Csave = NULL; Csave = calloc (1U, sizeof (struct GMT_CTRL)); gmtlib_free_tmp_arrays (GMT); gmt_M_memcp...
gmt_begin_module_sub
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_bei(GMT_CTRL *GMT, double x) { double v3; double v4; long xa; double t; double ta; double tb; double alpha; double beta; if (x == 0.0) return 0.0; xa = *(_QWORD *)&x & 0x7FFFFFFFFFFFFFFFLL; if (COERCE_DOUBLE(*(_QWORD *)&x & 0x7FFFFFFFFFFFFFFFLL) > 8.0) { ta = 0.125 * (1.0 / (*(...
double gmt_bei (struct GMT_CTRL *GMT, double x) { double t, rxsq, alpha, beta; gmt_M_unused(GMT); if (x == 0.0) return (0.0); x = fabs(x); if (x <= 8.0) { t = x * 0.125; rxsq = t*t; t = rxsq * rxsq; return (rxsq * (16.0 + t*(-113.77777774 + t*(72.81777742 + t*(-10.56765779 + t*(0.52185615 + t*(-0....
gmt_bei
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_ber(GMT_CTRL *GMT, double x) { double v3; double v4; long xa; double t; double ta; double tb; double alpha; double beta; if (x == 0.0) return 1.0; xa = *(_QWORD *)&x & 0x7FFFFFFFFFFFFFFFLL; if (COERCE_DOUBLE(*(_QWORD *)&x & 0x7FFFFFFFFFFFFFFFLL) > 8.0) { ta = 0.125 * (1.0 / (*(...
double gmt_ber (struct GMT_CTRL *GMT, double x) { double t, rxsq, alpha, beta; gmt_M_unused(GMT); if (x == 0.0) return (1.0); x = fabs (x); if (x <= 8.0) { t = x * 0.125; t *= t; t *= t; return (1.0 + t*(-64.0 + t*(113.77777774 + t*(-32.36345652 + t*(2.64191397 + t*(-0.08349609 + t*(0.00122552 - 0...
gmt_ber
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_binom_cdf(GMT_CTRL *GMT, uint64_t x, uint64_t n, double p) { uint64_t v4; double v5; double v6; double c; uint64_t j; unsigned long v12; v12 = __readfsqword(0x28u); c = 0.0; if (n <= 0xC) { for (j = 0; j <= x; ++j) c = gmt_binom_pdf(GMT, j, n, p) + c; } else { v4 = n - x + ...
double gmt_binom_cdf (struct GMT_CTRL *GMT, uint64_t x, uint64_t n, double p) { double c = 0.0; if (n > 12) gmtstat_inc_beta (GMT, (double)x, (double)(n-x+1), p, &c); else { uint64_t j; for (j = 0; j <= x; j++) c += gmt_binom_pdf (GMT, j, n, p); } return (c); }
gmt_binom_cdf
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_binom_pdf(GMT_CTRL *GMT, uint64_t x, uint64_t n, double p) { double v5; double v6; int na; na = n; v5 = gmt_combination(GMT, n, x); v6 = pow(p, (double)(int)x) * v5; return pow(1.0 - p, (double)(na - (int)x)) * v6; }
double gmt_binom_pdf (struct GMT_CTRL *GMT, uint64_t x, uint64_t n, double p) { double c; c = gmt_combination (GMT, (int)n, (int)x) * pow (p, (int)x) * pow (1.0-p, (int)(n-x)); return (c); }
gmt_binom_pdf
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_bit_read_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { double v7; int v8; size_t v9; size_t v10; double z_min; double z_max; size_t v13; bool piping; int first_col; int last_col...
int gmt_bit_read_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { int j, err, bit; bool piping = false, check = false; int first_col, last_col, first_row, last_row; unsigned int i, width_in, height_in, mx, word; un...
gmt_bit_read_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_bit_write_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { int v7; double z_min; double z_max; double v10; size_t v11; bool do_header; unsigned int width_out; unsigned int height_out...
int gmt_bit_write_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { unsigned int i2, iu, ju, width_out, height_out, mx, word, *actual_col = NULL; int first_col, last_col, first_row, last_row; int i, j, bit, err; bool...
gmt_bit_write_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_br_cleanup(GMT_CTRL *GMT, GMT_BR *c) { gmt_free_func(GMT, c->bins, 0, "gmt_br_cleanup"); c->bins = 0; gmt_free_func(GMT, c->bin_nseg, 0, "gmt_br_cleanup"); c->bin_nseg = 0; gmt_free_func(GMT, c->bin_firstseg, 0, "gmt_br_cleanup"); c->bin_firstseg = 0; nc_close((unsigned int)c->cdfid); }
void gmt_br_cleanup (struct GMT_CTRL *GMT, struct GMT_BR *c) { gmt_M_free (GMT, c->bins); gmt_M_free (GMT, c->bin_nseg); gmt_M_free (GMT, c->bin_firstseg); nc_close (c->cdfid); }
gmt_br_cleanup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_byteswap_file(GMT_CTRL *GMT, FILE *outfp, FILE *infp, const SwapWidth swapwidth, const uint64_t offset, const uint64_t length) { size_t v7; size_t v8; uint64_t bytes_read; size_t nbytes; size_t nbytesa; size_t nbytesb; size_t extrabytes; char *buffe...
bool gmt_byteswap_file (struct GMT_CTRL *GMT, FILE *outfp, FILE *infp, const SwapWidth swapwidth, const uint64_t offset, const uint64_t length) { uint64_t bytes_read = 0; size_t nbytes, chunk, extrabytes = 0; static const size_t chunksize = 0x1000000; char *buffer, message[GMT_LEN256] = {""}; if ( length%s...
gmt_byteswap_file
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_cart_outside(GMT_CTRL *GMT, double x, double y) { if (GMT->current.map.on_border_is_outside && fabs(x - *(double *)((char *)&loc_12BD38 + (_QWORD)GMT)) < 0.00000001) { GMT->current.map.this_x_status = -1; } else if (GMT->current.map.on_border_is_outside && fabs(x - GMT->current.proj....
bool gmt_cart_outside (struct GMT_CTRL *GMT, double x, double y) { if (GMT->current.map.on_border_is_outside && fabs (x - GMT->current.proj.rect[XLO]) < GMT_CONV8_LIMIT) GMT->current.map.this_x_status = -1; else if (GMT->current.map.on_border_is_outside && fabs (x - GMT->current.proj.rect[XHI]) < GMT_CONV8_LIMI...
gmt_cart_outside
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_cart_to_geo(GMT_CTRL *GMT, double *lat, double *lon, double *a, bool degrees) { double v5; double v6; double v7; double v8; if (degrees) { if (fabs(a[2]) < 1.0) v5 = asin(a[2]) * 57.29577951308232; else v5 = copysign(90.0, a[2]); *lat = v5; if (*a == ...
void gmt_cart_to_geo (struct GMT_CTRL *GMT, double *lat, double *lon, double *a, bool degrees) { gmt_M_unused(GMT); if (degrees) { *lat = d_asind (a[GMT_Z]); *lon = d_atan2d (a[GMT_Y], a[GMT_X]); } else { *lat = d_asin (a[GMT_Z]); *lon = d_atan2 (a[GMT_Y], a[GMT_X]); } }
gmt_cart_to_geo
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_cart_to_polar(GMT_CTRL *GMT, double *r, double *theta, double *a, bool degrees) { double v5; *r = hypot(*a, a[1]); if (*a == 0.0 && a[1] == 0.0) v5 = 0.0; else v5 = atan2(a[1], *a); *theta = v5; if (degrees) *theta = 57.29577951308232 * *theta; }
void gmt_cart_to_polar (struct GMT_CTRL *GMT, double *r, double *theta, double *a, bool degrees) { gmt_M_unused(GMT); *r = hypot (a[GMT_X], a[GMT_Y]); *theta = d_atan2 (a[GMT_Y], a[GMT_X]); if (degrees) *theta *= R2D; }
gmt_cart_to_polar
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_cartesian_dist(GMT_CTRL *GMT, double x0, double y0, double x1, double y1) { return hypot(x1 - x0, y1 - y0); }
double gmt_cartesian_dist (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1) { gmt_M_unused(GMT); return (hypot ( (x1 - x0), (y1 - y0))); }
gmt_cartesian_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_cartesian_dist_periodic(GMT_CTRL *GMT, double x0, double y0, double x1, double y1) { double dx_0; double dy; dx_0 = x1 - x0; dy = y1 - y0; if (GMT->common.n.periodic[0]) { dx_0 = fabs(dx_0); if (dx_0 > *(double *)((char *)&stru_23118.r_offset + (_QWORD)GM...
double gmt_cartesian_dist_periodic (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1) { double dx = x1 - x0, dy = y1 - y0; if (GMT->common.n.periodic[GMT_X] && (dx = fabs (dx)) > GMT->common.n.half_range[GMT_X]) dx = GMT->common.n.range[GMT_X] - dx; if (GMT->common.n.periodic[GMT_Y] && (dy = fabs (...
gmt_cartesian_dist_periodic
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_cartesian_dist_proj(GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) { double x0; double y0; double x1; double y1[2]; *(_QWORD *)&y1[1] = __readfsqword(0x28u); j_gmt_geo_to_xy(GMT, lon1, lat1, &x0, &y0); j_gmt_geo_to_xy(GMT, lon2, lat2, &x1, y1)...
double gmt_cartesian_dist_proj (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) { double x0, y0, x1, y1; gmt_geo_to_xy (GMT, lon1, lat1, &x0, &y0); gmt_geo_to_xy (GMT, lon2, lat2, &x1, &y1); return (hypot ( (x1 - x0), (y1 - y0))); }
gmt_cartesian_dist_proj
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_cassini(GMT_CTRL *P, double lon, double lat, double *x, double *y) { double v5; double cosx; double sinx; double *ya; double *xa; double lata; double lona; GMT_CTRL *Pa; double s; double c; double s2; double c2; double tany; double N; double T; double A; double A2; double A3...
void gmt_cassini (struct GMT_CTRL *P, double lon, double lat, double *x, double *y) { double tany, N, T, A, C, M, s, c, s2, c2, A2, A3; gmt_M_wind_lon (P, lon) lon *= D2R; if (GMT_PROJ_IS_ZERO (lat)) { *x = P->current.proj.EQ_RAD * lon; *y = -P->current.proj.c_M0; return; } lat *= D2R; sincos (lat,...
gmt_cassini
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_cassini_sph(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double v5; double v6; double v7; double v8; double cosx; double sinx; double *ya; double *xa; double lata; double lona; GMT_CTRL *GMTa; double slon; double clon; double clat; double sla...
void gmt_cassini_sph (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double slon, clon, clat, tlat, slat; gmt_M_wind_lon (GMT, lon) if (GMT_PROJ_IS_ZERO (lat)) { *x = GMT->current.proj.EQ_RAD * lon * D2R; *y = -GMT->current.proj.EQ_RAD * GMT->current.proj.c_p; return; } sincosd...
gmt_cassini_sph
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_cat_to_record(GMT_CTRL *GMT, char *record, char *word, unsigned int way, unsigned int sep) { char sepa; sepa = sep; if (sep > 9) { *record = 0; sepa = sep - 10; } if ((sepa & 1) != 0) strcat(record, GMT->current.setting.io_col_separator); strcat(record, word); ...
void gmt_cat_to_record (struct GMT_CTRL *GMT, char *record, char *word, unsigned int way, unsigned int sep) { gmt_M_unused(way); if (sep >= 10) { record[0] = '\0'; sep -= 10; } if (sep & 1) strcat (record, GMT->current.setting.io_col_separator); strcat (record, word); if (sep & 2) strcat (record, GMT-...
gmt_cat_to_record
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_cdf_grd_info(GMT_CTRL *GMT, int ncid, GMT_GRID_HEADER *header, char job) { __m128i v5; nc_type z_type; int side_dim; int xysize_dim; int x_range_id; int y_range_id; int z_range_id; int inc_id; int nm_id; int z_id; int reg; int err; size_t limit; int dims[1]; in...
int gmt_cdf_grd_info (struct GMT_CTRL *GMT, int ncid, struct GMT_GRID_HEADER *header, char job) { int err; int nm[2]; double dummy[2]; char text[GMT_GRID_COMMAND_LEN320+GMT_GRID_REMARK_LEN160]; size_t limit = 2147483647U; nc_type z_type; int side_dim, xysize_dim, x_range_id, y_range_id, z_range_id, inc_id, ...
gmt_cdf_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_cdf_read_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { int v6; double z_min; double z_max; int ncid; int first_col; int last_col; int first_row; int last_row; unsigned int width_i...
int gmt_cdf_read_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { int ncid; size_t start[1], edge[1]; bool check; int j, err; int first_col, last_col, first_row, last_row; unsigned int i, width_in, height_in; uns...
gmt_cdf_read_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_cdf_read_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { int ncid; int err; unsigned long v5; v5 = __readfsqword(0x28u); if (!strcmp(header->name, "=")) return 23; err = nc_open(header->name, 0, &ncid); if (err) return err; err = gmt_cdf_grd_info(GMT, ncid, header, 114); if (err) ...
int gmt_cdf_read_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { int ncid; int err; if (!strcmp (header->name,"=")) return (GMT_GRDIO_NC_NO_PIPE); gmt_M_err_trap (nc_open (header->name, NC_NOWRITE, &ncid)); gmt_M_err_trap (gmt_cdf_grd_info (GMT, ncid, header, 'r')); gmt_M_err_trap (nc_close (nci...
gmt_cdf_read_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_cdf_update_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { int ncid; int old_fill_mode; int err; unsigned long v6; v6 = __readfsqword(0x28u); if (!strcmp(header->name, "=")) return 23; err = nc_open(header->name, 1, &ncid); if (err) return err; err = nc_set_fill((unsigned int)ncid,...
int gmt_cdf_update_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { int ncid, old_fill_mode; int err; if (!strcmp (header->name,"=")) return (GMT_GRDIO_NC_NO_PIPE); gmt_M_err_trap (nc_open (header->name, NC_WRITE, &ncid)); gmt_M_err_trap (nc_set_fill (ncid, NC_NOFILL, &old_fill_mode)); gmt_M_err...
gmt_cdf_update_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_cdf_write_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { int v7; double z_min; double z_max; long *v10; long *v11; long *v12; double v13; double v14; int ncid; int old_fill_mod...
int gmt_cdf_write_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { size_t start[1], edge[1]; int ncid, old_fill_mode; long *tmp_i = NULL; int err; unsigned int i, *actual_col = NULL; unsigned int j, width_out, height_o...
gmt_cdf_write_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_cdf_write_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { int ncid; int old_fill_mode; int err; unsigned long v6; v6 = __readfsqword(0x28u); if (!strcmp(header->name, "=")) return 23; err = nc_create(header->name, 0, &ncid); if (err) return err; err = nc_set_fill((unsigned int)ncid...
int gmt_cdf_write_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { int ncid, old_fill_mode; int err; if (!strcmp (header->name,"=")) return (GMT_GRDIO_NC_NO_PIPE); gmt_M_err_trap (nc_create (header->name, NC_CLOBBER, &ncid)); gmt_M_err_trap (nc_set_fill (ncid, NC_NOFILL, &old_fill_mode)); gmt_M_...
gmt_cdf_write_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_change_grdreg(GMT_CTRL *GMT, GMT_GRID_HEADER *header, unsigned int registration) { double v4; uint32_t old_registration; old_registration = header->registration; if (old_registration == registration) return header->registration; if (header->registration == 1) v4 = 0.5; ...
int gmt_change_grdreg (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, unsigned int registration) { unsigned int old_registration; double F; gmt_M_unused(GMT); old_registration = header->registration; if (old_registration == registration) return (old_registration); F = (header->registration == GMT_GRI...
gmt_change_grdreg
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_chebyshev(GMT_CTRL *GMT, double x, int n, double *t) { double a; double b; double x2; unsigned long v9; v9 = __readfsqword(0x28u); if (n < 0) gmt_err_func(GMT, 38, 0, (char *)&byte_43EE97, "gmt_chebyshev"); if (fabs(x) > 1.0) gmt_err_func(GMT, 39, 0, (char *)&byte_43EE97, "gmt_chebyshev")...
int gmt_chebyshev (struct GMT_CTRL *GMT, double x, int n, double *t) { double x2, a, b; if (n < 0) gmt_M_err_pass (GMT, GMT_CHEBYSHEV_NEG_ORDER, ""); if (fabs (x) > 1.0) gmt_M_err_pass (GMT, GMT_CHEBYSHEV_BAD_DOMAIN, ""); switch (n) { case 0: *t = 1.0; break; case 1: *t = x; break; case 2: ...
gmt_chebyshev
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_check_binary_io(GMT_CTRL *GMT, uint64_t n_req) { int n_errors; n_errors = 0; if (!GMT->common.b.active[0]) return 0; if (!*(unsigned long *)((char *)&stru_21B28.r_offset + (_QWORD)GMT)) *(unsigned long *)((char *)&stru_21B28.r_offset + (_QWORD)GMT) = n_req; if (*(unsigned long *)((char *)&str...
int gmt_check_binary_io (struct GMT_CTRL *GMT, uint64_t n_req) { int n_errors = 0; if (!GMT->common.b.active[GMT_IN]) return (GMT_NOERROR); if (GMT->common.b.ncol[GMT_IN] == 0) GMT->common.b.ncol[GMT_IN] = n_req; if (GMT->common.b.ncol[GMT_IN] == 0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax...
gmt_check_binary_io
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_check_filearg(GMT_CTRL *GMT, char option, char *file, unsigned int direction, unsigned int family) { bool not_url; unsigned int kind; unsigned int pos; char message[24]; unsigned long v13; v13 = __readfsqword(0x28u); pos = 0; kind = 0; memset(message, 0, 16); if (opt...
bool gmt_check_filearg (struct GMT_CTRL *GMT, char option, char *file, unsigned int direction, unsigned int family) { unsigned int pos = 0, kind = 0; bool not_url = false; char message[GMT_LEN16] = {""}; if (option == GMT_OPT_INFILE) sprintf (message, "for input file"); else if (option == GMT_OPT_OUTFILE) s...
gmt_check_filearg
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_check_region(GMT_CTRL *GMT, double *wesn) { return *wesn >= wesn[1] || wesn[2] >= wesn[3]; }
bool gmt_check_region (struct GMT_CTRL *GMT, double wesn[]) { gmt_M_unused(GMT); return ((wesn[XLO] >= wesn[XHI] || wesn[YLO] >= wesn[YHI])); }
gmt_check_region
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmt_check_scalingopt(GMT_CTRL *GMT, char option, char unit, char *unit_name) { gmt_enum_units smode; smode = gmtlib_get_unit_number(GMT, unit); if (smode == gmt_enum_units_GMT_IS_NOUNIT) { GMT_Report(GMT->parent, 1u, "GMT ERROR Option -%c: Only ap...
unsigned int gmt_check_scalingopt (struct GMT_CTRL *GMT, char option, char unit, char *unit_name) { int smode; unsigned int mode; if ((smode = gmtlib_get_unit_number (GMT, unit)) == GMT_IS_NOUNIT) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "GMT ERROR Option -%c: Only append one of %s|%s\n", option, ...
gmt_check_scalingopt
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_check_z_io(GMT_CTRL *GMT, GMT_Z_IO *r, GMT_GRID *G) { uint32_t col; uint32_t row; uint64_t k; uint64_t k_top; uint64_t k_bot; if (r->x_missing) { row = 0; k = G->header->mx * (unsigned long)G->header->pad[3] + G->header->pad[0]; while (row < G->header->n_rows) { G->data[G->header...
void gmt_check_z_io (struct GMT_CTRL *GMT, struct GMT_Z_IO *r, struct GMT_GRID *G) { unsigned int col, row; uint64_t k, k_top, k_bot; gmt_M_unused(GMT); if (r->x_missing) for (row = 0, k = gmt_M_ijp (G->header, row, 0); row < G->header->n_rows; row++, k += G->header->mx) G->data[k+G->header->n_columns-1] = G->...
gmt_check_z_io
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_chi2(GMT_CTRL *GMT, double chi2, double nu, double *prob) { *prob = gmtstat_gammq(GMT, nu * 0.5, chi2 * 0.5); }
void gmt_chi2 (struct GMT_CTRL *GMT, double chi2, double nu, double *prob) { *prob = gmtstat_gammq (GMT, 0.5 * nu, 0.5 * chi2); }
gmt_chi2
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_chi2_pdf(GMT_CTRL *GMT, double c, uint64_t nu) { double v3; double v4; double v5; double v7; double v8; double g; unsigned long v11; v11 = __readfsqword(0x28u); g = 0.0; if ((nu & 0x8000000000000000LL) != 0LL) v3 = (double)(int)(nu & 1 | (nu >> 1)) + (double)(int)(nu & 1 | (nu >> 1))...
double gmt_chi2_pdf (struct GMT_CTRL *GMT, double c, uint64_t nu) { double g = 0.0, y; gmtstat_ln_gamma_r (GMT, 0.5*nu, &g); y = pow (c, 0.5*nu - 1.0) * exp (-0.5 * c - g) / pow (2.0, 0.5 * nu); return (y); }
gmt_chi2_pdf
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_chi2crit(GMT_CTRL *GMT, double alpha, double nu) { bool done; double p_high; double p_mid; double chi2_low; double chi2_high; double chi2_mid; double p; unsigned long v11; v11 = __readfsqword(0x28u); chi2_mid = 0.0; p = 1.0 - alpha; chi2_low = 0.0; chi2_high = 5.0; gmt_chi2(GMT, ...
double gmt_chi2crit (struct GMT_CTRL *GMT, double alpha, double nu) { bool done; double chi2_low, chi2_high, chi2_mid = 0.0, p_high, p_mid, p; p = 1.0 - alpha; chi2_low = 0.0; chi2_high = 5.0; gmt_chi2 (GMT, chi2_high, nu, &p_high); while (p_high > p) { chi2_high *= 2.0; gmt_chi2 (GMT, chi2_high, nu, &p...
gmt_chi2crit
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_chol_dcmp(GMT_CTRL *GMT, double *a, double *d, double *cond, int nr, int n) { int i; int j; int ja; int k; int ij; int kj; int kja; int kk; int nrp1; int ik; double eigmax; double eigmin; nrp1 = nr + 1; eigmin = sqrt(fabs(*a)); eigmax = eigmin; k = 0; kk = 0;...
int gmt_chol_dcmp (struct GMT_CTRL *GMT, double *a, double *d, double *cond, int nr, int n) { int i, j, k, ik, ij, kj, kk, nrp1; double eigmax, eigmin; gmt_M_unused(GMT); nrp1 = nr + 1; eigmax = eigmin = sqrt (fabs (a[0])); for (k = 0, kk = 0; k < n; k++, kk+=nrp1 ) { d[k] = a[kk...
gmt_chol_dcmp
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_chol_recover(GMT_CTRL *GMT, double *a, double *d, int nr, int n, int nerr, bool donly) { int i; int ia; int j; int ii; int ij; int ji; int kbad; int nrp1; kbad = abs32(nerr) - 1; nrp1 = nr + 1; i = 0; ii = 0; while (i <= kbad) { a[ii] = d[i++]; ii += nrp...
void gmt_chol_recover (struct GMT_CTRL *GMT, double *a, double *d, int nr, int n, int nerr, bool donly) { int kbad, i, j, ii, ij, ji, nrp1; gmt_M_unused(GMT); kbad = abs (nerr) - 1; nrp1 = nr + 1; for (i = 0, ii = 0; i <= kbad; i++, ii += nrp1) a[ii] = d[i]; if (donly) return...
gmt_chol_recover
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_chol_solv(GMT_CTRL *GMT, double *a, double *x, double *y, int nr, int n) { int i; int ia; int j; int ja; int ij; int ji; int ii; int iia; int nrp1; nrp1 = nr + 1; i = 0; ii = 0; while (i < n) { x[i] = y[i]; j = 0; ij = i; while (j < i) { x[i] ...
void gmt_chol_solv (struct GMT_CTRL *GMT, double *a, double *x, double *y, int nr, int n) { int i, j, ij, ji, ii, nrp1; gmt_M_unused(GMT); nrp1 = nr + 1; for (i = 0, ii = 0; i < n; i++, ii += nrp1) { x[i] = y[i]; for (j = 0, ij = i; j < i; j++, ij += nr) x[i] -= (a[ij] * x[j]); x[i] /= a...
gmt_chol_solv
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_chop(char *string) { char *p; if (!string) __assert_fail("string != NULL", "/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/" "src/common_string.c", 0x4Eu, "gmt_chop"); p = strpbrk(string, "\r\n"); if (p) *p = 0; }
void gmt_chop (char *string) { char *p; assert (string != NULL); if ((p = strpbrk (string, "\r\n"))) *p = '\0'; }
gmt_chop
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmt_chop_ext(char *string) { char *p; if (!string) __assert_fail("string != NULL", "/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/" "src/common_string.c", 0x43u, "gmt_chop_ext"); p = strrchr(string, 46); if (!p) return 0; *p = 0;...
char *gmt_chop_ext (char *string) { char *p; assert (string != NULL); if ((p = strrchr(string, '.'))) { *p = '\0'; return (p + 1); } return NULL; }
gmt_chop_ext
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmt_clip_to_map(GMT_CTRL *GMT, double *lon, double *lat, uint64_t np, double **x, double **y) { _BOOL4 v6; char ok; uint64_t total_nx; size_t __k; uint64_t i; uint64_t out; uint64_t n; int64_t out_x; int64_t out_y; double *xx; double *yy; int64_t np2; size_t *...
uint64_t gmt_clip_to_map (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t np, double **x, double **y) { uint64_t i, out, n; uint64_t total_nx = 0; int64_t out_x, out_y, np2; bool polygon; double *xx = NULL, *yy = NULL; for (i = out = out_x = out_y = 0; i < np; i++) { (void) gmt_map_outside (GM...
gmt_clip_to_map
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_combination(GMT_CTRL *GMT, int n, int r) { double result; double v4; double v5; double v6; double v7; if (n >= 0 && r >= 0 && r <= n) { v4 = gmtstat_factln(GMT, n); v7 = v4 - gmtstat_factln(GMT, r); v5 = gmtstat_factln(GMT, n - r); v6 = exp(v7 - v5) + 0.5; result = v6; if...
double gmt_combination (struct GMT_CTRL *GMT, int n, int r) { if (n < 0 || r < 0 || r > n) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Error: n < 0 or r < 0 or r > n in gmt_combination(n,r)\n"); return (GMT->session.d_NaN); } return (floor (0.5 + exp (gmtstat_factln (GMT, n) - gmtstat_factln (GMT, r) - gmtstat...
gmt_combination
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmt_compact_line(GMT_CTRL *GMT, double *x, double *y, uint64_t n, int pen_flag, int *pen) { double v7; double v8; uint64_t i; uint64_t ia; uint64_t j; double old_slope; char *flag; double dx_0; double dx_0a; double new_slope; if (n <= 2) return n; flag = (...
uint64_t gmt_compact_line (struct GMT_CTRL *GMT, double *x, double *y, uint64_t n, int pen_flag, int *pen) { uint64_t i, j; double old_slope, new_slope, dx; char *flag = NULL; if (n < 3) return (n); flag = gmt_M_memory (GMT, NULL, n, char); dx = x[1] - x[0]; old_slope = (doubleAlmostEqualZero (x[1], x[0])...
gmt_compact_line
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_cont_syntax(GMT_CTRL *GMT, unsigned int indent, unsigned int kind) { unsigned int i; double gap; char *type[3]; char *feature[3]; char pad[24]; unsigned long v9; v9 = __readfsqword(0x28u); type[0] = "contour"; type[1] = "quoted line"; type[2] = "decorated line"; feature[0] = "label"; f...
void gmt_cont_syntax (struct GMT_CTRL *GMT, unsigned int indent, unsigned int kind) { unsigned int i; double gap; char pad[16]; char *type[3] = {"contour", "quoted line", "decorated line"}; char *feature[3] = {"label", "label", "symbol"}; gap = 4.0 * GMT->session.u2u[GMT_INCH][GMT->current.setting.proj_length_un...
gmt_cont_syntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_contlabel_plot(GMT_CTRL *GMT, GMT_CONTOUR *G) { bool no_labels; unsigned int i; int mode; PSL_CTRL *PSL; PSL = GMT->PSL; if (G->n_segments) { if (G->debug) plot_contlabel_debug(GMT, PSL, G); i = 0; no_labels = 1; while (i < G->n_segments && no_labels) { if (G->segment[i...
void gmt_contlabel_plot (struct GMT_CTRL *GMT, struct GMT_CONTOUR *G) { unsigned int i, mode; bool no_labels; struct PSL_CTRL *PSL= GMT->PSL; if (!G->n_segments) return; if (G->debug) plot_contlabel_debug (GMT, PSL, G); for (i = 0, no_labels = true; i < G->n_segments && no_labels; i++) if (G->segment[i]...
gmt_contlabel_plot
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_contlabel_save_begin(GMT_CTRL *GMT, GMT_CONTOUR *G) { _BOOL4 v2; double v4; int kind; uint64_t k; uint64_t seg; double angle; GMT_CONTOUR_LINE *L; char *xname[2]; char *yname[2]; uint64_t dim[4]; char record[4104]; unsigned long v14; v14 = __readfsqword(0x28u); dim[0] = 1; dim[1] ...
int gmt_contlabel_save_begin (struct GMT_CTRL *GMT, struct GMT_CONTOUR *G) { int kind; uint64_t k, seg, dim[3] = {1, 1, GMT_SMALL_CHUNK}; char record[GMT_BUFSIZ] = {""}; char *xname[2] = {"x", "lon"}, *yname[2] = {"y", "lat"}; double angle = 0.0; struct GMT_CONTOUR_LINE *L = NULL; kind = gmt_M_is_geographic ...
gmt_contlabel_save_begin
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_contlabel_save_end(GMT_CTRL *GMT, GMT_CONTOUR *G) { gmt_set_textset_minmax(GMT, G->Out); if (GMT_Write_Data(GMT->parent, 5u, 0, 0x10u, 0, 0, G->label_file, G->Out)) { GMT_Report(GMT->parent, 1u, "Error: Unable to create/write to file %s\n", G->label_file); return 15; } else { GM...
int gmt_contlabel_save_end (struct GMT_CTRL *GMT, struct GMT_CONTOUR *G) { gmt_set_textset_minmax (GMT, G->Out); if (GMT_Write_Data (GMT->parent, GMT_IS_TEXTSET, GMT_IS_FILE, GMT_IS_NONE, GMT_WRITE_SET, NULL, G->label_file, G->Out) != GMT_NOERROR) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Error: Unable to creat...
gmt_contlabel_save_end
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_conv_datum(GMT_CTRL *GMT, double *in, double *out) { double v3; double v4; double a; double cosx; double sinx; double *outa; double *ina; GMT_CTRL *GMTa; double sin_lon; double cos_lon; double sin_lat; double cos_lat; double h; double sin_lat2; double sc_lat; double M; double ...
void gmt_conv_datum (struct GMT_CTRL *GMT, double in[], double out[]) { double sin_lon, cos_lon, sin_lat, cos_lat, sin_lat2, M, N, h, tmp_1, tmp_2, tmp_3; double delta_lat, delta_lon, delta_h, sc_lat; h = (GMT->current.proj.datum.h_given) ? in[GMT_Z] : 0.0; sincosd (in[GMT_X], &sin_lon, &cos_lon); sincosd (...
gmt_conv_datum
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_conv_intext2dbl(GMT_CTRL *GMT, char *record, unsigned int ncols) { const char *v3; unsigned int pos; unsigned int k; double double_tmp; char p[4104]; unsigned long v11; v11 = __readfsqword(0x28u); k = 0; pos = 0; while (k < ncols) { v3 = _gmt_token_separators(); if (!gmt_strtok(reco...
int gmt_conv_intext2dbl (struct GMT_CTRL *GMT, char *record, unsigned int ncols) { 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]))) continue; if (strchr (p,...
gmt_conv_intext2dbl
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_convert_units(GMT_CTRL *GMT, char *string, unsigned int default_unit, unsigned int target_unit) { const unsigned short **v4; bool have_unit; int c; int len; unsigned int given_unit; double value; c = 0; have_unit = 0; len = strlen(string); if (len) { c = stri...
double gmt_convert_units (struct GMT_CTRL *GMT, char *string, unsigned int default_unit, unsigned int target_unit) { int c = 0, len, given_unit; bool have_unit = false; double value; if ((len = (int)strlen(string))) { c = string[len-1]; if ((have_unit = isalpha ((int)c))) string[len-1] = '\0'; } ...
gmt_convert_units
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_copy(GMTAPI_CTRL *API, GMT_enum_family family, unsigned int direction, char *ifile, char *ofile) { int result; unsigned int v6; unsigned int io_mode; double *wesn; double *v9; double *v10; double *v11; unsigned int mode; unsigned int *D; GMT_TEXTSET *T; GMT_PALETTE *C; GMT_G...
int gmt_copy (struct GMTAPI_CTRL *API, enum GMT_enum_family family, unsigned int direction, char *ifile, char *ofile) { double *wesn = NULL; struct GMT_DATASET *D = NULL; struct GMT_TEXTSET *T = NULL; struct GMT_PALETTE *C = NULL; struct GMT_GRID *G = NULL; struct GMT_POSTSCRIPT *P = NULL; struct GMT_IMAGE *I =...
gmt_copy
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
const char *gmt_core_module_info(void *API, char *candidate) { int module_id; for (module_id = 0; g_core_module[module_id].name && strcmp(candidate, g_core_module[module_id].name); ++module_id) ; return g_core_module[module_id].keys; }
const char *gmt_core_module_info (void *API, char *candidate) { int module_id = 0; gmt_M_unused(API); while (g_core_module[module_id].name != NULL && strcmp (candidate, g_core_module[module_id].name)) ++module_id; return (g_core_module[module_id].keys); }
gmt_core_module_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_core_module_list_all(void *V_API) { unsigned int module_id; GMTAPI_CTRL *API; module_id = 0; API = gmt_get_api_ptr((GMTAPI_CTRL *)V_API); while (g_core_module[module_id].name) { if (API->external || strcmp(g_core_module[module_id].name, "gmtread") && strcmp(g_core_module[modu...
void gmt_core_module_list_all (void *V_API) { unsigned int module_id = 0; struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API); while (g_core_module[module_id].name != NULL) { if (API->external || (strcmp (g_core_module[module_id].name, "gmtread") && strcmp (g_core_module[module_id].name, "gmtwrite"))) printf ("%s...
gmt_core_module_list_all
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_core_module_show_all(void *V_API) { unsigned int module_id; GMTAPI_CTRL *API; char message[264]; unsigned long v4; v4 = __readfsqword(0x28u); module_id = 0; API = gmt_get_api_ptr((GMTAPI_CTRL *)V_API); GMT_Message( V_API, 0, "\n=== GMT core: The main modules of the Generic Mapping...
void gmt_core_module_show_all (void *V_API) { unsigned int module_id = 0; char message[GMT_LEN256]; struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API); GMT_Message (V_API, GMT_TIME_NONE, "\n=== GMT core: The main modules of the Generic Mapping Tools ===\n"); while (g_core_module[module_id].name != NULL) { if (m...
gmt_core_module_show_all
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_corrcoeff(GMT_CTRL *GMT, double *x, double *y, uint64_t n, unsigned int mode) { double v6; double v7; uint64_t i; uint64_t ia; uint64_t n_use; double xmean; double ymean; double vx; double vy; double vxy; double dx_0; double dy; xmean = 0.0; ymean = 0.0; if...
double gmt_corrcoeff (struct GMT_CTRL *GMT, double *x, double *y, uint64_t n, unsigned int mode) { uint64_t i, n_use; double xmean = 0.0, ymean = 0.0, dx, dy, vx, vy, vxy, r; if (n == 0) return (GMT->session.d_NaN); if (mode == 0) { for (i = n_use = 0; i < n; i++) { if (gmt_M_is_dnan (x[i]) || gmt_M_is_...
gmt_corrcoeff
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_corrcoeff_f(GMT_CTRL *GMT, float *x, float *y, uint64_t n, unsigned int mode) { double v6; double v7; uint64_t i; uint64_t ia; uint64_t n_use; double xmean; double ymean; double vx; double vy; double vxy; double dx_0; double dy; xmean = 0.0; ymean = 0.0; ...
double gmt_corrcoeff_f (struct GMT_CTRL *GMT, float *x, float *y, uint64_t n, unsigned int mode) { uint64_t i, n_use; double xmean = 0.0, ymean = 0.0, dx, dy, vx, vy, vxy, r; if (n == 0) return (GMT->session.d_NaN); if (mode == 0) { for (i = n_use = 0; i < n; i++) { if (gmt_M_is_fnan (x[i]) || gmt_M_is_...
gmt_corrcoeff_f
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_GRID *gmt_create_grid(GMT_CTRL *GMT) { GMTAPI_CTRL *parent; unsigned int unique_var_ID; GMT_GRID *G; G = (GMT_GRID *)gmt_memory_func(GMT, 0, 1u, 0x38u, 0, "gmt_create_grid"); G->header = (GMT_GRID_HEADER *)gmt_memory_func(GMT, 0, 1u, 0x640u, 0, "gmt_create...
struct GMT_GRID *gmt_create_grid (struct GMT_CTRL *GMT) { struct GMT_GRID *G = NULL; G = gmt_M_memory (GMT, NULL, 1, struct GMT_GRID); G->header = gmt_M_memory (GMT, NULL, 1, struct GMT_GRID_HEADER); gmt_grd_init (GMT, G->header, NULL, false); GMT_Set_Index (GMT->parent, G->header, GMT_GRID_LAYOUT); G->alloc_...
gmt_create_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_DATATABLE *gmt_create_table(GMT_CTRL *GMT, uint64_t n_segments, uint64_t n_rows, uint64_t n_columns, bool alloc_only) { void **v5; uint64_t seg; GMT_DATATABLE *T; T = (GMT_DATATABLE *)gmt_memory_func(GMT, 0, 1u, 0x78u, 0, ...
struct GMT_DATATABLE * gmt_create_table (struct GMT_CTRL *GMT, uint64_t n_segments, uint64_t n_rows, uint64_t n_columns, bool alloc_only) { uint64_t seg; struct GMT_DATATABLE *T = NULL; T = gmt_M_memory (GMT, NULL, 1, struct GMT_DATATABLE); if (!alloc_only) T->n_segments = n_segments; if (!alloc_only) T->n_re...
gmt_create_table
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_VECTOR *gmt_create_vector(GMT_CTRL *GMT, uint64_t n_columns, unsigned int direction) { GMTAPI_CTRL *parent; unsigned int unique_var_ID; GMT_VECTOR *V; V = (GMT_VECTOR *)gmt_memory_func(GMT, 0, 1u, 0x228u, 0, "gmt_create_vector"); if (n_columns) { V->data = (GMT_UNIVECTOR...
struct GMT_VECTOR * gmt_create_vector (struct GMT_CTRL *GMT, uint64_t n_columns, unsigned int direction) { struct GMT_VECTOR *V = NULL; gmt_M_unused(direction); V = gmt_M_memory (GMT, NULL, 1U, struct GMT_VECTOR); if (n_columns) V->data = gmt_M_memory_aligned (GMT, NULL, n_columns, union GMT_UNIVECTOR); if (n_c...
gmt_create_vector
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_cross3v(GMT_CTRL *GMT, double *a, double *b, double *c) { *c = b[2] * a[1] - b[1] * a[2]; c[1] = *b * a[2] - b[2] * *a; c[2] = b[1] * *a - *b * a[1]; }
void gmt_cross3v (struct GMT_CTRL *GMT, double *a, double *b, double *c) { gmt_M_unused(GMT); c[GMT_X] = a[GMT_Y] * b[GMT_Z] - a[GMT_Z] * b[GMT_Y]; c[GMT_Y] = a[GMT_Z] * b[GMT_X] - a[GMT_X] * b[GMT_Z]; c[GMT_Z] = a[GMT_X] * b[GMT_Y] - a[GMT_Y] * b[GMT_X]; }
gmt_cross3v
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_cyleq(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double j_y; double lata; double lona; lata = lat; for (lona = lon - GMT->current.proj.central_meridian; lona < -180.00000001; lona = lona + 360.0) ; while (lona > 180.00000001) lona = lona - 360.0; if (GMT->curre...
void gmt_cyleq (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { gmt_M_wind_lon (GMT, lon) if (GMT->current.proj.GMT_convert_latitudes) lat = gmt_M_latg_to_lata (GMT, lat); *x = lon * GMT->current.proj.j_x; *y = GMT->current.proj.j_y * sind (lat); if (GMT->current.proj.GMT_convert_latitud...
gmt_cyleq
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_cyleqdist(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double lona; for (lona = lon - GMT->current.proj.central_meridian; lona < -180.00000001; lona = lona + 360.0) ; while (lona > 180.00000001) lona = lona - 360.0; *x = GMT->current.proj.j_x * lona;...
void gmt_cyleqdist (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { gmt_M_wind_lon (GMT, lon) *x = lon * GMT->current.proj.j_x; *y = lat * GMT->current.proj.j_y; }
gmt_cyleqdist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0