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 |
|---|---|---|---|---|---|---|---|
void plot_linearx_oblgrid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n, double dval) {
bool cap;
unsigned int i;
unsigned int ia;
unsigned int j;
unsigned int ja;
unsigned int k;
unsigned int ka;
unsigned int nc1;
unsigned int nc2;
unsigned int idup;... | GMT_LOCAL void plot_linearx_oblgrid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, double dval) {
double *x = NULL, *lon = NULL, *lat = NULL, *lat_obl = NULL, tval, p_cap, s_cap;
unsigned int idup = 0, i, j, k, nx, np, nc1 = 0, nc2, npc, np1;
bool cap = false;
gmt_M_unused(PS... | plot_linearx_oblgrid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_lineary_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n, double dval) {
char *v7;
unsigned int i;
unsigned int ia;
unsigned int ny;
double *y;
char *type;
unsigned long v13;
v13 = __readfsqword(0x28u);
y = 0;
if (GMT->current.io.col_type[0]... | GMT_LOCAL void plot_lineary_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, double dval) {
double *y = NULL;
char *type = (gmt_M_y_is_lat (GMT, GMT_IN)) ? "parallel" : "y";
unsigned int i, ny;
if (GMT->current.proj.z_down) {
ny = gmtlib_linear_array (GMT, 0.0, n-s, dval,... | plot_lineary_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_lineary_oblgrid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n, double dval) {
unsigned int i;
unsigned int k;
unsigned int ka;
unsigned int kb;
unsigned int ny;
unsigned int np;
double *y;
double *lon_obl;
double *lon;
double *lat;
double ... | GMT_LOCAL void plot_lineary_oblgrid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, double dval) {
double *y = NULL, *lon = NULL, *lon_obl = NULL, *lat = NULL, tval, p_cap;
bool cap;
unsigned int i, k, ny, np;
gmt_M_unused(PSL); gmt_M_unused(s); gmt_M_unused(n);
ny = g... | plot_lineary_oblgrid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_logx_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s,
double n, double dval) {
unsigned int nx;
double *x[2];
x[1] = (double *)__readfsqword(0x28u);
x[0] = 0;
nx = gmtlib_log_array(GMT, w, e, dval, x);
plot_x_grid(GMT, PSL, s, n, x[0], nx);
if (nx)
gmt_fr... | GMT_LOCAL void plot_logx_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, double dval) {
unsigned int nx;
double *x = NULL;
nx = gmtlib_log_array (GMT, w, e, dval, &x);
plot_x_grid (GMT, PSL, s, n, x, nx);
if (nx) gmt_M_free (GMT, x);
} | plot_logx_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_logy_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s,
double n, double dval) {
unsigned int ny;
double *y[2];
y[1] = (double *)__readfsqword(0x28u);
y[0] = 0;
ny = gmtlib_log_array(GMT, s, n, dval, y);
plot_y_grid(GMT, PSL, w, e, y[0], ny);
if (ny)
gmt_fr... | GMT_LOCAL void plot_logy_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, double dval) {
unsigned int ny;
double *y = NULL;
ny = gmtlib_log_array (GMT, s, n, dval, &y);
plot_y_grid (GMT, PSL, w, e, y, ny);
if (ny) gmt_M_free (GMT, y);
} | plot_logy_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_annotate(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n) {
int v6;
int v7;
int v8;
bool v9;
bool v10;
bool v11;
bool v12;
double v13;
double v14;
unsigned int v15;
unsigned int v16;
bool v17;
bool do_minutes;
bool do_minutesa;
bool... | GMT_LOCAL void plot_map_annotate (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
unsigned int i, k, nx, ny, last, form, remove[2] = {0,0}, trim, add;
bool do_minutes, do_seconds, done_Greenwich, done_Dateline, check_edges;
bool full_lat_range, proj_A, proj_B, annot_0_and_360 = ... | plot_map_annotate | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n) {
int projection;
if ((GMT->current.map.frame.draw || !GMT->current.proj.projection) &&
!*((_BYTE *)&loc_12E426 + (_QWORD)GMT)) {
PSL_comment(PSL, "Map boundaries\n");
projection = GMT-... | GMT_LOCAL void plot_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
if (!GMT->current.map.frame.draw && GMT->current.proj.projection != GMT_LINEAR) return;
if (GMT->current.map.frame.no_frame) return;
PSL_comment (PSL, "Map boundaries\n");
switch (GMT->current... | plot_map_boundary | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_gridcross(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n) {
const char *v6;
double v7;
double v8;
double v9;
double cosx;
double sinx;
double na;
double sa;
double ea;
double wa;
PSL_CTRL *PSLa;
GMT_CTRL *GMTa;
unsigned int i;
unsig... | GMT_LOCAL void plot_map_gridcross (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
unsigned int i, j, k, nx, ny, item[2] = {GMT_GRID_UPPER, GMT_GRID_LOWER};
double x0, y0, x1, y1, xa, xb, ya, yb, xi, yj, *x = NULL, *y = NULL;
double x_angle, y_angle, Ca, Sa, L;
for (k = i = 0;... | plot_map_gridcross | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_gridlines(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n) {
const char *v6;
bool reset;
unsigned int k;
unsigned int np;
unsigned int npa;
double *v;
double dx_0;
double dy;
unsigned int item[2];
unsigned long v16;
v16 = __readfsqword(0x... | GMT_LOCAL void plot_map_gridlines (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
unsigned int k, np, item[2] = {GMT_GRID_UPPER, GMT_GRID_LOWER};
double dx, dy, *v = NULL;
bool reset = false;
GMT_Report (GMT->parent, GMT_MSG_DEBUG, "Entering plot_map_gridlines\n");
reset = g... | plot_map_gridlines | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_latline(GMT_CTRL *GMT, PSL_CTRL *PSL, double lat, double west,
double east) {
double *llon;
double *llat;
uint64_t nn;
unsigned long v8;
v8 = __readfsqword(0x28u);
llon = 0;
llat = 0;
nn = gmtlib_latpath(GMT, lat, west, east, &llon, &llat);
GMT->current.plot.n = gm... | GMT_LOCAL void plot_map_latline (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double lat, double west, double east) {
uint64_t nn;
double *llon = NULL, *llat = NULL;
#ifdef DEBUG
uint64_t k;
FILE *fp = NULL;
char name[GMT_LEN64] = {""};
if (GMT->hidden.gridline_debug && (GMT->hidden.gridline_kind == 'x' || GMT->... | plot_map_latline | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_lattick(GMT_CTRL *GMT, PSL_CTRL *PSL, double lat, double west,
double east, double len) {
unsigned int i;
unsigned int nc;
GMT_XINGS *xings[2];
xings[1] = (GMT_XINGS *)__readfsqword(0x28u);
xings[0] = 0;
nc = gmtlib_map_latcross(GMT, lat, west, east, xings);
for (i = 0... | GMT_LOCAL void plot_map_lattick (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double lat, double west, double east, double len) {
unsigned int i, nc;
struct GMT_XINGS *xings = NULL;
nc = gmtlib_map_latcross (GMT, lat, west, east, &xings);
for (i = 0; i < nc; i++)
plot_map_tick (GMT, PSL, xings[i].xx, xings[i].yy... | plot_map_lattick | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_lonline(GMT_CTRL *GMT, PSL_CTRL *PSL, double lon, double south,
double north) {
double *llon;
double *llat;
uint64_t nn;
unsigned long v8;
v8 = __readfsqword(0x28u);
llon = 0;
llat = 0;
nn = gmtlib_lonpath(GMT, lon, south, north, &llon, &llat);
GMT->current.plot.n ... | GMT_LOCAL void plot_map_lonline (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double lon, double south, double north) {
uint64_t nn;
double *llon = NULL, *llat = NULL;
#ifdef DEBUG
uint64_t k;
FILE *fp = NULL;
char name[GMT_LEN64] = {""};
if (GMT->hidden.gridline_debug && (GMT->hidden.gridline_kind == 'y' || GMT-... | plot_map_lonline | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_lontick(GMT_CTRL *GMT, PSL_CTRL *PSL, double lon, double south,
double north, double len) {
unsigned int i;
unsigned int nc;
GMT_XINGS *xings[2];
xings[1] = (GMT_XINGS *)__readfsqword(0x28u);
xings[0] = 0;
nc = gmtlib_map_loncross(GMT, lon, south, north, xings);
for (i... | GMT_LOCAL void plot_map_lontick (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double lon, double south, double north, double len) {
unsigned int i, nc;
struct GMT_XINGS *xings = NULL;
nc = gmtlib_map_loncross (GMT, lon, south, north, &xings);
for (i = 0; i < nc; i++)
plot_map_tick (GMT, PSL, xings[i].xx, xings[i]... | plot_map_lontick | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_symbol(GMT_CTRL *GMT, PSL_CTRL *PSL, double *xx, double *yy,
unsigned int *sides, double *line_angles, char *label,
unsigned int nx, unsigned int type, bool annot,
unsigned int level, unsigned int form) {
double v12;
double v13;
double v... | GMT_LOCAL void plot_map_symbol (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double *xx, double *yy, unsigned int *sides, double *line_angles, char *label, unsigned int nx, unsigned int type, bool annot, unsigned int level, unsigned int form) {
double line_angle, text_angle, div, tick_length, o_len, len, ca, sa;
un... | plot_map_symbol | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_symbol_ew(GMT_CTRL *GMT, PSL_CTRL *PSL, double lat, char *label,
double west, double east, bool annot,
unsigned int level, unsigned int form) {
unsigned int i;
unsigned int nc;
GMT_XINGS *xings[2];
xings[1] = (GMT_XINGS *)__readfsqword(0x28u);
xin... | GMT_LOCAL void plot_map_symbol_ew (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double lat, char *label, double west, double east, bool annot, unsigned int level, unsigned int form) {
unsigned int i, nc;
struct GMT_XINGS *xings = NULL;
nc = gmtlib_map_latcross (GMT, lat, west, east, &xings);
for (i = 0; i < nc; i++... | plot_map_symbol_ew | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_symbol_ns(GMT_CTRL *GMT, PSL_CTRL *PSL, double lon, char *label,
double south, double north, bool annot,
unsigned int level, unsigned int form) {
bool v9;
bool flip;
unsigned int i;
unsigned int k;
unsigned int nc;
GMT_XINGS *xings[2];
xings[1... | GMT_LOCAL void plot_map_symbol_ns (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double lon, char *label, double south, double north, bool annot, unsigned int level, unsigned int form) {
unsigned int i, k, nc;
struct GMT_XINGS *xings = NULL;
bool flip = (GMT->current.io.col_type[GMT_IN][GMT_X] == GMT_IS_LON && GMT->cu... | plot_map_symbol_ns | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_tick(GMT_CTRL *GMT, PSL_CTRL *PSL, double *xx, double *yy,
unsigned int *sides, double *angles, unsigned int nx,
unsigned int type, double len) {
bool v9;
double v10;
double v11;
double v12;
double cosx;
double sinx;
double lena;
double *anglesa;
uns... | GMT_LOCAL void plot_map_tick (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double *xx, double *yy, unsigned int *sides, double *angles, unsigned int nx, unsigned int type, double len) {
double angle, xl, yl, c, s, tick_length;
unsigned int i;
bool set_angle;
set_angle = ((!GMT->common.R.oblique && !(gmt_M_is_az... | plot_map_tick | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_tickitem(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n, unsigned int item) {
bool v7;
bool v8;
bool do_x;
bool do_y;
unsigned int i;
unsigned int ia;
unsigned int ib;
unsigned int nx;
unsigned int ny;
double *val;
double len;
double shi... | GMT_LOCAL void plot_map_tickitem (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, unsigned int item) {
unsigned int i, nx, ny;
bool do_x, do_y;
double dx, dy, *val = NULL, len, shift = 0.0;
if (! (GMT->current.map.frame.axis[GMT_X].item[item].active || GMT->current.map.frame.axi... | plot_map_tickitem | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_map_tickmarks(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n) {
double na;
double sa;
double ea;
double wa;
if (GMT->current.io.col_type[0][0] == 4 &&
GMT->current.io.col_type[0][1] == 2 ||
GMT->current.proj.projection == 350) {
PSL_... | GMT_LOCAL void plot_map_tickmarks (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
if (!(gmt_M_is_geographic (GMT, GMT_IN) || GMT->current.proj.projection == GMT_POLAR)) return;
PSL_comment (PSL, "Map tickmarks\n");
gmt_setpen (GMT, &GMT->current.setting.map_tick_pen[GMT_P... | plot_map_tickmarks | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_northstar(GMT_CTRL *GMT, PSL_CTRL *PSL, double x0, double y0,
double r) {
double cosx;
double sinx;
double ra;
double y0a;
double x0a;
PSL_CTRL *PSLa;
GMT_CTRL *GMTa;
unsigned int a;
double s;
double c;
double r2;
double dir;
double dir2;
double x[4];
double y... | GMT_LOCAL void plot_northstar (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x0, double y0, double r) {
unsigned int a;
double r2, x[4], y[4], dir, dir2, s, c;
r2 = r * 0.3;
for (a = 0; a <= 360; a += 72) {
x[0] = x[3] = x0, y[0] = y[3] = y0;
dir = 90.0 - (double)a;
sincosd (dir, &s, &c);
x[1] =... | plot_northstar | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_oblmrc_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n) {
plot_rect_map_boundary(GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[1],
*(double *)((char *)&loc_12BD50 + (_QWORD)GMT));
} | GMT_LOCAL void plot_oblmrc_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);
plot_rect_map_boundary (GMT, PSL, 0.0, 0.0, GMT->current.proj.rect[XHI], GMT->current.proj.rect[YHI]);
} | plot_oblmrc_map_boundary | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_plot_vector_head(GMT_CTRL *GMT, double *xp, double *yp, uint64_t n,
GMT_SYMBOL *S) {
uint64_t na;
bool close;
unsigned int cap;
unsigned int n_use;
unsigned int n_usea;
uint64_t start;
uint64_t nin;
unsigned int *pin;
double *xin;
double *yin;
double *xtmp;
d... | GMT_LOCAL void plot_plot_vector_head (struct GMT_CTRL *GMT, double *xp, double *yp, uint64_t n, struct GMT_SYMBOL *S) {
uint64_t start = 0, nin = 0;
unsigned int n_use, *pin = NULL;
unsigned int cap = GMT->PSL->internal.line_cap;
double *xin = NULL, *yin = NULL;
if ((GMT->current.plot.n = gmt_geo_to_xy_line... | plot_plot_vector_head | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_polar_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_polar_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_polar_map_boundary | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_powx_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s,
double n, double dval) {
unsigned int nx;
double *x[2];
x[1] = (double *)__readfsqword(0x28u);
x[0] = 0;
nx = gmtlib_pow_array(GMT, w, e, dval, 0, x);
plot_x_grid(GMT, PSL, s, n, x[0], nx);
if (nx)
gmt... | GMT_LOCAL void plot_powx_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, double dval) {
unsigned int nx;
double *x = NULL;
nx = gmtlib_pow_array (GMT, w, e, dval, 0, &x);
plot_x_grid (GMT, PSL, s, n, x, nx);
if (nx) gmt_M_free (GMT, x);
} | plot_powx_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_powy_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s,
double n, double dval) {
unsigned int ny;
double *y[2];
y[1] = (double *)__readfsqword(0x28u);
y[0] = 0;
ny = gmtlib_pow_array(GMT, s, n, dval, 1u, y);
plot_y_grid(GMT, PSL, w, e, y[0], ny);
if (ny)
gm... | GMT_LOCAL void plot_powy_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, double dval) {
unsigned int ny;
double *y = NULL;
ny = gmtlib_pow_array (GMT, s, n, dval, 1, &y);
plot_y_grid (GMT, PSL, w, e, y, ny);
if (ny) gmt_M_free (GMT, y);
} | plot_powy_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_rect_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double x0, double y0,
double x1, double y1) {
unsigned int cap;
cap = PSL->internal.line_cap;
gmt_setpen(GMT, &GMT->current.setting.map_frame_pen);
PSL_setlinecap(PSL, 2);
if (GMT->current.map.frame.side[3])
PSL_plotseg... | GMT_LOCAL void plot_rect_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x0, double y0, double x1, double y1) {
unsigned int cap = PSL->internal.line_cap;
gmt_setpen (GMT, &GMT->current.setting.map_frame_pen);
PSL_setlinecap (PSL, PSL_SQUARE_CAP);
if (GMT->current.map.frame.side[W_SIDE]) PSL_pl... | plot_rect_map_boundary | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_reverse_polygon(GMT_CTRL *GMT, GMT_DATASEGMENT *S) {
uint64_t k;
uint64_t n1;
double double_tmp;
long double_tmp_0;
n1 = S->n_rows - 1;
GMT_Report(GMT->parent, 6u, "Make polygon to clockwise\n");
for (k = 0; k < S->n_rows >> 1; ++k) {
double_tmp = (*S->data)[k];
(*S->data)[k] = (*S->dat... | GMT_LOCAL void plot_reverse_polygon (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *S) {
uint64_t k, n1 = S->n_rows - 1;
GMT_Report (GMT->parent, GMT_MSG_DEBUG, "Make polygon to clockwise\n");
for (k = 0; k < S->n_rows/2; k++) {
gmt_M_double_swap (S->data[GMT_X][k], S->data[GMT_X][n1-k]);
gmt_M_double_swap (S->... | plot_reverse_polygon | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_rounded_framecorners(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;
unsigned int k;
unsigned int kn;
double x1;
double y1;
double x2;
double y2;
double x;
double y;
d... | GMT_LOCAL void plot_rounded_framecorners (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, bool secondary_too) {
unsigned int k, kn;
double x1, y1, x2, y2, anglew, anglee, x, y, width;
if (GMT->current.setting.map_frame_type != GMT_IS_ROUNDED) return;
gmt_geo_to_xy (GMT, w, n, ... | plot_rounded_framecorners | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_savepen(GMT_CTRL *GMT, GMT_PEN *pen) {
PSL_CTRL *PSL;
PSL = GMT->PSL;
if (pen) {
pen->width = PSL->current.linewidth;
pen->offset = PSL->current.offset;
if (PSL->current.style[0])
strncpy(pen->style, PSL->current.style, 0x7Fu);
else
memset(pen->style, 0, sizeof(pen->style));... | GMT_LOCAL void plot_savepen (struct GMT_CTRL *GMT, struct GMT_PEN *pen) {
struct PSL_CTRL *PSL = GMT->PSL;
if (!pen) return;
pen->width = PSL->current.linewidth;
pen->offset = PSL->current.offset;
if (PSL->current.style[0])
strncpy (pen->style, PSL->current.style, GMT_PEN_LEN-1);
else
memset (pen->style, 0,... | plot_savepen | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_scircle_sub(GMT_CTRL *GMT, double lon0, double lat0, double angle_1,
double angle_2, GMT_SYMBOL *S, GMT_CIRCLE *C) {
double v7;
double v8;
double v9;
signed int justify;
double M[4];
double R[3][3];
unsigned long v15;
v15 = __readfsqword(0x28u);
justify = (S->v.status ... | GMT_LOCAL void plot_scircle_sub (struct GMT_CTRL *GMT, double lon0, double lat0, double angle_1, double angle_2, struct GMT_SYMBOL *S, struct GMT_CIRCLE *C) {
int justify = PSL_vec_justify (S->v.status);
double R[3][3], M[3];
gmt_M_memset (C, 1, struct GMT_CIRCLE);
gmt_geo_to_cart (GMT, lat0, lon0, M, t... | plot_scircle_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool plot_set_do_seconds(GMT_CTRL *GMT, double inc) {
double v3;
if (GMT->current.plot.calclock.geo.order[2] == -1)
return 0;
if (*(_DWORD *)((char *)&loc_12E6A0 + (_QWORD)GMT))
return 1;
v3 = fmod(inc, 1.0) * 60.0;
return fabs(fmod(v3, 1.0) * 60.0) >= 1.0;
} | GMT_LOCAL bool plot_set_do_seconds (struct GMT_CTRL *GMT, double inc) {
if (GMT->current.plot.calclock.geo.order[2] == -1) return (false);
if (GMT->current.plot.calclock.geo.n_sec_decimals > 0) return (true);
if (fabs (60.0 * fmod (fmod (inc, 1.0) * 60.0, 1.0)) >= 1.0) return (true);
return (false);
} | plot_set_do_seconds | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double plot_shift_gridline(GMT_CTRL *GMT, double val, unsigned int type) {
double vala;
double shift;
vala = val;
shift = 0.0;
if (!GMT->common.R.oblique)
return 0.0;
if (type) {
if (doubleAlmostEqualUlpsAndAbs(
val, *(double *)((char *)&stru_21390.r_offset + (_QWORD)GMT),
1... | GMT_LOCAL double plot_shift_gridline (struct GMT_CTRL *GMT, double val, unsigned int type) {
double shift = 0.0;
if (!GMT->common.R.oblique) return shift;
if (type == GMT_X) {
if (gmt_M_360_range (val, GMT->common.R.wesn_orig[XLO])) val = GMT->common.R.wesn_orig[XLO];
else if (gmt_M_360_range (val, GMT->c... | plot_shift_gridline | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool plot_skip_second_annot(unsigned int item, double x, double *x2,
unsigned int n, unsigned int primary) {
bool found;
unsigned int i;
if (n <= 1)
return 0;
if (item == primary)
return 0;
if (!x2)
return 0;
i = 0;
for (found = 0;
!found && i<n; found = 0.0... | GMT_LOCAL bool plot_skip_second_annot (unsigned int item, double x, double x2[], unsigned int n, unsigned int primary) {
unsigned int i;
bool found;
double small;
if (n < 2) return (false);
if (item == primary) return (false);
if (!x2) return (false);
small = (x2[1] - x2[0]) * GMT_CONV4_LIMIT;
for (i = ... | plot_skip_second_annot | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t plot_small_circle_arc(GMT_CTRL *GMT, double *A, double step, double *P,
double rot, double **xp, double **yp) {
double v7;
long v8;
double v9;
double v10;
double stepa;
double stepb;
size_t __k;
uint64_t k;
double *xx;
double *yy;
uint64_t n;
size_t *__kp;... | GMT_LOCAL uint64_t plot_small_circle_arc (struct GMT_CTRL *GMT, double *A, double step, double P[], double rot, double **xp, double **yp) {
uint64_t k, n;
double X[3], R[3][3], R0[3][3], w, *xx = NULL, *yy = NULL;
if (gmt_M_is_zero (step)) step = GMT->current.map.path_step;
n = lrint (ceil (fabs (rot) / step)... | plot_small_circle_arc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double plot_smallcircle_az(GMT_CTRL *GMT, double *P, GMT_SYMBOL *S) {
double xlon1;
double xlat1;
double xlon2;
double xlat2;
double X[4];
double R[3][3];
unsigned long v11;
v11 = __readfsqword(0x28u);
gmt_make_rot_matrix(GMT, S->v.pole[0], S->v.pole[1], -0.005, R);
gmt_matrix_vect_mult(GMT, 3u, R,... | GMT_LOCAL double plot_smallcircle_az (struct GMT_CTRL *GMT, double P[], struct GMT_SYMBOL *S) {
double R[3][3], X[3], xlon1, xlat1, xlon2, xlat2, az;
gmt_make_rot_matrix (GMT, S->v.pole[GMT_X], S->v.pole[GMT_Y], -0.005, R);
gmt_matrix_vect_mult (GMT, 3U, R, P, X);
gmt_cart_to_geo (GMT, &xlat1, &xlon1, X, true)... | plot_smallcircle_az | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_theta_r_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n) {
long v6;
double v7;
uint64_t v8;
double v9;
double v10;
double v11;
long v12;
long v13;
int close;
uint64_t i;
uint64_t ia;
uint64_t nr;
double da;
double xx[... | GMT_LOCAL void plot_theta_r_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
uint64_t i, nr;
int close = 0;
double a, da;
double xx[2], yy[2];
gmt_setpen (GMT, &GMT->current.setting.map_frame_pen);
if (GMT->current.proj.got_elevations) {
if (doubleAlmostEqual... | plot_theta_r_map_boundary | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_timestamp(GMT_CTRL *GMT, PSL_CTRL *PSL, double x, double y,
unsigned int justify, char *U_label) {
struct tm *v6;
int v7;
time_t right_now;
double dim[4];
double unset_rgb[4];
char label[256];
char text[264];
unsigned long v15;
v15 = __readfsqword(0x28u);
memset(label,... | GMT_LOCAL void plot_timestamp (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x, double y, unsigned int justify, char *U_label) {
time_t right_now;
char label[GMT_LEN256] = {""}, text[GMT_LEN256] = {""};
double dim[3] = {0.365, 0.15, 0.032};
double unset_rgb[4] = {-1.0, -1.0, -1.0, 0.0};
right... | plot_timestamp | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_timex_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s,
double n, unsigned int item) {
unsigned int nx;
double *x[2];
x[1] = (double *)__readfsqword(0x28u);
x[0] = 0;
nx = gmtlib_time_array(GMT, w, e, &GMT->current.map.frame.axis[0].item[item],
... | GMT_LOCAL void plot_timex_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, unsigned int item) {
unsigned int nx;
double *x = NULL;
nx = gmtlib_time_array (GMT, w, e, &GMT->current.map.frame.axis[GMT_X].item[item], &x);
plot_x_grid (GMT, PSL, s, n, x, nx);
if (nx) gmt_M_fre... | plot_timex_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_timey_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s,
double n, unsigned int item) {
unsigned int ny;
double *y[2];
y[1] = (double *)__readfsqword(0x28u);
y[0] = 0;
ny = gmtlib_time_array(GMT, s, n, &GMT->current.map.frame.axis[1].item[item],
... | GMT_LOCAL void plot_timey_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, unsigned int item) {
unsigned int ny;
double *y = NULL;
ny = gmtlib_time_array (GMT, s, n, &GMT->current.map.frame.axis[GMT_Y].item[item], &y);
plot_y_grid (GMT, PSL, w, e, y, ny);
if (ny) gmt_M_fre... | plot_timey_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_vertical_wall(GMT_CTRL *GMT, PSL_CTRL *PSL, int quadrant,
double *nesw, bool back) {
unsigned int plane;
plane = ((((quadrant + 1) >> 31 < 0) + (_BYTE)quadrant + 1) & 1) -
((unsigned int)(quadrant + 1) >> 31);
gmt_plane_perspective(GMT, plane, nesw[quadrant % 4]);
PS... | GMT_LOCAL void plot_vertical_wall (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, int quadrant, double *nesw, bool back) {
int plane = (quadrant + 1) % 2;
gmt_plane_perspective (GMT, plane, nesw[quadrant % 4]);
PSL_plotbox (PSL, nesw[(quadrant+1)%4], GMT->current.proj.zmin, nesw[(quadrant+3)%4], GMT->current.proj.zmax)... | plot_vertical_wall | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_wesn_map_boundary(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e,
double s, double n) {
long v6;
int this;
int thisa;
int next;
int nexta;
unsigned int flag;
double *xx;
double *yy;
uint64_t i;
uint64_t n_sides;
uint64_t n_set;
uint64_t np;
double lonsta... | GMT_LOCAL void plot_wesn_map_boundary (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n) {
uint64_t i, n_sides = 0, np = 0, n_set = 0;
int this, next = -1, flag;
double lonstart[4] = {w, e, e, w}, lonstop[4] = {e, e, w, w};
double latstart[4] = {s, s, n, n}, latstop[4] = {s, n, ... | plot_wesn_map_boundary | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_wiggle(GMT_CTRL *GMT, PSL_CTRL *PSL, double *x, double *y, double *z,
uint64_t n_in, double zscale, unsigned int adjust_az,
double start_az, double stop_az, int fixed, double fix_az,
GMT_FILL *fill, GMT_PEN *pen_o, GMT_PEN *pen_t,
int paint_w... | GMT_LOCAL void plot_wiggle (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double *x, double *y, double *z, uint64_t n_in, double zscale, unsigned int adjust_az, double start_az, double stop_az, int fixed, double fix_az, struct GMT_FILL *fill, struct GMT_PEN *pen_o, struct GMT_PEN *pen_t, int paint_wiggle, int negative, i... | plot_wiggle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_x_errorbar(GMT_CTRL *GMT, PSL_CTRL *PSL, double x, double y,
double *delta_x, double error_width2, int line, int kind) {
unsigned int second;
double x_1;
double x_2;
double y_1;
double y_2[2];
*(_QWORD *)&y_2[1] = __readfsqword(0x28u);
second = kind == 2;
j_gmt_geo_to_xy(... | GMT_LOCAL void plot_x_errorbar (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x, double y, double delta_x[], double error_width2, int line, int kind) {
double x_1, x_2, y_1, y_2;
bool tip1, tip2;
unsigned int first = 0, second = (kind == EBAR_ASYMMETRICAL) ? 1 : 0;
tip1 = tip2 = (error_width2 > 0.0);
gmt_ge... | plot_x_errorbar | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_x_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double s, double n, double *x,
unsigned int nx) {
unsigned int i;
double x1;
double y1;
double x2;
double y2[2];
*(_QWORD *)&y2[1] = __readfsqword(0x28u);
for (i = 0; i < nx; ++i) {
if (GMT->current.io.col_type[0][0] == 4 &&
GMT-... | GMT_LOCAL void plot_x_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double s, double n, double *x, unsigned int nx) {
unsigned int i;
double x1, y1, x2, y2;
for (i = 0; i < nx; i++) {
if (gmt_M_is_geographic (GMT, GMT_IN))
plot_map_lonline (GMT, PSL, x[i], s, n);
else {
gmt_geo_to_xy (GMT, x[i], s, &x... | plot_x_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_x_whiskerbar(GMT_CTRL *GMT, PSL_CTRL *PSL, double x, double y,
double *hinge, double error_width2, double *rgb,
int line, int kind) {
double v9;
double v10;
unsigned int i;
double s;
double xx[4];
double yy[4];
double xp[10];
double yp[12];
*(_Q... | GMT_LOCAL void plot_x_whiskerbar (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x, double y, double hinge[], double error_width2, double rgb[], int line, int kind) {
unsigned int i;
static unsigned int q[4] = {0, 25, 75, 100};
double xx[4], yy[4];
for (i = 0; i < 4; i++) {
gmt_geo_to_xy (GMT, hinge[i], y, ... | plot_x_whiskerbar | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_y_errorbar(GMT_CTRL *GMT, PSL_CTRL *PSL, double x, double y,
double *delta_y, double error_width2, int line, int kind) {
unsigned int second;
double x_1;
double x_2;
double y_1;
double y_2[2];
*(_QWORD *)&y_2[1] = __readfsqword(0x28u);
second = kind == 2;
j_gmt_geo_to_xy(... | GMT_LOCAL void plot_y_errorbar (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x, double y, double delta_y[], double error_width2, int line, int kind) {
double x_1, x_2, y_1, y_2;
bool tip1, tip2;
unsigned int first = 0, second = (kind == EBAR_ASYMMETRICAL) ? 1 : 0;
tip1 = tip2 = (error_width2 > 0.0);
gmt_ge... | plot_y_errorbar | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_y_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double *y,
unsigned int ny) {
unsigned int i;
double x1;
double y1;
double x2;
double y2[2];
*(_QWORD *)&y2[1] = __readfsqword(0x28u);
for (i = 0; i < ny; ++i) {
if (GMT->current.io.col_type[0][0] == 4 &&
GMT-... | GMT_LOCAL void plot_y_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double *y, unsigned int ny) {
unsigned int i;
double x1, y1, x2, y2;
for (i = 0; i < ny; i++) {
if (gmt_M_is_geographic (GMT, GMT_IN))
plot_map_latline (GMT, PSL, y[i], w, e);
else {
gmt_geo_to_xy (GMT, w, y[i], &x... | plot_y_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_y_whiskerbar(GMT_CTRL *GMT, PSL_CTRL *PSL, double x, double y,
double *hinge, double error_width2, double *rgb,
int line, int kind) {
double v9;
double v10;
unsigned int i;
double s;
double xx[4];
double yy[4];
double xp[10];
double yp[12];
*(_Q... | GMT_LOCAL void plot_y_whiskerbar (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x, double y, double hinge[], double error_width2, double rgb[], int line, int kind) {
unsigned int i;
static unsigned int q[4] = {0, 25, 75, 100};
double xx[4], yy[4];
for (i = 0; i < 4; i++) {
gmt_geo_to_xy (GMT, x, hinge[i], ... | plot_y_whiskerbar | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void plot_z_gridlines(GMT_CTRL *GMT, PSL_CTRL *PSL, double zmin, double zmax,
int plane) {
double v5;
double v6;
const char *v7;
unsigned int k;
unsigned int i;
unsigned int nz;
double *z;
double min;
double max;
double dz;
double zz;
unsigned int item[2];
char *plane_nam... | GMT_LOCAL void plot_z_gridlines (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double zmin, double zmax, int plane) {
unsigned int k, i, nz, item[2] = {GMT_GRID_UPPER, GMT_GRID_LOWER};
double dz, zz, min, max, *z = NULL;
char *plane_name[2] = {"y-z", "x-z"};
min = (plane == GMT_Y) ? GMT->current.proj.rect[XLO] : GMT... | plot_z_gridlines | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double polynomial(double x, unsigned int n) {
if (!n)
return 1.0;
if (n == 1)
return x;
return pow(x, (double)(int)n);
} | GMT_LOCAL double polynomial (double x, unsigned int n) {
if (n == 0) return 1.0;
if (n == 1) return x;
return (pow (x, (double)n));
} | polynomial | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void possibly_fill_or_outline_BoundingBox(GMT_CTRL *GMT, PS2R_A *A, FILE *fp) {
char *v3;
char *v4;
char *v5;
char *v6;
char *ptr;
char *ptra;
GMT->PSL->internal.dpp = 16.66666666666667;
if (A->paint) {
v3 = gmt_putrgb(GMT, A->fill.rgb);
GMT_Report(GMT->parent, 5u, "Paint background BoundingBox... | GMT_LOCAL void possibly_fill_or_outline_BoundingBox (struct GMT_CTRL *GMT, struct PS2R_A *A, FILE *fp) {
char *ptr = NULL;
GMT->PSL->internal.dpp = PSL_DOTS_PER_INCH / 72.0;
if (A->paint) {
GMT_Report (GMT->parent, GMT_MSG_LONG_VERBOSE, "Paint background BoundingBox using paint %s\n", gmt_putrgb (GMT, A->fill.... | possibly_fill_or_outline_BoundingBox | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int prep_options(GMTAPI_CTRL *API, GMT_OPTION **options,
GMT_OPTION **boptions) {
unsigned int k;
unsigned int n_axis;
GMT_OPTION *opt;
GMT_OPTION *opta;
GMT_OPTION *optb;
GMT_OPTION *optc;
GMT_OPTION *bopt;
char string[264];
unsigned long v13;
v13 = __readfsqword... | GMT_LOCAL unsigned int prep_options (struct GMTAPI_CTRL *API, struct GMT_OPTION **options, struct GMT_OPTION *boptions[]) {
unsigned int k, n_axis = 0;
struct GMT_OPTION *opt = NULL, *bopt = NULL;
char string[GMT_LEN256] = {""};
if ((opt = GMT_Find_Option (API, 'M', *options)) == NULL) {
if ((opt = GMT_Ma... | prep_options | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void prepare_polygon(GMT_CTRL *GMT, GMT_DATASEGMENT *P) {
uint64_t row;
double lon_sum;
double lat_sum;
double dlon;
lon_sum = 0.0;
lat_sum = 0.0;
gmt_set_seg_minmax(GMT, 4u, 0, P);
for (row = 1; row < P->n_rows; ++row) {
dlon = fmod((*P->data)[row] - (*P->data)[row - 1], 360.0);
if (fabs(dlon)... | GMT_LOCAL void prepare_polygon (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *P) {
uint64_t row;
double lon_sum = 0.0, lat_sum = 0.0, dlon;
gmt_set_seg_minmax (GMT, GMT_IS_POLY, 0, P);
for (row = 1; row < P->n_rows; row++) {
gmt_M_set_delta_lon (P->data[GMT_X][row-1], P->data[GMT_X][row], dlon);
lon_s... | prepare_polygon | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void print_altmode(GMTAPI_CTRL *API, int extrude, int fmode, int altmode,
int ntabs) {
char *RefLevel[5];
unsigned long v9;
v9 = __readfsqword(0x28u);
RefLevel[0] = "clampToGround";
RefLevel[1] = "relativeToGround";
RefLevel[2] = "absolute";
RefLevel[3] = "relativeToSeaFloor";
RefLev... | GMT_LOCAL void print_altmode (struct GMTAPI_CTRL *API, int extrude, int fmode, int altmode, int ntabs) {
char *RefLevel[5] = {"clampToGround", "relativeToGround", "absolute", "relativeToSeaFloor", "clampToSeaFloor"};
if (extrude) kml_print (API, ntabs, "<extrude>1</extrude>\n");
if (fmode) kml_print (API, ntabs, "<t... | print_altmode | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void process_cpu() {
rusage ru;
unsigned long v1;
v1 = __readfsqword(0x28u);
if (getrusage(__rusage_who_RUSAGE_SELF, &ru) != -1)
fprintf(stderr, "Tuser: %.3lfs Tsys: %.3lfs ",
(double)SLODWORD(ru.ru_utime.tv_sec) +
(double)SLODWORD(ru.ru_utime.tv_usec) / 1000000.0,
(... | static void process_cpu() {
struct rusage ru;
if (getrusage (RUSAGE_SELF, &ru) == -1 )
return;
fprintf (stderr, "Tuser: %.3lfs Tsys: %.3lfs ",
ru.ru_utime.tv_sec + ru.ru_utime.tv_usec / 1000000.0,
ru.ru_stime.tv_sec + ru.ru_stime.tv_usec / 1000000.0);
} | process_cpu | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void process_info() {
process_cpu();
process_mem();
} | static void process_info() {
process_cpu();
process_mem();
} | process_info | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void process_mem() {
double rss;
double vsize;
FILE *fp;
unsigned long v3;
v3 = __readfsqword(0x28u);
fp = fopen("/proc/self/statm", "r");
if (fp) {
if ((unsigned int)__isoc99_fscanf(fp, "%lf %lf", &vsize, &rss) == 2) {
fclose(fp);
rss = rss * ((double)(int)sysconf(30) / 1024.0);
vs... | static void process_mem() {
double rss, vsize;
#if defined(__APPLE__)
struct task_basic_info t_info;
mach_msg_type_number_t t_info_count = TASK_BASIC_INFO_COUNT;
if (KERN_SUCCESS != task_info(mach_task_self(), TASK_BASIC_INFO, (task_info_t)&t_info, &t_info_count))
return;
rss = t_info.resident_size / 1024.0... | process_mem | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int process_one(GMT_CTRL *GMT, char *record, GRDTRACK_CTRL *Ctrl,
unsigned int ng) {
int v5;
int v6;
unsigned int n_errors;
char line[4104];
unsigned long v11;
v11 = __readfsqword(0x28u);
memset(line, 0, 4096);
Ctrl->G.scale[ng] = 1.0;
if (!strchr(record, 44) || strchr(record, 63)) {
... | GMT_LOCAL int process_one (struct GMT_CTRL *GMT, char *record, struct GRDTRACK_CTRL *Ctrl, unsigned int ng) {
int j;
unsigned int n_errors = 0;
char line[GMT_BUFSIZ] = {""};
Ctrl->G.scale[ng] = 1.0;
if (strchr (record, ',') && !strchr (record, '?')) {
if ((j = sscanf (record, "%[^,],%lf,%d,%lf", line, &Ctrl->... | process_one | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void proj_check_R_J(GMT_CTRL *GMT, double *clon) {
double lon0;
if (!GMT->current.map.is_world ||
*clon == 0.5 * (GMT->common.R.wesn[0] + GMT->common.R.wesn[1])) {
if (!GMT->current.map.is_world) {
for (lon0 = *clon - 360.0; GMT->common.R.wesn[0] > lon0;
lon0 = lon0 + 360.0)
;
... | GMT_LOCAL void proj_check_R_J (struct GMT_CTRL *GMT, double *clon) {
double lon0 = 0.5 * (GMT->common.R.wesn[XLO] + GMT->common.R.wesn[XHI]);
if (GMT->current.map.is_world && lon0 != *clon) {
GMT->common.R.wesn[XLO] = *clon - 180.0;
GMT->common.R.wesn[XHI] = *clon + 180.0;
GMT_Report (GMT->parent, GMT_MSG_VE... | proj_check_R_J | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double proj_genper_getgeocentric(GMT_CTRL *GMT, double phi, double h) {
double v3;
double v5;
double cosx;
double sinx;
double ha;
double phia;
GMT_CTRL *GMTa;
double sphi;
double cphi;
double N1;
unsigned long v14;
GMTa = GMT;
phia = phi;
ha = h;
v14 = __readfsqword(0x28u);
sincos(phi ... | GMT_LOCAL double proj_genper_getgeocentric (struct GMT_CTRL *GMT, double phi, double h) {
double phig, sphi, cphi, N1;
sincosd (phi, &sphi, &cphi);
N1 = GMT->current.proj.EQ_RAD/sqrt(1.0 - (GMT->current.proj.ECC2*sphi*sphi));
phig = phi - asind(N1*GMT->current.proj.ECC2*sphi*cphi/((h/GMT->current.proj.EQ_RAD+1.0... | proj_genper_getgeocentric | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void proj_genper_setup(GMT_CTRL *GMT, double h0, double altitude, double lat,
double lon0) {
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double cosx;
double sinx;
double lon0a;
double lata;
double altitudea;
double h0a;
GMT_CTRL *GMTa;
int niter;... | GMT_LOCAL void proj_genper_setup (struct GMT_CTRL *GMT, double h0, double altitude, double lat, double lon0) {
double N1, phig_last;
double R, H, P;
double sphi1, cphi1, sphig, cphig;
double a, e2, phig;
int niter;
a = GMT->current.proj.EQ_RAD;
e2 = GMT->current.proj.ECC2;
h0 *= 1e3;
sincosd (lat, &sphi1... | proj_genper_setup | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void proj_genper_to_xtyt(GMT_CTRL *GMT, double angle, double x, double y,
double offset, double *xt, double *yt) {
double xp;
double yp;
double ypa;
double A;
A = GMT->current.proj.g_cos_tilt + GMT->current.proj.g_sin_tilt *
(GMT->current.proj... | GMT_LOCAL void proj_genper_to_xtyt (struct GMT_CTRL *GMT, double angle, double x, double y, double offset, double *xt, double *yt) {
double A, theta, xp, yp;
theta = GMT->current.proj.g_azimuth - angle;
A = (y * GMT->current.proj.g_cos_azimuth + x * GMT->current.proj.g_sin_azimuth) * GMT->current.proj.g_sin_tilt /... | proj_genper_to_xtyt | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int proj_genper_tolatlong(GMT_CTRL *GMT, double x, double y, double h,
double *lat, double *lon) {
double v6;
double v7;
double ha;
int niter;
double Kp;
double Kpa;
double X;
double Y;
double E;
double phi;
double sphi;
double H;
double P;
double R;
double one_m_... | GMT_LOCAL int proj_genper_tolatlong (struct GMT_CTRL *GMT, double x, double y, double h, double *lat, double *lon) {
double P, H, B, D;
double u, v, t, Kp, X, Y;
double E, S;
double phi_last;
double Kp2;
double phi, sphi;
double cphig;
double e2, R, one_m_e2;
double cphi1, sphi1;
int niter;
int set_exit = 0... | proj_genper_tolatlong | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void proj_genper_toxy(GMT_CTRL *P, double lat, double lon, double h, double *x,
double *y) {
double g_R;
double cosx;
double sinx;
double *ya;
double *xa;
double ha;
double lona;
double lata;
GMT_CTRL *Pa;
double xp;
double yp;
double sphi;
double cphi;
double sdlon;
... | GMT_LOCAL void proj_genper_toxy (struct GMT_CTRL *P, double lat, double lon, double h, double *x, double *y) {
double angle;
double xp, yp, rp;
double N, C, S, K;
double sphi, cphi;
double sdphi, cdphi;
double sphi1, cphi1;
double sdlon, cdlon;
cdphi = P->current.proj.g_cdphi;
sdphi = P->current.proj.g_sdphi;... | proj_genper_toxy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void proj_ipolyconic_sub(GMT_CTRL *GMT, double y, double lon, double *x) {
double v4;
double v5;
double v6;
double cosx;
double sinx;
double *xa;
double lona;
double ya;
GMT_CTRL *GMTa;
int n_iter;
double sp_0;
double cp;
double phi;
double phi0;
double E;
double delta;
unsigned long v... | GMT_LOCAL void proj_ipolyconic_sub (struct GMT_CTRL *GMT, double y, double lon, double *x) {
double E, sp, cp, phi0, phi, delta;
int n_iter = 0;
*x = lon;
gmt_M_wind_lon (GMT, *x);
y *= GMT->current.proj.i_EQ_RAD;
y += GMT->current.proj.pole * D2R;
if (GMT_PROJ_IS_ZERO (y))
*x *= GMT->current.proj.EQ_RAD * ... | proj_ipolyconic_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void proj_iwinkel_sub(GMT_CTRL *GMT, double y, double *phi) {
double cosx;
double sinx;
double *phia;
double ya;
GMT_CTRL *GMTa;
int n_iter;
double sp_0;
double cp;
double c;
double phi0;
double delta;
unsigned long v14;
GMTa = GMT;
ya = y;
phia = phi;
v14 = __readfsqword(0x28u);
n_it... | GMT_LOCAL void proj_iwinkel_sub (struct GMT_CTRL *GMT, double y, double *phi) {
int n_iter = 0;
double c, phi0, delta, sp, cp;
c = 2.0 * y * GMT->current.proj.i_EQ_RAD;
*phi = y * GMT->current.proj.i_EQ_RAD;
do {
phi0 = *phi;
sincos (phi0, &sp, &cp);
*phi = phi0 - (phi0 + M_PI_2 * sp - c) / (1.0 + M_PI_2 ... | proj_iwinkel_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double proj_robinson_spline(GMT_CTRL *GMT, double xp, double *x, double *y,
double *c) {
unsigned int interpolant;
int j;
double dx_0;
double h;
double a;
double b;
j = 0;
if (*x > xp || xp > x[18])
return GMT->session.d_NaN;
while (j <= 18 && xp >= x[j])
++j;
if... | GMT_LOCAL double proj_robinson_spline (struct GMT_CTRL *GMT, double xp, double *x, double *y, double *c) {
int j = 0, j1;
double yp, a, b, h, ih, dx;
if (xp < x[0] || xp > x[GMT_N_ROBINSON-1])
return (GMT->session.d_NaN);
while (j < GMT_N_ROBINSON && x[j] <= xp) j++;
if (j == GMT_N_ROBINSON) j--;
if (j > ... | proj_robinson_spline | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void protect_J(GMTAPI_CTRL *API, GMT_OPTION *options) {
GMT_OPTION *Option;
if (GMT_Find_Option(API, 74, options)) {
Option = GMT_Make_Option(API, 102, "0f,1f");
GMT_Append_Option(API, Option, options);
}
} | GMT_LOCAL void protect_J(struct GMTAPI_CTRL *API, struct GMT_OPTION *options) {
if (GMT_Find_Option (API, 'J', options) != NULL) {
#ifdef HAVE_GDAL
struct GMT_OPTION *opt = GMT_Make_Option (API, 'f', "0f,1f");
(void)GMT_Append_Option(API, opt, options);
#else
GMT_Report(API, GMT_MSG_NORMAL,
"Warning... | protect_J | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int pscontour_old_T_parser(GMT_CTRL *GMT, char *arg,
PSCONTOUR_CTRL *Ctrl) {
int j;
int n_errors;
char txt_a[256];
char txt_b[264];
unsigned long v9;
v9 = __readfsqword(0x28u);
n_errors = 0;
memset(txt_a, 0, sizeof(txt_a));
memset(txt_b, 0, 256);
if (str... | GMT_LOCAL unsigned int pscontour_old_T_parser (struct GMT_CTRL *GMT, char *arg, struct PSCONTOUR_CTRL *Ctrl) {
int n, j;
unsigned int n_errors = 0;
char txt_a[GMT_LEN256] = {""}, txt_b[GMT_LEN256] = {""};
if (strchr (arg, '/')) {
n = sscanf (arg, "%[^/]/%[^:]", txt_a, txt_b);
if (n == 2) {
Ctrl->T.dim[G... | pscontour_old_T_parser | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *ptrvoid(char **p) { return *p; } | GMT_LOCAL char *ptrvoid (char ** p) {
return *p;
} | ptrvoid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int quick_idist(int x1, int y1, int x2, int y2) {
int v4;
int y2a;
int x2a;
x2a = x2 - x1;
if (x2 - x1 < 0)
x2a = x1 - x2;
y2a = y2 - y1;
if (y2 - y1 < 0)
y2a = y1 - y2;
v4 = y2a;
if (x2a <= y2a)
v4 = x2a;
return y2a + x2a - (v4 >> 1);
} | GMT_LOCAL int quick_idist (int x1, int y1, int x2, int y2) {
if ((x2 -= x1) < 0) x2 = -x2;
if ((y2 -= y1) < 0) y2 = -y2;
return (x2 + y2 - (((x2 > y2) ? y2 : x2) >> 1));
} | quick_idist | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t radix2(uint64_t n) {
uint64_t log2n;
for (log2n = 1; n > 1LL << log2n; ++log2n)
;
if (n == 1LL << log2n)
return log2n;
else
return 0;
} | static inline uint64_t radix2 (uint64_t n) {
uint64_t log2n = 1ULL;
while ( 1ULL<<log2n < n ) ++log2n;
if (n == 1ULL<<log2n)
return log2n;
return 0ULL;
} | radix2 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int read_data_surface(GMT_CTRL *GMT, SURFACE_INFO *C, GMT_OPTION *options) {
double v4;
double v5;
float v6;
float v7;
float v8;
float v9;
float v10;
float v11;
double v12;
unsigned int verbose;
int i;
int error;
int j;
long k;
uint64_t kmax;
uint64_t kmin;
uint64_t n_dup;
double zmi... | GMT_LOCAL int read_data_surface (struct GMT_CTRL *GMT, struct SURFACE_INFO *C, struct GMT_OPTION *options) {
int i, j, error;
uint64_t k, kmax = 0, kmin = 0, n_dup = 0;
double *in, half_dx, zmin = DBL_MAX, zmax = -DBL_MAX, wesn_lim[4];
struct GMT_GRID_HEADER *h = C->Grid->header;
GMT_Report (GMT->parent, GMT_MS... | read_data_surface | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int read_data_trend1d(GMT_CTRL *GMT, TREND1D_DATA **data, uint64_t *n_data,
double *xmin, double *xmax, int weighted_input,
double **work) {
TREND1D_DATA *v8;
double v9;
uint64_t i;
size_t n_alloc;
double *in;
n_alloc = 0x200000;
*data = (TREND1D_DATA *)gmt_mem... | GMT_LOCAL int read_data_trend1d (struct GMT_CTRL *GMT, struct TREND1D_DATA **data, uint64_t *n_data, double *xmin, double *xmax, int weighted_input, double **work) {
uint64_t i;
size_t n_alloc = GMT_INITIAL_MEM_ROW_ALLOC;
double *in = NULL;
*data = gmt_M_memory (GMT, NULL, n_alloc, struct TREND1D_DATA);
i = 0;
... | read_data_trend1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int read_data_trend2d(GMT_CTRL *GMT, TREND2D_DATA **data, uint64_t *n_data,
double *xmin, double *xmax, double *ymin, double *ymax,
int weighted_input, double **work) {
double v10;
uint64_t i;
size_t n_alloc;
double *in;
n_alloc = 0x200000;
*data = (TREND2D_DATA ... | GMT_LOCAL int read_data_trend2d (struct GMT_CTRL *GMT, struct TREND2D_DATA **data, uint64_t *n_data, double *xmin, double *xmax, double *ymin, double *ymax, int weighted_input, double **work) {
uint64_t i;
size_t n_alloc = GMT_INITIAL_MEM_ROW_ALLOC;
double *in = NULL;
*data = gmt_M_memory (GMT, NULL, n_alloc, stru... | read_data_trend2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void recompute_weights_1d(GMT_CTRL *GMT, TREND1D_DATA *data, uint64_t n_data,
double *work, double *scale) {
double v5;
uint64_t i;
uint64_t ia;
double k;
double rr;
for (i = 0; i < n_data; ++i)
work[i] = fabs(data[i].r);
gmt_sort_array(GMT, work, n_data, 9u);
if ((n_data ... | GMT_LOCAL void recompute_weights_1d (struct GMT_CTRL *GMT, struct TREND1D_DATA *data, uint64_t n_data, double *work, double *scale) {
uint64_t i;
double k, ksq, rr;
for (i = 0; i < n_data; i++) work[i] = fabs(data[i].r);
gmt_sort_array (GMT, work, n_data, GMT_DOUBLE);
if (n_data%2)
*scale = MAD_NORMALIZE ... | recompute_weights_1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void recompute_weights_2d(GMT_CTRL *GMT, TREND2D_DATA *data, uint64_t n_data,
double *work, double *scale) {
double v5;
uint64_t i;
uint64_t ia;
double k;
double rr;
for (i = 0; i < n_data; ++i)
work[i] = fabs(data[i].r);
gmt_sort_array(GMT, work, n_data, 9u);
if ((n_data ... | GMT_LOCAL void recompute_weights_2d (struct GMT_CTRL *GMT, struct TREND2D_DATA *data, uint64_t n_data, double *work, double *scale) {
uint64_t i;
double k, ksq, rr;
for (i = 0; i < n_data; i++) work[i] = fabs(data[i].r);
gmt_sort_array (GMT, work, n_data, GMT_DOUBLE);
if (n_data%2)
*scale = MAD_NORMALIZE... | recompute_weights_2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void recursive_path(GMT_CTRL *GMT, PSL_CTRL *PSL, int k0_0, int np,
GMT_GSHHS_POL *p, int level, GMT_FILL *fill) {
long v7;
int k;
if (level <= 4) {
for (k = k0_0 + 1; k < np; ++k) {
if (p[k].n) {
if (level <= p[k].level &&
add_this_polygon_to_path(GMT, k0_0, p, ... | GMT_LOCAL void recursive_path (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, int k0, int np, struct GMT_GSHHS_POL p[], int level, struct GMT_FILL fill[]) {
int k;
if (level > GSHHS_MAX_LEVEL) return;
for (k = k0 + 1; k < np; k++) {
if (p[k].n == 0 || p[k].level < level) continue;
if (add_this_polygon_to_pat... | recursive_path | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double regress1D(GMT_CTRL *GMT, double *x, double *y, double **w, uint64_t n,
unsigned int regression, unsigned int norm, double *par) {
bool v8;
double v9;
double v10;
unsigned int verbose;
bool done;
bool weighted;
unsigned int n_iter;
uint64_t k;
double a_min;
double a_max;
dou... | GMT_LOCAL double regress1D (struct GMT_CTRL *GMT, double *x, double *y, double *w[], uint64_t n, unsigned int regression, unsigned int norm, double *par) {
uint64_t k;
unsigned int n_iter = 0;
bool done = false, weighted = false;
char buffer[GMT_LEN256] = {""};
double a_min = -90.0, a_max = 90.0, angle, r_a, d_a... | regress1D | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void regress1D_sub(GMT_CTRL *GMT, double *x, double *y, double *W, double *e,
uint64_t n, unsigned int regression, unsigned int norm,
bool weighted, double angle, double *par) {
double v11;
double v12;
uint64_t k;
uint64_t ka;
uint64_t kb;
uint64_t kc;
double a;
dou... | GMT_LOCAL void regress1D_sub (struct GMT_CTRL *GMT, double *x, double *y, double *W, double *e, uint64_t n, unsigned int regression, unsigned int norm, bool weighted, double angle, double *par) {
uint64_t k;
double a, b, E;
double (*misfit) (struct GMT_CTRL *GMT, double *ey, double *W, uint64_t n, unsigned int r... | regress1D_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void remove_planar_trend(GMT_CTRL *GMT, SURFACE_INFO *C) {
signed long npoints;
double v3;
uint64_t v4;
double v5;
signed long v6;
double v7;
uint64_t v8;
signed long v9;
double v10;
uint64_t v11;
double v12;
signed long v13;
double v14;
uint64_t v15;
signed long v16;
double v17;
uint6... | GMT_LOCAL void remove_planar_trend (struct GMT_CTRL *GMT, struct SURFACE_INFO *C) {
uint64_t i;
double a, b, c, d, xx, yy, zz;
double sx, sy, sz, sxx, sxy, sxz, syy, syz;
struct GMT_GRID_HEADER *h = C->Grid->header;
sx = sy = sz = sxx = sxy = sxz = syy = syz = 0.0;
for (i = 0; i < C->npoints; i++) {
xx = (... | remove_planar_trend | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void replace_planar_trend(SURFACE_INFO *C) {
uint64_t v1;
float v2;
int i;
int j;
float *u;
u = C->Grid->data;
for (i = 0; i < C->n_columns; ++i) {
for (j = 0; j < C->n_rows; ++j) {
v1 = i * C->my + C->ij_sw_corner + j;
v2 = (double)j * C->plane_c2 + C->plane_c0 + (double)i * C->plane_c1 ... | GMT_LOCAL void replace_planar_trend (struct SURFACE_INFO *C) {
int i, j;
uint64_t ij;
float *u = C->Grid->data;
for (i = 0; i < C->n_columns; i++) {
for (j = 0; j < C->n_rows; j++) {
ij = C->ij_sw_corner + i * C->my + j;
u[ij] = (float)((u[ij] * C->z_scale) + (C->plane_c0 + C->plane_c1 * i + C->plane... | replace_planar_trend | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void report_tiles(GMT_CTRL *GMT, GMT_GRID *G, double w, double e, double s,
double n, GRDINFO_CTRL *Ctrl) {
uint32_t n_rows;
uint32_t v8;
double v9;
double v10;
bool use;
unsigned int i;
unsigned int j;
unsigned int js;
unsigned int jn;
unsigned int nx;
unsigned int ny;
unsigne... | GMT_LOCAL void report_tiles (struct GMT_CTRL *GMT, struct GMT_GRID *G, double w, double e, double s, double n, struct GRDINFO_CTRL *Ctrl) {
bool use = true;
unsigned int nx, ny, i, j, js = 0, jn = 0, ie, iw;
uint64_t row, col, node;
double wesn[4], out[4], box[4];
char text[GMT_LEN64] = {""}, record[GMT_BUFSIZ] ... | report_tiles | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int rescale_z_values(GMT_CTRL *GMT, SURFACE_INFO *C) {
signed long npoints;
double v3;
uint64_t v4;
float r_z_scale;
double converge_limit;
unsigned int ppm;
uint64_t i;
uint64_t ia;
double ssz;
ssz = 0.0;
for (i = 0; i < C->npoints; ++i)
ssz = (float)(C->data[i].z * C->data[i].z) + ssz;
np... | GMT_LOCAL int rescale_z_values (struct GMT_CTRL *GMT, struct SURFACE_INFO *C) {
uint64_t i;
double ssz = 0.0;
for (i = 0; i < C->npoints; i++) ssz += (C->data[i].z * C->data[i].z);
C->z_scale = sqrt (ssz / C->npoints);
if (C->z_scale < GMT_CONV8_LIMIT) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Warning:... | rescale_z_values | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void reset_coltype(GMT_CTRL *GMT, char *Rarg) {
if (Rarg && *Rarg) {
if (strchr(Rarg, 58) || strchr("WESN", *(Rarg - 1)))
gmt_set_geographic(GMT, 0);
else
gmt_set_cartesian(GMT, 0);
}
} | GMT_LOCAL void reset_coltype (struct GMT_CTRL *GMT, char *Rarg) {
size_t last;
if (!Rarg || (last = strlen (Rarg) == 0)) return;
last--;
if (strchr (Rarg, ':') || strchr ("WESN", Rarg[last]))
gmt_set_geographic (GMT, GMT_IN);
else
gmt_set_cartesian (GMT, GMT_IN);
} | reset_coltype | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool same_domain(GMT_DATASET *A, uint64_t t_col, GMT_DATATABLE *B) {
uint64_t seg;
for (seg = 0; seg < (*A->table)->n_segments; ++seg) {
if (!doubleAlmostEqualUlpsAndAbs((*A->table)->min[t_col], *B->min,
1.110223024625157e-15, 5) ||
!doubleAlmostEqualUlpsAndAbs((*A-... | GMT_LOCAL bool same_domain (struct GMT_DATASET *A, uint64_t t_col, struct GMT_DATATABLE *B) {
uint64_t seg;
for (seg = 0; seg < A->table[0]->n_segments; seg++) {
if (!(doubleAlmostEqualZero (A->table[0]->min[t_col], B->min[COL_T])
&& doubleAlmostEqualZero (A->table[0]->max[t_col], B->max[COL_T])))
return ... | same_domain | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool same_size(GMT_DATASET *A, GMT_DATASET *B) {
uint64_t seg;
if ((*A->table)->n_segments != (*B->table)->n_segments ||
(*A->table)->n_columns != (*B->table)->n_columns)
return 0;
for (seg = 0; seg < (*A->table)->n_segments; ++seg) {
if ((*A->table)->segment[seg]->n_rows != (*B->table)->segment[se... | GMT_LOCAL bool same_size (struct GMT_DATASET *A, struct GMT_DATASET *B) {
uint64_t seg;
if (!(A->table[0]->n_segments == B->table[0]->n_segments && A->table[0]->n_columns == B->table[0]->n_columns)) return (false);
for (seg = 0; seg < A->table[0]->n_segments; seg++) if (A->table[0]->segment[seg]->n_rows != B->tabl... | same_size | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int sample_all_grids(GMT_CTRL *GMT, GRD_CONTAINER *GC, unsigned int n_grids,
unsigned int mode, double x_in, double y_in,
double *value) {
double v7;
double z_fast;
unsigned int g;
unsigned int n_in;
unsigned int n_set;
double x0;
double y0;
double x;
double y... | GMT_LOCAL int sample_all_grids (struct GMT_CTRL *GMT, struct GRD_CONTAINER *GC, unsigned int n_grids, unsigned int mode, double x_in, double y_in, double value[]) {
unsigned int g, n_in, n_set;
double x, y, x0 = 0.0, y0 = 0.0;
if (mode == 2) gmt_geo_to_xy (GMT, x_in, y_in, &x0, &y0);
for (g = n_in = n_set = 0;... | sample_all_grids | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int scan_grd_col(GMT_CTRL *GMT, int64_t col, int64_t t_row,
int64_t b_row, GMT_ZSEARCH *S) {
int64_t b_rowa;
int64_t t_rowa;
int ret_code;
int64_t row;
GMT_GRID_HEADER *h;
double r;
t_rowa = t_row;
b_rowa = b_row;
ret_code = 0;
h = S->C->G->header;
if (col < 0 |... | GMT_LOCAL unsigned int scan_grd_col (struct GMT_CTRL *GMT, int64_t col, int64_t t_row, int64_t b_row, struct GMT_ZSEARCH *S) {
unsigned int ret_code = 0;
int64_t row, node;
double r;
struct GMT_GRID_HEADER *h = S->C->G->header;
if (col < 0 || col >= h->n_columns) return 2;
if (t_row < 0) t_row = 0;
if (b_row... | scan_grd_col | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int scan_grd_row(GMT_CTRL *GMT, int64_t row, int64_t l_col,
int64_t r_col, GMT_ZSEARCH *S) {
int64_t r_cola;
int64_t l_cola;
int ret_code;
int64_t col;
GMT_GRID_HEADER *h;
double r;
l_cola = l_col;
r_cola = r_col;
ret_code = 0;
h = S->C->G->header;
if (row < 0 |... | GMT_LOCAL unsigned int scan_grd_row (struct GMT_CTRL *GMT, int64_t row, int64_t l_col, int64_t r_col, struct GMT_ZSEARCH *S) {
unsigned int ret_code = 0;
int64_t col, node;
double r;
struct GMT_GRID_HEADER *h = S->C->G->header;
if (row < 0 || row >= h->n_rows) return 2;
if (l_col < 0) l_col = 0;
if (r_col >=... | scan_grd_row | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void series_prepare(GMT_CTRL *GMT, double p, unsigned int L,
GREENSPLINE_LOOKUP *Lz, GREENSPLINE_LOOKUP *Lg) {
int l;
double pp;
double t1;
double t2;
GMT_Report(GMT->parent, 4u,
"Precalculate max %u terms for Legendre summation\n", L + 1);
Lz->A = (double *)gmt_memory_func... | GMT_LOCAL void series_prepare (struct GMT_CTRL *GMT, double p, unsigned int L, struct GREENSPLINE_LOOKUP *Lz, struct GREENSPLINE_LOOKUP *Lg) {
unsigned int l;
double pp, t1, t2;
GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Precalculate max %u terms for Legendre summation\n", L+1);
Lz->A = gmt_M_memory (GMT, NULL, L... | series_prepare | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void set_coefficients(SURFACE_INFO *C) {
double v1;
double loose;
double e_4;
double a0;
loose = 1.0 - C->interior_tension;
C->e_2 = C->l_epsilon * C->l_epsilon;
e_4 = C->e_2 * C->e_2;
C->eps_p2 = C->e_2;
C->eps_m2 = 1.0 / C->e_2;
C->one_plus_e2 = C->e_2 + 1.0;
C->two_plus_ep2 = C->eps_p2 + C->ep... | GMT_LOCAL void set_coefficients (struct SURFACE_INFO *C) {
double e_4, loose, a0;
loose = 1.0 - C->interior_tension;
C->e_2 = C->l_epsilon * C->l_epsilon;
e_4 = C->e_2 * C->e_2;
C->eps_p2 = C->e_2;
C->eps_m2 = 1.0/C->e_2;
C->one_plus_e2 = 1.0 + C->e_2;
C->two_plus_ep2 = 2.0 + 2.0*C->eps_p2;
C->two_plus_em2 ... | set_coefficients | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void set_default_central_meridian(GMT_CTRL *GMT) {
GMT->current.proj.pars[0] =
0.5 * (GMT->common.R.wesn[0] + GMT->common.R.wesn[1]);
GMT_Report(GMT->parent, 5u, "Central meridian not given, default to %g\n",
GMT->current.proj.pars[0]);
} | GMT_LOCAL void set_default_central_meridian (struct GMT_CTRL *GMT) {
GMT->current.proj.pars[0] = 0.5 * (GMT->common.R.wesn[XLO] + GMT->common.R.wesn[XHI]);
GMT_Report (GMT->parent, GMT_MSG_LONG_VERBOSE, "Central meridian not given, default to %g\n", GMT->current.proj.pars[0]);
} | set_default_central_meridian | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void set_grid_parameters(SURFACE_INFO *C) {
C->block_ny = (C->n_rows - 1) / C->grid + 1;
GMT_Surface_Global.block_ny = C->block_ny;
C->block_nx = (C->n_columns - 1) / C->grid + 1;
C->grid_xinc = C->Grid->header->inc[0] * (double)C->grid;
GMT_Surface_Global.grid_xinc = C->grid_xinc;
C->grid_yinc = C->Grid->h... | GMT_LOCAL void set_grid_parameters (struct SURFACE_INFO *C) {
GMT_Surface_Global.block_ny = C->block_ny = (C->n_rows - 1) / C->grid + 1;
C->block_nx = (C->n_columns - 1) / C->grid + 1;
GMT_Surface_Global.grid_xinc = C->grid_xinc = C->grid * C->Grid->header->inc[GMT_X];
GMT_Surface_Global.grid_yinc = C->grid_yinc ... | set_grid_parameters | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void set_iconstyle(GMTAPI_CTRL *API, double *rgb, double scale, char *iconfile,
int N) {
int v5;
int v6;
int v7;
int v8;
double v9;
int Nc;
int Na;
int Nb;
Nc = N + 1;
kml_print(API, N, "<IconStyle>\n");
v5 = Nc;
Na = Nc + 1;
kml_print(API, v5, "<Icon>\n");
if (*iconfile ... | GMT_LOCAL void set_iconstyle (struct GMTAPI_CTRL *API, double *rgb, double scale, char *iconfile, int N) {
kml_print (API, N++, "<IconStyle>\n");
kml_print (API, N++, "<Icon>\n");
if (iconfile[0] != '-') kml_print (API, N, "<href>%s</href>\n", iconfile);
kml_print (API, --N, "</Icon>\n");
if (iconfile[0] != '-')... | set_iconstyle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void set_index(SURFACE_INFO *C) {
double v1;
double v2;
int i;
int j;
uint64_t k;
uint64_t k_skipped;
GMT_GRID_HEADER *h;
k_skipped = 0;
h = C->Grid->header;
for (k = 0; k < C->npoints; ++k) {
v1 = floor((C->data[k].x - h->wesn[0]) * C->r_grid_xinc + 0.5);
i = lrint(v1);
v2 = floor((C->... | GMT_LOCAL void set_index (struct SURFACE_INFO *C) {
int i, j;
uint64_t k, k_skipped = 0;
struct GMT_GRID_HEADER *h = C->Grid->header;
for (k = 0; k < C->npoints; k++) {
i = irint (floor(((C->data[k].x-h->wesn[XLO])*C->r_grid_xinc) + 0.5));
j = irint (floor(((C->data[k].y-h->wesn[YLO])*C->r_grid_yinc) + 0.5... | set_index | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void set_linestyle(GMTAPI_CTRL *API, GMT_PEN *pen, double *rgb, int N) {
int v4;
int v5;
int v6;
double v7;
int Na;
Na = N + 1;
kml_print(API, N, "<LineStyle>\n");
v4 = (unsigned char)(int)rint(*rgb * 255.0);
v5 = (unsigned char)(int)rint(rgb[1] * 255.0);
v6 = (unsigned char)(int)rint(rgb[2] * 255.... | GMT_LOCAL void set_linestyle (struct GMTAPI_CTRL *API, struct GMT_PEN *pen, double *rgb, int N) {
kml_print (API, N++, "<LineStyle>\n");
kml_print (API, N, "<color>%02x%02x%02x%02x</color>\n", gmt_M_u255 (1.0 - rgb[3]), GMT_3u255 (rgb));
kml_print (API, N, "<width>%g</width>\n", pen->width);
kml_print (API, --N, "<... | set_linestyle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void set_offset(SURFACE_INFO *C) {
unsigned int i;
unsigned int j;
unsigned int kase;
int add_w[8];
int add_e[8];
int add_s[8];
int add_n[8];
int add_w2[8];
int add_e2[8];
int add_s2[8];
int add_n2[6];
unsigned long v12;
v12 = __readfsqword(0x28u);
add_w[0] = -C->my;
add_w[4] = -C->grid_e... | GMT_LOCAL void set_offset (struct SURFACE_INFO *C) {
int add_w[5], add_e[5], add_s[5], add_n[5], add_w2[5], add_e2[5], add_s2[5], add_n2[5];
unsigned int i, j, kase;
add_w[0] = -C->my; add_w[1] = add_w[2] = add_w[3] = add_w[4] = -C->grid_east;
add_w2[0] = -2 * C->my; add_w2[1] = -C->my - C->grid_east; ... | set_offset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void set_polystyle(GMTAPI_CTRL *API, double *rgb, int outline, int active,
int N) {
int v5;
int v6;
int v7;
double v8;
int Na;
Na = N + 1;
kml_print(API, N, "<PolyStyle>\n");
v5 = (unsigned char)(int)rint(*rgb * 255.0);
v6 = (unsigned char)(int)rint(rgb[1] * 255.0);
v7 = (unsigne... | GMT_LOCAL void set_polystyle (struct GMTAPI_CTRL *API, double *rgb, int outline, int active, int N) {
kml_print (API, N++, "<PolyStyle>\n");
kml_print (API, N, "<color>%02x%02x%02x%02x</color>\n", gmt_M_u255 (1.0 - rgb[3]), GMT_3u255 (rgb));
kml_print (API, N, "<fill>%d</fill>\n", !active);
kml_print (API, N, "<out... | set_polystyle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char set_unit_and_mode(char *arg, unsigned int *mode) {
int v2;
unsigned int k;
k = 0;
*mode = 2;
v2 = *arg;
if (v2 == 43) {
*mode = 3;
k = 1;
} else if (v2 == 45) {
*mode = 1;
k = 1;
}
return arg[k];
} | GMT_LOCAL char set_unit_and_mode (char *arg, unsigned int *mode) {
unsigned int k = 0;
*mode = GMT_GREATCIRCLE;
switch (arg[0]) {
case '-': *mode = GMT_FLATEARTH; k = 1; break;
case '+': *mode = GMT_GEODESIC; k = 1; break;
}
return (arg[k]);
} | set_unit_and_mode | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.