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
bool map_this_point_wraps_x(GMT_CTRL *GMT, double x0, double x1, double w_last, double w_this) { __int128 w_thisa; __int128 w_min; *((double *)&w_thisa + 1) = w_last; *(double *)&w_thisa = w_this; if (w_this <= w_last) { w_min = w_thisa; } else { *((double *)&w_min + 1) ...
GMT_LOCAL bool map_this_point_wraps_x (struct GMT_CTRL *GMT, double x0, double x1, double w_last, double w_this) { double w_min, w_max, dx; gmt_M_unused(GMT); if (w_this > w_last) { w_max = w_this; w_min = w_last; } else { w_max = w_last; w_min = w_this; } return ((dx = fabs (x1 - x0)) > w_max &...
map_this_point_wraps_x
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t map_truncate_tm(GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t start, int b_or_t) { uint64_t v6; uint64_t v7; double v8; double height; uint64_t i; uint64_t j; uint64_t k; double trunc_y; uint64_t i1; double xc[4]; double yc[6]; *(_QWORD *)&yc[5] = _...
GMT_LOCAL uint64_t map_truncate_tm (struct GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t start, int b_or_t) { uint64_t i, i1, j, k; double xc[4], yc[4], trunc_y; if (b_or_t == -1) { i = (y[start] < GMT->current.map.half_height) ? start : start - 1; trunc_y = 0.0; } else { i = (y...
map_truncate_tm
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t map_truncate_x(GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t start, int l_or_r) { uint64_t v6; uint64_t v7; double *v8; double v9; double v10; uint64_t i; uint64_t j; uint64_t k; double w_this; uint64_t i1; double w_last; double xc[4]; double yc[7];...
GMT_LOCAL uint64_t map_truncate_x (struct GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t start, int l_or_r) { uint64_t i, i1, j, k; double xc[4], yc[4], w_last, w_this; if (l_or_r == -1) i = (x[start] < GMT->current.map.half_width) ? start : start - 1; else i = (x[start] > GMT->curr...
map_truncate_x
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double map_vincenty_dist_meter(GMT_CTRL *GMT, double lonS, double latS, double lonE, double latE) { double v6; double cosx; double sinx; double latEa; double lonEa; double latSa; double lonSa; GMT_CTRL *GMTa; int n_iter; double cx_0; double sx; double s; double d...
GMT_LOCAL double map_vincenty_dist_meter (struct GMT_CTRL *GMT, double lonS, double latS, double lonE, double latE) { double s, c, d, e, r, f, d_lon, dx, x, y, sa, cx, cy, cz, sx, sy, c2a, cu1, cu2, su1, tu1, tu2, ts, baz, faz; int n_iter = 0; f = GMT->current.setting.ref_ellipsoid[GMT->current.setting...
map_vincenty_dist_meter
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t map_wesn_clip(GMT_CTRL *GMT, double *lon, double *lat, uint64_t n_orig, double **x, double **y, uint64_t *total_nx) { double v8; size_t v9; size_t v10; size_t v11; unsigned int meridian_straight; size_t v13; size_t v14; size_t v15; double v16; size_t v17; size_t v18...
GMT_LOCAL uint64_t map_wesn_clip (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t n_orig, double **x, double **y, uint64_t *total_nx) { char *x_type = NULL; size_t n_alloc = 0, n_x_alloc = 0, n_t_alloc = 0; uint64_t new_n, i, n_get, n, m, n_cross = 0, *x_index = NULL; unsigned int j, np, side, in = 1, out ...
map_wesn_clip
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t map_wesn_clip_old(GMT_CTRL *GMT, double *lon, double *lat, uint64_t n, double **x, double **y, uint64_t *total_nx) { uint64_t v8; uint64_t i; uint64_t j; uint64_t k; uint64_t nx; unsigned int sides[4]; double xlon[4]; double xlat[4]; double xc[4]; double yc[6]; ...
GMT_LOCAL uint64_t map_wesn_clip_old (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t n, double **x, double **y, uint64_t *total_nx) { uint64_t i, j = 0, nx, k; unsigned int sides[4]; double xlon[4], xlat[4], xc[4], yc[4]; *total_nx = 0; if (n == 0) return (0); gmt_prep_tmp_arrays (GMT, 1, 2); (vo...
map_wesn_clip_old
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int map_wesn_crossing(GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1, double *clon, double *clat, double *xx, double *yy, unsigned int *sides) { double v10; double v11; double v12; double v13...
GMT_LOCAL unsigned int map_wesn_crossing (struct GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1, double *clon, double *clat, double *xx, double *yy, unsigned int *sides) { unsigned int n = 0, i; double d, x0, y0; if (GMT->current.map.lon_wrap) { while (lon0 < GMT->common.R.wesn[XLO])...
map_wesn_crossing
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool map_wesn_outside(GMT_CTRL *GMT, double lon, double lat) { if (GMT->current.map.lon_wrap) { while (GMT->common.R.wesn[0] > lon && GMT->common.R.wesn[1] >= lon + 360.0) lon = lon + 360.0; while (lon > GMT->common.R.wesn[1] && lon - 360.0 >= GMT->common.R.wesn[0]) lon = lon - 360.0; } if (GM...
GMT_LOCAL bool map_wesn_outside (struct GMT_CTRL *GMT, double lon, double lat) { if (GMT->current.map.lon_wrap) { while (lon < GMT->common.R.wesn[XLO] && lon + 360.0 <= GMT->common.R.wesn[XHI]) lon += 360.0; while (lon > GMT->common.R.wesn[XHI] && lon - 360.0 >= GMT->common.R.wesn[XLO]) lon -= 360.0; } ...
map_wesn_outside
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool map_wesn_overlap(GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1) { double lat1a; double lon1a; double lat0a; double lon0a; lon0a = lon0; lat0a = lat0; lon1a = lon1; lat1a = lat1; if (lon0 > lon1) { lon0a = lon1; lon1a = lon0; } if (lat0 > lat1...
GMT_LOCAL bool map_wesn_overlap (struct GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1) { if (lon0 > lon1) gmt_M_double_swap (lon0, lon1); if (lat0 > lat1) gmt_M_double_swap (lat0, lat1); if (lon1 - GMT->common.R.wesn[XLO] < -GMT_CONV8_LIMIT) { lon0 += 360.0; lon1 += 360.0; } else if (lon0...
map_wesn_overlap
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void map_wesn_search(GMT_CTRL *GMT, double xmin, double xmax, double ymin, double ymax, double *west, double *east, double *south, double *north) { double v9; unsigned int v10; unsigned int v11; double v12; unsigned int v13; unsigned int v14; int i; int j; uns...
GMT_LOCAL void map_wesn_search (struct GMT_CTRL *GMT, double xmin, double xmax, double ymin, double ymax, double *west, double *east, double *south, double *north) { double dx, dy, w, e, s, n, x, y, lat, *lon = NULL; unsigned int i, j, k; bool test_pole[2] = {true, true}; dx = (xmax - xmin) / GMT->current.map.n...
map_wesn_search
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool map_will_it_wrap_tm(GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t *start) { bool wrap; uint64_t i; if (!GMT->current.map.is_world) return 0; i = 1; wrap = 0; while (!wrap && i < n) { wrap = map_this_point_wraps_tm(GMT, y[i - 1], y[i]); ++i; } *start...
GMT_LOCAL bool map_will_it_wrap_tm (struct GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t *start) { uint64_t i; bool wrap; gmt_M_unused(x); if (!GMT->current.map.is_world) return (false); for (i = 1, wrap = false; !wrap && i < n; i++) { wrap = map_this_point_wraps_tm (GMT, y[i-1], y[i]); } *star...
map_will_it_wrap_tm
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool map_will_it_wrap_x(GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t *start) { bool wrap; uint64_t i; double w_this; double w_last; if (!GMT->current.map.is_world) return 0; w_this = gmtlib_half_map_width(GMT, *y); i = 1; wrap = 0; while (!wrap && i < n) { ...
GMT_LOCAL bool map_will_it_wrap_x (struct GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t *start) { uint64_t i; bool wrap; double w_last, w_this; if (!GMT->current.map.is_world) return (false); w_this = gmtlib_half_map_width (GMT, y[0]); for (i = 1, wrap = false; !wrap && i < n; i++) { w_last = w_...
map_will_it_wrap_x
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int map_wrap_around_check_tm(GMT_CTRL *GMT, double *angle, double last_x, double last_y, double this_x, double this_y, double *xx, double *yy, unsigned int *sides) { double v10; double v11; d...
GMT_LOCAL unsigned int map_wrap_around_check_tm (struct GMT_CTRL *GMT, double *angle, double last_x, double last_y, double this_x, double this_y, double *xx, double *yy, unsigned int *sides) { double dx, dy, width, jump; jump = this_y - last_y; width = 0.5 * GMT->current.map.height; if (fabs (jump) - width <= GMT...
map_wrap_around_check_tm
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int map_wrap_around_check_x(GMT_CTRL *GMT, double *angle, double last_x, double last_y, double this_x, double this_y, double *xx, double *yy, unsigned int *sides) { double v9; double v10; double...
GMT_LOCAL unsigned int map_wrap_around_check_x (struct GMT_CTRL *GMT, double *angle, double last_x, double last_y, double this_x, double this_y, double *xx, double *yy, unsigned int *sides) { double dx, dy, width, jump, gmtlib_half_map_width (struct GMT_CTRL *GMT, double y); jump = this_x - last_x; width = MAX (gmt...
map_wrap_around_check_x
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double map_x_to_corner(GMT_CTRL *GMT, double x) { if (fabs(x - GMT->current.proj.rect[1]) <= fabs(x - *(double *)((char *)&loc_12BD38 + (_QWORD)GMT))) return GMT->current.proj.rect[1]; else return *(double *)((char *)&loc_12BD38 + (_QWORD)GMT); }
GMT_LOCAL double map_x_to_corner (struct GMT_CTRL *GMT, double x) { return ( (fabs (x - GMT->current.proj.rect[XLO]) < fabs (x - GMT->current.proj.rect[XHI])) ? GMT->current.proj.rect[XLO] : GMT->current.proj.rect[XHI]); }
map_x_to_corner
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void map_x_wesn_corner(GMT_CTRL *GMT, double *x) { if (fabs(*x - GMT->common.R.wesn[0]) > 0.00000001) { if (fabs(*x - GMT->common.R.wesn[1]) <= 0.00000001) *x = GMT->common.R.wesn[1]; } else { *x = GMT->common.R.wesn[0]; } }
GMT_LOCAL void map_x_wesn_corner (struct GMT_CTRL *GMT, double *x) { if (fabs (*x - GMT->common.R.wesn[XLO]) <= GMT_CONV8_LIMIT) *x = GMT->common.R.wesn[XLO]; else if (fabs (*x - GMT->common.R.wesn[XHI]) <= GMT_CONV8_LIMIT) *x = GMT->common.R.wesn[XHI]; }
map_x_wesn_corner
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void map_xy_search(GMT_CTRL *GMT, double *x0, double *x1, double *y0, double *y1, double w0, double e0, double s0, double n0) { unsigned int i; unsigned int j; double x; double y; double xmin; double xmax; double ymin; double ymax; double dlon; double dlat; double s; double w;...
GMT_LOCAL void map_xy_search (struct GMT_CTRL *GMT, double *x0, double *x1, double *y0, double *y1, double w0, double e0, double s0, double n0) { unsigned int i, j; double xmin, xmax, ymin, ymax, w, s, x, y, dlon, dlat; xmax = ymax = -DBL_MAX; xmin = ymin = DBL_MAX; dlon = fabs (e0 - w0) / 500; dlat = fabs (n...
map_xy_search
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double map_y_to_corner(GMT_CTRL *GMT, double y) { if (fabs(y - *(double *)((char *)&loc_12BD50 + (_QWORD)GMT)) <= fabs(y - GMT->current.proj.rect[2])) return *(double *)((char *)&loc_12BD50 + (_QWORD)GMT); else return GMT->current.proj.rect[2]; }
GMT_LOCAL double map_y_to_corner (struct GMT_CTRL *GMT, double y) { return ( (fabs (y - GMT->current.proj.rect[YLO]) < fabs (y - GMT->current.proj.rect[YHI])) ? GMT->current.proj.rect[YLO] : GMT->current.proj.rect[YHI]); }
map_y_to_corner
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void map_y_wesn_corner(GMT_CTRL *GMT, double *y) { if (fabs(*y - *(double *)((char *)&stru_21360.r_offset + (_QWORD)GMT)) > 0.00000001) { if (fabs(*y - GMT->common.R.wesn[3]) <= 0.00000001) *y = GMT->common.R.wesn[3]; } else { *y = *(double *)((char *)&stru_21360.r_offset + (_QWORD)GMT); } }
GMT_LOCAL void map_y_wesn_corner (struct GMT_CTRL *GMT, double *y) { if (fabs (*y - GMT->common.R.wesn[YLO]) <= GMT_CONV8_LIMIT) *y = GMT->common.R.wesn[YLO]; else if (fabs (*y - GMT->common.R.wesn[YHI]) <= GMT_CONV8_LIMIT) *y = GMT->common.R.wesn[YHI]; }
map_y_wesn_corner
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void matrix_2v(double *a, double *x, double *b) { *b = a[1] * x[1] + *x * *a; b[1] = a[3] * x[1] + *x * a[2]; }
GMT_LOCAL void matrix_2v (double *a, double *x, double *b) { b[0] = x[0]*a[0] + x[1]*a[1]; b[1] = x[0]*a[2] + x[1]*a[3]; }
matrix_2v
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void matrix_3v(double *a, double *x, double *b) { *b = a[2] * x[2] + *x * *a + a[1] * x[1]; b[1] = a[5] * x[2] + *x * a[3] + a[4] * x[1]; b[2] = a[8] * x[2] + *x * a[6] + a[7] * x[1]; }
GMT_LOCAL void matrix_3v (double *a, double *x, double *b) { b[0] = x[0]*a[0] + x[1]*a[1] + x[2]*a[2]; b[1] = x[0]*a[3] + x[1]*a[4] + x[2]*a[5]; b[2] = x[0]*a[6] + x[1]*a[7] + x[2]*a[8]; }
matrix_3v
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void mean_vector(GMT_CTRL *GMT, GMT_DATASET *D, bool cartesian, double conf, double *M, double *E) { unsigned int v6; double v7; double v8; double v9; double v10; double v11; double v12; double v13; double v14; double v15; double v16; unsigned int nrots; unsigned int i; unsi...
GMT_LOCAL void mean_vector (struct GMT_CTRL *GMT, struct GMT_DATASET *D, bool cartesian, double conf, double *M, double *E) { unsigned int i, j, k, n_components, nrots; uint64_t row, n, seg, tbl, p; double lambda[3], V[9], work1[3], work2[3], lon, lat, lon2, lat2, scl, L, Y; double *P[3], X[3], B[3], C[9]; str...
mean_vector
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double median3(double *x) { if (x[1] <= *x) { if (x[2] <= *x) { if (x[1] <= x[2]) return x[2]; else return x[1]; } else { return *x; } } else if (x[2] <= x[1]) { if (x[2] <= *x) return *x; else return x[2]; } else { return x[1]; } }
GMT_LOCAL double median3 (double x[]) { if (x[0] < x[1]) { if (x[2] > x[1]) return (x[1]); if (x[2] > x[0]) return (x[2]); return (x[0]); } else { if (x[2] > x[0]) return (x[0]); if (x[2] < x[1]) return (x[1]); return (x[2]); } }
median3
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void median_output(GMT_CTRL *GMT, GMT_GRID_HEADER *h, uint64_t first_in_cell, uint64_t first_in_new_cell, double weight_sum, double *out, double *extra, unsigned int go_quickly, unsigned int emode, double *quantile, unsigned int n_quantiles, BLK_DATA *data) { i...
GMT_LOCAL void median_output (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, uint64_t first_in_cell, uint64_t first_in_new_cell, double weight_sum, double *out, double *extra, unsigned int go_quickly, unsigned int emode, double *quantile, unsigned int n_quantiles, struct BLK_DATA *data) { double weight_half, weight_...
median_output
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int memory_die_if_memfail(GMT_CTRL *GMT, size_t nelem, size_t size, const char *where) { double v4; double v5; double v6; unsigned int k; double mem; if ((nelem & 0x8000000000000000LL) != 0LL) { v5 = (double)(int)(nelem & 1 | (nelem >> 1)); v4 = v5 + v5; } else { v4 ...
GMT_LOCAL int memory_die_if_memfail (struct GMT_CTRL *GMT, size_t nelem, size_t size, const char *where) { double mem = ((double)nelem) * ((double)size); unsigned int k = 0; static char *m_unit[4] = {"bytes", "kb", "Mb", "Gb"}; while (mem >= 1024.0 && k < 3) mem /= 1024.0, k++; gmtlib_report_func (GMT, GMT_MSG_N...
memory_die_if_memfail
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void memory_init_tmp_arrays(GMT_CTRL *GMT, size_t n_cols) { double **v2; size_t n_colsa; size_t col; n_colsa = n_cols; if (!n_cols) n_colsa = 2; GMT->hidden.mem_coord = (double **)gmt_memory_func( GMT, GMT->hidden.mem_coord, n_colsa, 8u, 0, "memory_init_tmp_arrays"); GMT->hidden.mem_cols = n_co...
GMT_LOCAL void memory_init_tmp_arrays (struct GMT_CTRL *GMT, size_t n_cols) { size_t col; if (n_cols == 0) n_cols = GMT_INITIAL_MEM_COL_ALLOC; GMT->hidden.mem_coord = gmt_M_memory (GMT, GMT->hidden.mem_coord, n_cols, double *); GMT->hidden.mem_cols = n_cols; for (col = 0; col < n_cols; col++) GMT->hidde...
memory_init_tmp_arrays
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t mix64(uint64_t a, uint64_t b, uint64_t c) { uint64_t ca; uint64_t cb; uint64_t cc; uint64_t ba; uint64_t bb; uint64_t bc; uint64_t aa; uint64_t ab; uint64_t ac; uint64_t ad; aa = (c >> 43) ^ (a - b - c); ba = (aa << 9) ^ (b - c - aa); ca = (ba >> 8) ^ (c - aa - ba); ab = (ca >> 38)...
static inline uint64_t mix64 (uint64_t a, uint64_t b, uint64_t c) { a -= b; a -= c; a ^= (c>>43); b -= c; b -= a; b ^= (a<<9); c -= a; c -= b; c ^= (b>>8); a -= b; a -= c; a ^= (c>>38); b -= c; b -= a; b ^= (a<<23); c -= a; c -= b; c ^= (b>>5); a -= b; a -= c; a ^= (c>>35); b -= c; b -= a; b ^= (a<<49); c -...
mix64
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double model(double x, double *par) { return par[3] + par[2] * x; }
GMT_LOCAL double model (double x, double *par) { return (par[GMTREGRESS_SLOPE] * x + par[GMTREGRESS_ICEPT]); }
model
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void move_model_a_to_b_1d(double *model_a, double *model_b, unsigned int n_model, double *chisq_a, double *chisq_b) { memcpy(model_b, model_a, 8LL * n_model); *chisq_b = *chisq_a; }
GMT_LOCAL void move_model_a_to_b_1d (double *model_a, double *model_b, unsigned int n_model, double *chisq_a, double *chisq_b) { gmt_M_memcpy (model_b, model_a, n_model, double); *chisq_b = *chisq_a; }
move_model_a_to_b_1d
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void move_model_a_to_b_2d(double *model_a, double *model_b, unsigned int n_model, double *chisq_a, double *chisq_b) { unsigned int i; for (i = 0; i < n_model; ++i) model_b[i] = model_a[i]; *chisq_b = *chisq_a; }
GMT_LOCAL void move_model_a_to_b_2d (double *model_a, double *model_b, unsigned int n_model, double *chisq_a, double *chisq_b) { unsigned int i; for (i = 0; i < n_model; i++) model_b[i] = model_a[i]; *chisq_b = *chisq_a; }
move_model_a_to_b_2d
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double oblique_setup(GMT_CTRL *GMT, double plat, double plon, double *p, double *clat, double *clon, double *c, bool c_given, bool generate) { double cp; double s[4]; double x[4]; *(_QWORD *)&x[3] = __readfsqword(0x28u); s[1] = 0.0; s[0] = 0.0; s[2] = -1.0; gmt...
GMT_LOCAL double oblique_setup (struct GMT_CTRL *GMT, double plat, double plon, double *p, double *clat, double *clon, double *c, bool c_given, bool generate) { double s[3]; double x[3]; double cp, sin_lat_to_pole; s[0] = s[1] = 0.0; s[2] = -1.0; gmt_geo_to_cart (GMT, plat, plon, p, true); if...
oblique_setup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void oblique_transform(GMT_CTRL *GMT, double xlat, double xlon, double *x_t_lat, double *x_t_lon, double *p, double *c) { double v7; double v8; double temp1; double temp1a; double temp2; double x[4]; double p_cross_x[4]; *(_QWORD *)&p_cross_x[3] = __readfsqword(0x28u); gmt_geo_...
GMT_LOCAL void oblique_transform (struct GMT_CTRL *GMT, double xlat, double xlon, double *x_t_lat, double *x_t_lon, double *p, double *c) { double x[3], p_cross_x[3], temp1, temp2; gmt_geo_to_cart (GMT, xlat, xlon, x, true); temp1 = gmt_dot3v (GMT, x,p); *x_t_lat = d_asind(temp1); gmt_cross3v (GMT, p,x...
oblique_transform
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void ogr_to_text(GMT_CTRL *GMT, GMT_OGR *G, char *out) { unsigned int v3; long v4; unsigned int col; unsigned int cola; unsigned int k; unsigned int ka; unsigned int n_aspatial; size_t len; char text[72]; unsigned long v13; v13 = __readfsqword(0x28u); n_aspatial = 0; memset(text, 0, 64); *o...
GMT_LOCAL void ogr_to_text (struct GMT_CTRL *GMT, struct GMT_OGR *G, char *out) { unsigned int col, k, n_aspatial = 0; size_t len; char text[GMT_LEN64] = {""}; static int ogr[MAX_ASPATIAL]; out[0] = '\0'; if (n_aspatial == 0) { for (col = 0; col < GMT->common.a.n_aspatial; col++) { for (k = 0; k < G->...
ogr_to_text
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int old_C_parse(GMTAPI_CTRL *API, char *arg, GMTSELECT_CTRL *Ctrl) { bool fix; int j; fix = 0; if (*(_DWORD *)((char *)strncmp + (unsigned long)API->GMT) > 5u) goto LABEL_2; if (*arg == 102) { if (*(_DWORD *)((char *)strncmp + (unsigned long)API->GMT) > 4u) { LABEL_2: GMT_Report(API, 1u, "S...
GMT_LOCAL int old_C_parse (struct GMTAPI_CTRL *API, char *arg, struct GMTSELECT_CTRL *Ctrl) { int j; bool fix = false; if (!gmt_M_compat_check (API->GMT, 5)) { GMT_Report (API, GMT_MSG_NORMAL, "Syntax error -C option: Expects -C<file>+d%s\n", GMT_DIST_OPT); return 1; } if (arg[0] == 'f') { if (gmt_M_compa...
old_C_parse
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int old_G_parse(GMT_CTRL *GMT, char *arg, MAPPROJECT_CTRL *Ctrl) { unsigned int v3; char v4; int v5; int v6; unsigned int v7; unsigned int v8; unsigned int v9; unsigned int v10; int v11; char v12; char d; char sign; unsigned int n_slash; unsigned int k; unsigned int n_errors; in...
GMT_LOCAL unsigned int old_G_parse (struct GMT_CTRL *GMT, char *arg, struct MAPPROJECT_CTRL *Ctrl) { int n; unsigned int n_slash, k, n_errors = 0; char txt_a[GMT_LEN256] = {""}, txt_b[GMT_LEN256] = {""}; char d, sign; size_t last; for (n_slash = k = 0; arg[k]; k++) if (arg[k] == '/') n_slash++; last = strlen (a...
old_G_parse
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void ones(double *x, uint64_t n) { uint64_t k; for (k = 0; k < n; ++k) x[k] = 1.0; }
GMT_LOCAL void ones (double *x, uint64_t n) { uint64_t k; for (k = 0; k < n; k++) x[k] = 1.0; }
ones
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void orient_contours(GMT_CTRL *GMT, GMT_GRID_HEADER *h, char *grd, double *x, double *y, uint64_t n, int orient) { double v7; double v8; int v9; int v10; int v11; int v12; int v13; int v14; int z_dir; int k; int ka; int k2_0; uint64_t ia; uint64_t i; uint64_t ja; uin...
GMT_LOCAL void orient_contours (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, char *grd, double *x, double *y, uint64_t n, int orient) { int side[2], z_dir, k, k2; bool reverse; uint64_t i, j, ij_ul, ij_ur, ij_ll, ij_lr; double fx[2], fy[2], dx, dy; if (orient == 0) return; if (n < 2) return; for (k = ...
orient_contours
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int ors_find_kink(GMT_CTRL *GMT, double *y, unsigned int n, unsigned int mode) { unsigned int i; unsigned int ia; unsigned int ib; unsigned int ic; unsigned int im; unsigned int ima; double *c; double *f; if (mode) { c = (double *)gmt_memory_func(GMT, 0, n, 8u, 0, "ors_find_kink"); for (ia = ...
GMT_LOCAL int ors_find_kink (struct GMT_CTRL *GMT, double y[], unsigned int n, unsigned int mode) { unsigned int i, im; double *c = NULL, *f = NULL; if (mode == 0) { for (i = im = 0; i < n; i++) if (y[i] > y[im]) im = i; return (im); } c = gmt_M_memory (GMT, NULL, n, double); for (i = 1; i < (n-1)...
ors_find_kink
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool out_of_phase(GMT_GRID_HEADER *g, GMT_GRID_HEADER *h) { unsigned int side; double a; for (side = 0; side <= 3; ++side) { a = fmod(fabs((g->inc[side >> 1] * g->xy_off + g->wesn[side] - (h->inc[side >> 1] * h->xy_off + h->wesn[side])) / h->inc[side >> 1]), ...
GMT_LOCAL bool out_of_phase (struct GMT_GRID_HEADER *g, struct GMT_GRID_HEADER *h) { unsigned int way, side; double a; for (side = 0; side < 4; side++) { way = side / 2; a = fmod (fabs (((g->wesn[side] + g->xy_off * g->inc[way]) - (h->wesn[side] + h->xy_off * h->inc[way])) / h->inc[way]), 1.0); if (a < GMT_C...
out_of_phase
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void output_words(GMT_CTRL *GMT, PSL_CTRL *PSL, double x, double y, char *text, PSTEXT_INFO *T) { double ya; double xa; unsigned int mode; GMT_FILL *fill; double offset[4]; *(_QWORD *)&offset[3] = __readfsqword(0x28u); memcpy(PSL->current.rgb[1], GMT->session.no_rgb, 0x18u); memcpy(PS...
GMT_LOCAL void output_words (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x, double y, char *text, struct PSTEXT_INFO *T) { double offset[2]; gmt_M_memcpy (PSL->current.rgb[PSL_IS_FILL], GMT->session.no_rgb, 3, double); gmt_M_memcpy (PSL->current.rgb[PSL_IS_STROKE], GMT->session.no_rgb, 3, double); if (T->...
output_words
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool overlap_check(GMT_CTRL *GMT, GRDBLEND_INFO *B, GMT_GRID_HEADER *h, unsigned int mode) { double v5; double v6; double w; double e; double shift; char *type[2]; unsigned long v11; v11 = __readfsqword(0x28u); shift = 720.0; type[0] = "grid"; type[1] = "inner grid"; if (h->g...
GMT_LOCAL bool overlap_check (struct GMT_CTRL *GMT, struct GRDBLEND_INFO *B, struct GMT_GRID_HEADER *h, unsigned int mode) { double w, e, shift = 720.0; char *type[2] = {"grid", "inner grid"}; if (gmt_M_grd_is_global (GMT, h)) return false; if (gmt_M_grd_is_global (GMT, B->G->header)) return false; w = ((mode)...
overlap_check
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void paint_it_grdview(GMT_CTRL *GMT, PSL_CTRL *PSL, GMT_PALETTE *P, double *x, double *y, int n, double z, bool intens, bool monochrome, double intensity, bool outline) { int index; GMT_FILL *f; double rgb[6]; *(_QWORD *)&rgb[5] = __readfsqword(0x28u); if (n > 2) {...
GMT_LOCAL void paint_it_grdview (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_PALETTE *P, double *x, double *y, int n, double z, bool intens, bool monochrome, double intensity, bool outline) { int index; double rgb[4]; struct GMT_FILL *f = NULL; if (n < 3) return; index = gmt_get_rgb_from_z (GMT, P, z,...
paint_it_grdview
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void paint_it_pscontour(GMT_CTRL *GMT, PSL_CTRL *PSL, GMT_PALETTE *P, double *x, double *y, int n, double z) { int index; GMT_FILL *f; double rgb[6]; *(_QWORD *)&rgb[5] = __readfsqword(0x28u); if (n > 2) { index = gmt_get_rgb_from_z(GMT, P, z, rgb); if (!P->skip) { if (i...
GMT_LOCAL void paint_it_pscontour (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_PALETTE *P, double x[], double y[], int n, double z) { int index; double rgb[4]; struct GMT_FILL *f = NULL; if (n < 3) return; index = gmt_get_rgb_from_z (GMT, P, z, rgb); if (P->skip) return; if ((index >= 0 && (f ...
paint_it_pscontour
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int parse_A_settings(GMT_CTRL *GMT, char *arg, PS2RASTER_CTRL *Ctrl) { double offset; double v5; double v6; long v7; long v8; long v9; long v10; long v11; long v12; long v13; long v14; double v15; double length; double v17; double v18; bool error; unsigned int pos; int j; int k; ...
GMT_LOCAL int parse_A_settings (struct GMT_CTRL *GMT, char *arg, struct PS2RASTER_CTRL *Ctrl) { bool error = false; unsigned int pos = 0; int j, k = 0, trim_j = -1; char txt[GMT_LEN128] = {""}, p[GMT_LEN128] = {""}; char txt_a[GMT_LEN64] = {""}, txt_b[GMT_LEN64] = {""}, txt_c[GMT_LEN64] = {""}, txt_d[GMT_LEN64]...
parse_A_settings
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int parse_B_arg_inspector(GMT_CTRL *GMT, char *in) { _BOOL4 v3; bool ignore; bool ignore5; char mod; bool custom; int gmt4; int gmt5; int n_digits; int n_colons; int n_slashes; int colon_text; int wesn_at_end; size_t k; size_t ka; size_t kb; size_t j; size_t last; gmt4 = 0; gmt5 =...
GMT_LOCAL int parse_B_arg_inspector (struct GMT_CTRL *GMT, char *in) { size_t k, j, last; int gmt4 = 0, gmt5 = 0, n_digits = 0, n_colons = 0, n_slashes = 0, colon_text = 0, wesn_at_end = 0; bool ignore = false; bool ignore5 = false; bool custom = false; char mod = 0; if (!in || in[0] == 0) return (9)...
parse_B_arg_inspector
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int parse_GE_settings(GMT_CTRL *GMT, char *arg, PS2RASTER_CTRL *C) { unsigned int i; unsigned int pos; unsigned int error; char p[264]; unsigned long v9; v9 = __readfsqword(0x28u); pos = 0; error = 0; memset(p, 0, 256); C->W.active = 1; for (i = gmt_getmodopt(GMT, 87, arg, "afgklnotu", &pos, p, &...
GMT_LOCAL int parse_GE_settings (struct GMT_CTRL *GMT, char *arg, struct PS2RASTER_CTRL *C) { unsigned int pos = 0, error = 0; char p[GMT_LEN256] = {""}; gmt_M_unused(GMT); C->W.active = true; while (gmt_getmodopt (GMT, 'W', arg, "afgklnotu", &pos, p, &error) && error == 0) { switch (p[0]) { case 'a': ...
parse_GE_settings
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int parse_Z_opt(GMT_CTRL *GMT, char *txt, GRDCONTOUR_CTRL *Ctrl) { unsigned int uerr; unsigned int pos; char p[72]; unsigned long v8; v8 = __readfsqword(0x28u); uerr = 0; if (txt && *txt) { if (strstr(txt, "+s") || strstr(txt, "+o") || strstr(txt, "+p")) { memset(p, 0, 64); pos =...
GMT_LOCAL unsigned int parse_Z_opt (struct GMT_CTRL *GMT, char *txt, struct GRDCONTOUR_CTRL *Ctrl) { unsigned int uerr = 0; if (!txt || txt[0] == '\0') { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error -Z option: No arguments given\n"); return (GMT_PARSE_ERROR); } if (strstr (txt, "+s") || strstr...
parse_Z_opt
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int parse_check_b_options(GMT_CTRL *GMT, GMT_OPTION *options) { unsigned int n4_expected; unsigned int n_B; unsigned int gmt4; unsigned int gmt5; int verdict; n4_expected = 0; n_B = 0; gmt4 = 0; gmt5 = 0; while (options) { if (options->option == 66) { ++n_B; if (*options->arg == 112...
GMT_LOCAL int parse_check_b_options (struct GMT_CTRL *GMT, struct GMT_OPTION *options) { struct GMT_OPTION *opt = NULL; unsigned int n4_expected = 0, n_B = 0, gmt4 = 0, gmt5 = 0, k; int verdict; for (opt = options; opt; opt = opt->next) { if (opt->option != 'B') continue; n_B++; k = (opt->arg...
parse_check_b_options
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int parse_check_extended_R(GMT_CTRL *GMT, GMT_OPTION *options) { bool got_extended_R; GMT_OPTION *opt; GMT_OPTION *opta; got_extended_R = 0; for (opt = options; opt; opt = opt->next) { if (opt->option == 82 && count_slashes(opt->arg) == 3 && strchr("LCRlcr", *opt->arg) && strchr("TMBtmb"...
GMT_LOCAL unsigned int parse_check_extended_R (struct GMT_CTRL *GMT, struct GMT_OPTION *options) { struct GMT_OPTION *opt = NULL; bool got_extended_R = false; for (opt = options; opt; opt = opt->next) { if (opt->option == 'R' && count_slashes (opt->arg) == 3 && strchr ("LCRlcr", opt->arg[0]) && strchr ("TMBt...
parse_check_extended_R
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int parse_complete_options(GMT_CTRL *GMT, GMT_OPTION *options) { char *v2; char *v3; GMT_OPTION *Option; char *v5; char *v7; char *v8; bool update; bool remember; unsigned int pos; int id; int k; int n_B; int B_id; unsigned int B_replace; GMT_OPTION *opt; GMT_OPTION *opt2; GMT_OPTION *...
GMT_LOCAL int parse_complete_options (struct GMT_CTRL *GMT, struct GMT_OPTION *options) { int id = 0, k, n_B = 0, B_id; unsigned int pos = 0, B_replace = 1; bool update, remember; struct GMT_OPTION *opt = NULL, *opt2 = NULL, *B_next = NULL; char str[3] = {""}, B_string[GMT_BUFSIZ] = {""}, p[GMT_BUF...
parse_complete_options
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void parse_date_tz(char *date_tz, char **date, int *TZ) { size_t v3; int v4; unsigned int pos; char *p; unsigned long v8; v8 = __readfsqword(0x28u); pos = 0; v3 = strlen(date_tz); p = (char *)malloc(v3 + 1); while (gmt_strtok(date_tz, "+", &pos, p)) { v4 = *p; if (v4 == 100) { *date =...
GMT_LOCAL void parse_date_tz(char *date_tz, char **date, int *TZ) { unsigned int pos = 0; char *p; p = malloc(strlen(date_tz)+1); while ((gmt_strtok (date_tz, "+", &pos, p))) { switch (p[0]) { case 'd': date[0] = strdup(&p[1]); break; case 'z': *TZ = atoi(&p[1]); break; } } free(p); }
parse_date_tz
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool parse_f_string(GMT_CTRL *GMT, F_INFO *f_info, char *c) { double v4; double v5; double v6; double v7; bool descending; unsigned int pos; unsigned int i; unsigned int n_tokens; unsigned int j; double fourvals[4]; char line[256]; char p[264]; unsigned long v16; v16 = __readfsqword(0x28u);...
GMT_LOCAL bool parse_f_string (struct GMT_CTRL *GMT, struct F_INFO *f_info, char *c) { unsigned int i, j, n_tokens, pos; bool descending; double fourvals[4]; char line[GMT_LEN256] = {""}, p[GMT_LEN256] = {""}; strncpy (line, c, GMT_LEN256-1); i = 0; f_info->k_type = GMT_FFT_K_IS_KR; if (line[i] == 'r') ...
parse_f_string
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMTAPI_CTRL *parse_get_api_ptr(GMTAPI_CTRL *ptr) { return ptr; }
static inline struct GMTAPI_CTRL * parse_get_api_ptr (struct GMTAPI_CTRL *ptr) {return (ptr);}
parse_get_api_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int parse_old_E(GMTAPI_CTRL *API, PSXY_CTRL *Ctrl, char *text) { int v3; unsigned int j; unsigned int ja; unsigned int j0; unsigned int n_errors; char txt_a[264]; unsigned long v11; v11 = __readfsqword(0x28u); j = 0; n_errors = 0; memset(txt_a, 0, 256); while (text[j] && text[j] != 47)...
GMT_LOCAL unsigned int parse_old_E (struct GMTAPI_CTRL *API, struct PSXY_CTRL *Ctrl, char *text) { unsigned int j = 0, j0, n_errors = 0; char txt_a[GMT_LEN256] = {""}; while (text[j] && text[j] != '/') { switch (text[j]) { case 'x': Ctrl->E.xbar = EBAR_NORMAL; if (text[j+1] == '+') { Ctrl->E.xbar = E...
parse_old_E
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int pipe_HR_BB(GMTAPI_CTRL *API, PS2RASTER_CTRL *Ctrl, char *gs_BB, double margin, double *w, double *h) { size_t v7; double v8; double v9; size_t v10; size_t v11; size_t v12; size_t v13; int v14; size_t v15; int v16; bool landscape; char c; int r; int c_begin; int c_begina;...
GMT_LOCAL int pipe_HR_BB(struct GMTAPI_CTRL *API, struct PS2RASTER_CTRL *Ctrl, char *gs_BB, double margin, double *w, double *h) { char cmd[GMT_LEN256] = {""}, buf[GMT_LEN128] = {""}, t[32] = {""}, *pch, c; int fh, r, c_begin = 0; size_t n; bool landscape = false; double x0, y0, x1, y1, xt,...
pipe_HR_BB
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int pipe_ghost(GMTAPI_CTRL *API, PS2RASTER_CTRL *Ctrl, char *gs_params, double w, double h, char *out_file) { double v6; double v7; int v9; int v10; int v11; int v12; int v13; unsigned int *pad; long v15; int fh; int n; int na; int nb; int nc; int pix_w; int pix_h; popen...
GMT_LOCAL int pipe_ghost (struct GMTAPI_CTRL *API, struct PS2RASTER_CTRL *Ctrl, char *gs_params, double w, double h, char *out_file) { char cmd[1024] = {""}, buf[GMT_LEN128], t[16] = {""}; int fd[2] = {0, 0}, fh, n, k, pix_w, pix_h; uint64_t dim[3], nXY, row, col, band, nCols, nRows, nBands; ...
pipe_ghost
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int pixel_inside(GMT_CTRL *GMT, int ip_0, int jp, int *ix, int *iy, uint64_t bin, int *bin_inc) { unsigned int i; double x[6]; double y[8]; *(_QWORD *)&y[7] = __readfsqword(0x28u); for (i = 0; i <= 3; ++i) { x[i] = (double)ix[bin_inc[i] + bin]; y[i] = (double)iy[bin...
GMT_LOCAL unsigned int pixel_inside (struct GMT_CTRL *GMT, int ip, int jp, int *ix, int *iy, uint64_t bin, int bin_inc[]) { unsigned int i, what; double x[6], y[6]; for (i = 0; i < 4; i++) { x[i] = (double)ix[bin+bin_inc[i]]; y[i] = (double)iy[bin+bin_inc[i]]; } x[4] = x[0]; y[4] = y[0]; what = gmt_non_zer...
pixel_inside
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void place_region_tag(GMTAPI_CTRL *API, double *wesn, double *min, double *max, int N) { int v5; int v6; long v7; long v8; int Nb; int Nc; int Nd; char text[264]; unsigned long v16; v16 = __readfsqword(0x28u); memset(text, 0, 256); if (fabs(fabs(wesn[1] - *wesn) - 360.0) <...
GMT_LOCAL void place_region_tag (struct GMTAPI_CTRL *API, double wesn[], double min[], double max[], int N) { char text[GMT_LEN256] = {""}; if (gmt_M_360_range (wesn[XLO], wesn[XHI])) { wesn[XLO] = -180.0; wesn[XHI] = +180.0;} kml_print (API, N++, "<Region>\n"); kml_print (API, N++, "<LatLonAltBox>\n"); gmt_ascii_...
place_region_tag
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_NaN_pen_up(double *x, double *y, unsigned int *pen, uint64_t n) { uint64_t i; for (i = 0; i < n; ++i) ; }
GMT_LOCAL void plot_NaN_pen_up (double x[], double y[], unsigned int pen[], uint64_t n) { uint64_t i, n1; for (i = 0, n1 = n - 1; i < n; i++) { if (gmt_M_is_dnan (x[i]) || gmt_M_is_dnan (y[i])) { pen[i] = PSL_MOVE; if (i < n1) pen[i+1] = PSL_MOVE; } } }
plot_NaN_pen_up
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool plot_annot_too_crowded(GMT_CTRL *GMT, double x, double y, unsigned int side) { double v5; size_t v6; unsigned int i; size_t __k; double d_min; size_t *__kp; unsigned long v12; v12 = __readfsqword(0x28u); if (GMT->current.setting.map_annot_min_spacing <= 0.0) retur...
GMT_LOCAL bool plot_annot_too_crowded (struct GMT_CTRL *GMT, double x, double y, unsigned int side) { unsigned int i; double d_min; if (GMT->current.setting.map_annot_min_spacing <= 0.0) return (false); for (i = 0, d_min = DBL_MAX; i < GMT_n_annotations[side]; i++) d_min = MIN (d_min, hypot (GMT_x_annotation[...
plot_annot_too_crowded
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_basic_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n) { if (GMT->common.R.oblique) plot_rect_map_boundary(GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[1], *(double *)((char *)&loc_12BD50 + (_QWORD)GMT)); else ...
GMT_LOCAL void plot_basic_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { if (GMT->common.R.oblique) { plot_rect_map_boundary (GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[XHI], GMT->current.proj.rect[YHI]); return; } plot_wesn_map_boundary (GMT, PSL, w, e, s, n...
plot_basic_map_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double plot_boxes(GMT_CTRL *GMT, PSL_CTRL *PSL, GMT_PALETTE *P, PSHISTOGRAM_INFO *F, bool stairs, bool flip_to_y, bool draw_outline, GMT_PEN *pen, GMT_FILL *fill, bool cpt, D_18 *D) { double v11; double d_NaN; double v13; double v14; double v15; GMT_FILL...
GMT_LOCAL double plot_boxes (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_PALETTE *P, struct PSHISTOGRAM_INFO *F, bool stairs, bool flip_to_y, bool draw_outline, struct GMT_PEN *pen, struct GMT_FILL *fill, bool cpt, struct D *D) { int i, index, fmode = 0, label_justify; uint64_t ibox; char label[GMT_LEN64]...
plot_boxes
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_circle_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n) { if (GMT->common.R.oblique) { plot_rect_map_boundary(GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[1], *(double *)((char *)&loc_12BD50 + (_QWORD)GMT)); } els...
GMT_LOCAL void plot_circle_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { gmt_M_unused(w); gmt_M_unused(e); gmt_M_unused(s); gmt_M_unused(n); if (GMT->common.R.oblique) { plot_rect_map_boundary (GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[XHI], GMT->current.proj....
plot_circle_map_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_circle_pen_poly(GMT_CTRL *GMT, double *A, double *B, bool longway, double rot, GMT_PEN *pen, GMT_SYMBOL *S, GMT_CIRCLE *C, double scale) { double v9; long v10; double v11; double v12; double rota; GMT_DATASEGMENT *L; uint64_t k; double w; d...
GMT_LOCAL void plot_circle_pen_poly (struct GMT_CTRL *GMT, double *A, double *B, bool longway, double rot, struct GMT_PEN *pen, struct GMT_SYMBOL *S, struct GMT_CIRCLE *C, double scale) { uint64_t k, n, n2; double Ai[3], Ao[3], Px[3], X[3], R[3][3], R0[3][3], w, step; struct GMT_DATASEGMENT *L = NULL; gmt_M_unus...
plot_circle_pen_poly
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_conic_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n) { char dual; unsigned int cap; double fat_pen; dual = 0; cap = PSL->internal.line_cap; if (GMT->common.R.oblique) { plot_rect_map_boundary(GMT, PSL, 0.0, 0.0, GMT->current.pro...
GMT_LOCAL void plot_conic_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { bool dual = false; unsigned int cap = PSL->internal.line_cap; double thin_pen, fat_pen; if (GMT->common.R.oblique) { plot_rect_map_boundary (GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[XH...
plot_conic_map_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_contlabel_debug(GMT_CTRL *GMT, PSL_CTRL *PSL, GMT_CONTOUR *G) { uint64_t row; uint64_t rowa; uint64_t seg; unsigned int *pen; GMT_DATASEGMENT *S; double size[2]; *(_QWORD *)&size[1] = __readfsqword(0x28u); size[0] = 0.025; gmt_setpen(GMT, (GMT_PEN *)((char *)nc_redef + (_QWORD)GMT)); if (...
GMT_LOCAL void plot_contlabel_debug (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_CONTOUR *G) { uint64_t row; double size[1] = {0.025}; gmt_setpen (GMT, &GMT->current.setting.map_default_pen); if (G->fixed) { PSL_setfill (PSL, GMT->session.no_rgb, PSL_OUTLINE); for (row = 0; row < (uint64_t)G->f_...
plot_contlabel_debug
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_contlabel_drawlines(GMT_CTRL *GMT, PSL_CTRL *PSL, GMT_CONTOUR *G, unsigned int mode) { uint64_t seg; uint64_t k; unsigned int *pen; GMT_CONTOUR_LINE *L; for (seg = 0; seg < G->n_segments; ++seg) { L = G->segment[seg]; if (!L->annot || mode != 1) { gmt_set...
GMT_LOCAL void plot_contlabel_drawlines (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_CONTOUR *G, unsigned int mode) { uint64_t seg, k; unsigned int *pen = NULL; struct GMT_CONTOUR_LINE *L = NULL; for (seg = 0; seg < G->n_segments; seg++) { L = G->segment[seg]; if (L->annot && mode == 1) continue; ...
plot_contlabel_drawlines
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_contlabel_plotlabels(GMT_CTRL *GMT, PSL_CTRL *PSL, GMT_CONTOUR *G, unsigned int mode) { const char *v4; char **v5; char **v6; char modea; unsigned int justify; unsigned int form; unsigned int n_segments; unsigned int n_labels; unsigned int first_point_in_segmen...
GMT_LOCAL void plot_contlabel_plotlabels (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_CONTOUR *G, unsigned int mode) { int justify = 0, form = 0, *just = NULL, *node = NULL, *nlabels_per_segment = NULL, *npoints_per_segment = NULL; uint64_t k, m, seg, n_points = 0; unsigned int n_segments = 0, n_...
plot_contlabel_plotlabels
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool plot_custum_failed_bool_test(GMT_CTRL *GMT, GMT_CUSTOM_SYMBOL_ITEM *s, double *size) { double v3; double v4; double v5; bool v6; bool v7; bool v8; bool v9; bool v10; bool result; double left; double right; if (s->is_var[0]) v3 = size[s->var[0]]; else...
GMT_LOCAL bool plot_custum_failed_bool_test (struct GMT_CTRL *GMT, struct GMT_CUSTOM_SYMBOL_ITEM *s, double size[]) { bool result; double left, right, right2; left = s->is_var[0] ? size[s->var[0]] : s->const_val[0]; right = s->is_var[1] ? size[s->var[1]] : s->const_val[1]; right2 = s->is_var[2] ? size[s->va...
plot_custum_failed_bool_test
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_cycle(GMT_CTRL *GMT, double x, double y, double width) { float v4; double vdim[12]; GMT_PEN pen; GMT_FILL black; GMT_SYMBOL S; unsigned long v10; v10 = __readfsqword(0x28u); gmt_init_pen(GMT, &pen, 0.5); gmt_init_fill(GMT, &black, 0.0, 0.0, 0.0); gmt_init_vector_param(GMT, &S, 0, 0, 0, 0,...
void plot_cycle (struct GMT_CTRL *GMT, double x, double y, double width) { double vdim[PSL_MAX_DIMS], s = width / 0.1, p_width; struct GMT_SYMBOL S; struct GMT_FILL black; struct GMT_PEN pen; gmt_init_pen (GMT, &pen, 0.5); gmt_init_fill (GMT, &black, 0.0, 0.0, 0.0); gmt_init_vector_param (GMT, &S, false, false,...
plot_cycle
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int plot_decorations(GMT_CTRL *GMT, GMT_TEXTSET *D) { __pid_t v3; __pid_t v4; unsigned int verbose; __pid_t v6; __pid_t v7; char was; FILE *fp; size_t len; char string[16]; char tmp_file[64]; char tmp_file2[64]; char buffer[4104]; unsigned long v15; v15 = __readfsqword(0x28u); memset(stri...
GMT_LOCAL int plot_decorations (struct GMT_CTRL *GMT, struct GMT_TEXTSET *D) { size_t len; char string[GMT_LEN16] = {""}, buffer[GMT_BUFSIZ] = {""}, tmp_file[GMT_LEN64] = {""}; FILE *fp = NULL; gmt_set_textset_minmax (GMT, D); if (D->n_records == 0) return GMT_NOERROR; if (GMT_Open_VirtualFile (GMT->pa...
plot_decorations
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_draw_dir_rose(GMT_CTRL *GMT, PSL_CTRL *PSL, GMT_MAP_ROSE *mr) { double cosx; double sinx; GMT_MAP_ROSE *mra; PSL_CTRL *PSLa; GMT_CTRL *GMTa; unsigned int i; unsigned int kind; int k; unsigned int form; double lon; double lat; double s; double c; double angle; unsigned int just[4]...
GMT_LOCAL void plot_draw_dir_rose (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_MAP_ROSE *mr) { unsigned int i, kind, form, just[4] = {PSL_TC, PSL_ML, PSL_BC, PSL_MR}; int k; double angle, L[4], R[4], x[PSL_MAX_DIMS], y[8], xp[8], yp[8], tx[3], ty[3]; double lon, lat, s, c, rot[4] = {0.0, 45.0, 22.5, -22....
plot_draw_dir_rose
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_draw_mag_rose(GMT_CTRL *GMT, PSL_CTRL *PSL, GMT_MAP_ROSE *mr) { double declination; unsigned int v4; long v5; unsigned int v6; long v7; double v8; unsigned int v9; double v10; double cosx; double sinx; GMT_MAP_ROSE *mra; PSL_CTRL *PSLa; GMT_CTRL *GMTa; unsigned int i; unsigned in...
GMT_LOCAL void plot_draw_mag_rose (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_MAP_ROSE *mr) { unsigned int i, k, level, just, ljust[4] = {PSL_TC, PSL_ML, PSL_BC, PSL_MR}, n_tick = 0, form; double ew_angle, angle, R[2], tlen[3], L, s, c, lon, lat, x[5], y[5], xp[5], yp[5]; double offset, t_angle, scale[...
plot_draw_mag_rose
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_echo_command(GMT_CTRL *GMT, PSL_CTRL *PSL, GMT_OPTION *options) { size_t v3; size_t v4; size_t v5; size_t length; size_t lengtha; GMT_OPTION *opt; char outstring[4104]; unsigned long v11; v11 = __readfsqword(0x28u); length = 0; memset(outstring, 0, 4096); PSL_command(PSL, "\n%% PostSc...
GMT_LOCAL void plot_echo_command (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct GMT_OPTION *options) { size_t length = 0; char outstring[GMT_BUFSIZ] = {""}; struct GMT_OPTION *opt = NULL; PSL_command (PSL, "\n%% PostScript produced by:\n%%@GMT: %s", GMT->init.module_name); for (opt = options; opt; opt ...
plot_echo_command
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_ellipse_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n) { if (GMT->common.R.oblique) { plot_rect_map_boundary(GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[1], *(double *)((char *)&loc_12BD50 + (_QWORD)GMT)); } e...
GMT_LOCAL void plot_ellipse_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { if (GMT->common.R.oblique) { plot_rect_map_boundary (GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[XHI], GMT->current.proj.rect[YHI]); return; } plot_wesn_map_boundary (GMT, PSL, w, e, s,...
plot_ellipse_map_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_ellipsoid_name_convert(char *inname, char *outname) { if (!strcmp(inname, "WGS-84")) { sprintf(outname, "WGS84"); } else if (!strcmp(inname, "WGS-72")) { sprintf(outname, "WGS72"); } else if (!strcmp(inname, "WGS-66")) { sprintf(outname, "WGS66"); } else if (!strcmp(inname, "WGS-60")) { ...
GMT_LOCAL void plot_ellipsoid_name_convert (char *inname, char outname[]) { if (!strcmp(inname, "WGS-84")) sprintf(outname, "WGS84"); else if (!strcmp(inname, "WGS-72")) sprintf(outname, "WGS72"); else if (!strcmp(inname, "WGS-66")) sprintf(outname, "WGS66"); else if (!strcmp(inname, "WGS-60")) sprintf(ou...
plot_ellipsoid_name_convert
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_encodefont(PSL_CTRL *PSL, int font_no, double size, char *name, unsigned int id) { bool v5; bool encode; int is; v5 = PSL->init.encoding && !PSL->internal.font[font_no].encoded; encode = v5; is = lrint(PSL->internal.dpp * size); if (PSL->internal.comments) PSL_command( ...
GMT_LOCAL void plot_encodefont (struct PSL_CTRL *PSL, int font_no, double size, char *name, unsigned int id) { bool encode = (PSL->init.encoding && !PSL->internal.font[font_no].encoded); int is = (int)lrint (size * PSL->internal.dpp); if (PSL->internal.comments) PSL_command (PSL, "%% Set font encoding and size ...
plot_encodefont
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_end_vectors(GMT_CTRL *GMT, double *x, double *y, uint64_t n, GMT_PEN *P) { double v5; double length; float v7; double cosx; double sinx; GMT_PEN *Pa; uint64_t na; double *ya; double *xa; GMT_CTRL *GMTa; unsigned int k; double s; double c; double angle; doubl...
GMT_LOCAL void plot_end_vectors (struct GMT_CTRL *GMT, double *x, double *y, uint64_t n, struct GMT_PEN *P) { unsigned int k, current[2] = {0,0}, next[2] = {1,0}; double dim[PSL_MAX_DIMS], angle, s, c, L; char *end[2] = {"start", "end"}; if (n < 2) return; if (P->end[0].V == NULL && P->end[1].V == NULL) return;...
plot_end_vectors
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_fancy_frame_curved_outline(GMT_CTRL *GMT, PSL_CTRL *PSL, double lonA, double latA, double lonB, double latB, unsigned int side, bool secondary_too) { double v8; double v9; double v10; double v11; double x1; double x2; doub...
GMT_LOCAL void plot_fancy_frame_curved_outline (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double lonA, double latA, double lonB, double latB, unsigned int side, bool secondary_too) { double scale[2] = {1.0, 1.0}, escl, x1, x2, y1, y2, radius, r_inc, az1, az2, da0, da, width, s; if (!GMT->current.map.frame.side[sid...
plot_fancy_frame_curved_outline
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_fancy_frame_curvedlon_checkers(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n, bool secondary_too) { double v7; double v8; double v9; int v10; double v11; double v12; double *rgb; double v14...
GMT_LOCAL void plot_fancy_frame_curvedlon_checkers (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, bool secondary_too) { int i, k, nx; unsigned int shade, item[2] = {GMT_TICK_UPPER, GMT_TICK_LOWER}; double dx, w1, v1, v2, val, x1, x2, y1, y2, az1, az2, dr, scale[2], radius_s, r...
plot_fancy_frame_curvedlon_checkers
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_fancy_frame_offset(GMT_CTRL *GMT, double angle, double *shift) { double cosx; double sinx; double *shifta; double anglea; GMT_CTRL *GMTa; double s; double c; unsigned long v10; GMTa = GMT; anglea = angle; shifta = shift; v10 = __readfsqword(0x28u); sincos(angle, &sinx, &cosx); s =...
GMT_LOCAL void plot_fancy_frame_offset (struct GMT_CTRL *GMT, double angle, double shift[2]) { double s, c; sincos (angle, &s, &c); shift[0] = GMT->current.setting.map_frame_width * s; shift[1] = -GMT->current.setting.map_frame_width * c; }
plot_fancy_frame_offset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_fancy_frame_straight_outline(GMT_CTRL *GMT, PSL_CTRL *PSL, double lonA, double latA, double lonB, double latB, unsigned int side, bool secondary_too) { double v8; double v9; double v10; ...
GMT_LOCAL void plot_fancy_frame_straight_outline (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double lonA, double latA, double lonB, double latB, unsigned int side, bool secondary_too) { unsigned int k, kn = 1; double scale = 1.0, x[2], y[2], angle, s, c, dx, dy, Ldx, Ldy; if (!GMT->current.map.frame.side[side]) re...
plot_fancy_frame_straight_outline
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_fancy_frame_straightlat_checkers(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n, bool secondary_too) { double v7; double v8; double v9; double v10; double v11; int v12; double v13; doubl...
GMT_LOCAL void plot_fancy_frame_straightlat_checkers (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, bool secondary_too) { int i, k, ny; unsigned int shade, item[2] = {GMT_TICK_UPPER, GMT_TICK_LOWER}; double dy, s1, val, v1, v2, x1, x2, y1, y2, shift_w[2], shift_e[2], scale[2];...
plot_fancy_frame_straightlat_checkers
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_fancy_frame_straightlon_checkers(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n, bool secondary_too) { double v7; double v8; double v9; double v10; double v11; int v12; double v13; doubl...
GMT_LOCAL void plot_fancy_frame_straightlon_checkers (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, bool secondary_too) { int i, k, nx; unsigned int shade, item[2] = {GMT_TICK_UPPER, GMT_TICK_LOWER}; double dx, w1, val, v1, v2, x1, x2, y1, y2, shift_s[2], shift_n[2], scale[2];...
plot_fancy_frame_straightlon_checkers
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_fancy_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n) { char dual; unsigned int cap; double fat_pen; dual = 0; cap = PSL->internal.line_cap; if ((GMT->current.setting.map_frame_type & 4) != 0) { PSL_setcolor(PSL, GMT->current.set...
GMT_LOCAL void plot_fancy_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { double fat_pen, thin_pen; bool dual = false; unsigned int cap = PSL->internal.line_cap; if (!(GMT->current.setting.map_frame_type & GMT_IS_FANCY)) { plot_wesn_map_boundary (GMT, PSL, w, ...
plot_fancy_map_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_flush_symbol_piece(GMT_CTRL *GMT, PSL_CTRL *PSL, double *x, double *y, uint64_t *n, GMT_PEN *p, GMT_FILL *f, unsigned int outline, bool *flush) { bool v9; bool draw_outline; v9 = outline && p->rgb[0] != -1.0; draw_outline = v9; if (v9) g...
GMT_LOCAL void plot_flush_symbol_piece (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double *x, double *y, uint64_t *n, struct GMT_PEN *p, struct GMT_FILL *f, unsigned int outline, bool *flush) { bool draw_outline; draw_outline = (outline && p->rgb[0] != -1) ? true : false; if (draw_outline) gmt_setpen (GMT, p); if...
plot_flush_symbol_piece
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_format_symbol_string(GMT_CTRL *GMT, GMT_CUSTOM_SYMBOL_ITEM *s, double *size, unsigned int *type, unsigned int start, char *text) { const char *v6; int v7; char *v8; unsigned int v9; char *v10; unsigned int v11; char *v12; unsigned i...
GMT_LOCAL void plot_format_symbol_string (struct GMT_CTRL *GMT, struct GMT_CUSTOM_SYMBOL_ITEM *s, double size[], unsigned int *type, unsigned int start, char *text) { unsigned int n; if (s->action == GMT_SYMBOL_TEXT) strcpy (text, s->string); else if (s->string[0] == '$' && strlen (s->string) == 2 ...
plot_format_symbol_string
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_gcircle_sub(GMT_CTRL *GMT, double lon0, double lat0, double azimuth, double length, GMT_SYMBOL *S, GMT_CIRCLE *C) { double v7; double v8; unsigned int justify; double x; double y; double double_tmp; double double_tmp_0; unsigned long v15; v15 = __readfsqword(0x28u); ...
GMT_LOCAL void plot_gcircle_sub (struct GMT_CTRL *GMT, double lon0, double lat0, double azimuth, double length, struct GMT_SYMBOL *S, struct GMT_CIRCLE *C) { int justify = PSL_vec_justify (S->v.status); double x, y; gmt_M_memset (C, 1, struct GMT_CIRCLE); if (S->v.status & PSL_VEC_JUST_S) { justify = 3; }...
plot_gcircle_sub
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int plot_genper_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n) { long v7; uint64_t nr; if (GMT->common.R.oblique) { plot_rect_map_boundary(GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[1], *(double *)((char *)&loc_12BD50...
GMT_LOCAL int plot_genper_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { uint64_t nr; gmt_M_unused(w); gmt_M_unused(e); gmt_M_unused(s); gmt_M_unused(n); if (GMT->common.R.oblique) { plot_rect_map_boundary (GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[XHI], GMT-...
plot_genper_map_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t plot_geo_polygon(GMT_CTRL *GMT, double *lon, double *lat, uint64_t n, bool init, const char *comment) { double v7; double v8; double v9; bool jump; char jumpa; char jumpb; _BOOL4 jump_dir; _BOOL4 jump_dira; _BOOL4 jump_dirb; uint64_t first; double *xp; double *...
GMT_LOCAL uint64_t plot_geo_polygon (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t n, bool init, const char *comment) { #define JUMP_L 0 #define JUMP_R 1 int jump_dir = JUMP_L; bool jump; uint64_t k, first, i, total = 0; double *xp = NULL, *yp = NULL; double (*x_on_border[2]) (struct G...
plot_geo_polygon
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t plot_geo_polygon_segment(GMT_CTRL *GMT, GMT_DATASEGMENT *S, bool add_pole, bool first, const char *comment) { double *v5; double *plon; double *plat; uint64_t n; double t_lat; uint64_t k; unsigned long v15; v15 = __readfsqword...
GMT_LOCAL uint64_t plot_geo_polygon_segment (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *S, bool add_pole, bool first, const char *comment) { uint64_t n = S->n_rows, k; double *plon = S->data[GMT_X], *plat = S->data[GMT_Y], t_lat; GMT_Report (GMT->parent, GMT_MSG_DEBUG, "Polar cap: %d\n", (int)add_pole); boo...
plot_geo_polygon_segment
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int plot_geo_vector_greatcircle(GMT_CTRL *GMT, double lon0, double lat0, double azimuth, double length, GMT_PEN *ppen, GMT_SYMBOL *S) { bool v7; bool v8; double v9; double v10; d...
GMT_LOCAL unsigned int plot_geo_vector_greatcircle (struct GMT_CTRL *GMT, double lon0, double lat0, double azimuth, double length, struct GMT_PEN *ppen, struct GMT_SYMBOL *S) { uint64_t n1, n2, n, add; int heads, side[2], outline = 0; unsigned int warn = 0; size_t n_alloc; bool perspective, pure; double ...
plot_geo_vector_greatcircle
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int plot_geo_vector_smallcircle(GMT_CTRL *GMT, double lon0, double lat0, double azimuth, double length, GMT_PEN *ppen, GMT_SYMBOL *S) { bool v7; bool v8; double v9; double v10; d...
GMT_LOCAL unsigned int plot_geo_vector_smallcircle (struct GMT_CTRL *GMT, double lon0, double lat0, double azimuth, double length, struct GMT_PEN *ppen, struct GMT_SYMBOL *S) { uint64_t n1, n2, n, add; int heads, side[2], outline = 0; unsigned int warn = 0; size_t n_alloc; bool perspective, pure; double ...
plot_geo_vector_smallcircle
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double plot_get_local_scale(GMT_CTRL *GMT, double lon0, double lat0, double length, double azimuth) { double tlon; double tlat; double x0; double y0; double x1; double y1[2]; *(_QWORD *)&y1[1] = __readfsqword(0x28u); gmtlib_get_point_from_r_az(GMT, lon0, lat0, length, azimut...
GMT_LOCAL double plot_get_local_scale (struct GMT_CTRL *GMT, double lon0, double lat0, double length, double azimuth) { double tlon, tlat, x0, y0, x1, y1; gmtlib_get_point_from_r_az (GMT, lon0, lat0, length, azimuth, &tlon, &tlat); gmt_geo_to_xy (GMT, lon0, lat0, &x0, &y0); gmt_geo_to_xy (GMT, tlon, tlat, &x...
plot_get_local_scale
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int plot_get_primary_annot(GMT_PLOT_AXIS *A) { unsigned int i; double s; unsigned int no[2]; double val[4]; *(_QWORD *)&val[3] = __readfsqword(0x28u); no[0] = 0; no[1] = 1; for (i = 0; i <= 1; ++i) { val[i] = 0.0; if (A->item[no[i]].active && A->item[no[i]].type != 105 && A->it...
GMT_LOCAL unsigned int plot_get_primary_annot (struct GMT_PLOT_AXIS *A) { unsigned int i, no[2] = {GMT_ANNOT_UPPER, GMT_ANNOT_LOWER}; double val[2], s; for (i = 0; i < 2; i++) { val[i] = 0.0; if (!A->item[no[i]].active || A->item[no[i]].type == 'i' || A->item[no[i]].type == 'I') continue; switch (A->item[n...
plot_get_primary_annot
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t plot_great_circle_arc(GMT_CTRL *GMT, double *A, double *B, double step, bool longway, double **xp, double **yp) { double v7; double v8; double v9; long v10; double v11; double v12; double stepb; size_t __k; uint64_t k; double c; double *xx; double *yy; u...
GMT_LOCAL uint64_t plot_great_circle_arc (struct GMT_CTRL *GMT, double *A, double *B, double step, bool longway, double **xp, double **yp) { uint64_t k, n; double P[3], X[3], R[3][3], R0[3][3], c, w, *xx = NULL, *yy = NULL; gmt_cross3v (GMT, A, B, P); gmt_normalize3v (GMT, P); c = d_acosd (gmt_dot3v (GMT, ...
plot_great_circle_arc
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
float plot_inch_to_degree_scale(GMT_CTRL *GMT) { double v1; double clon; double clat; double tlon; double tlat; double x1; double y1; double length; double x0; double y0; unsigned long v12; v12 = __readfsqword(0x28u); length = 0.001 * (GMT->common.R.wesn[3] - *(double *)((...
GMT_LOCAL float plot_inch_to_degree_scale (struct GMT_CTRL *GMT) { double clon, clat, tlon, tlat, x0, y0, x1, y1, length; float scale; length = 0.001 * (GMT->common.R.wesn[YHI] - GMT->common.R.wesn[YLO]); x0 = GMT->current.map.half_width; y0 = GMT->current.map.half_height; gmt_xy_to_geo (GMT, &clon, &clat...
plot_inch_to_degree_scale
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool plot_is_fancy_boundary(GMT_CTRL *GMT) { int projection; projection = GMT->current.proj.projection; if (projection > 407) goto LABEL_28; if (projection >= 404) return 0; if (projection == 403) return GMT->current.proj.polar && !GMT->common.R.oblique; if (projection >= 400 || projection == 3...
GMT_LOCAL bool plot_is_fancy_boundary (struct GMT_CTRL *GMT) { switch (GMT->current.proj.projection) { case GMT_LINEAR: return (gmt_M_is_geographic (GMT, GMT_IN)); break; case GMT_MERCATOR: case GMT_CYL_EQ: case GMT_CYL_EQDIST: case GMT_CYL_STEREO: case GMT_MILLER: return (true); break; case ...
plot_is_fancy_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_label_trim(char *label, int stage) { size_t v2; char *v3; int stagea; size_t i; stagea = stage; if (label && stage) { for (i = 0; stagea && label[i]; ++i) { if (!strchr("0123456789-+", label[i])) --stagea; } while (label[i]) { v2 = i++; v3 = &label[v2]; ...
GMT_LOCAL void plot_label_trim (char *label, int stage) { size_t i; if (!label) return; if (!stage) return; for (i = 0; stage && label[i]; i++) if (!strchr ("0123456789-+", label[i])) stage--; while (label[i]) label[stage++] = label[i++]; label[stage] = '\0'; }
plot_label_trim
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void plot_linear_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n) { int v6; int v7; int v8; unsigned int v9; unsigned int cap; double x_length; double y_length; cap = PSL->internal.line_cap; x_length = GMT->current.proj.rect[1] - ...
GMT_LOCAL void plot_linear_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) { unsigned int form, cap = PSL->internal.line_cap; double x_length, y_length; x_length = GMT->current.proj.rect[XHI] - GMT->current.proj.rect[XLO]; y_length = GMT->current.proj.rect[YHI] - G...
plot_linear_map_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0