input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int set_up_filter(GMT_CTRL *GMT, FILTER1D_INFO *F) {
uint64_t v2;
double v3;
signed long half_n_f_wts;
double v5;
uint64_t v6;
double v7;
double *v8;
double t_int;
uint64_t i;
uint64_t ia;
unsigned long ib;
double w_sum;
double t_shift;
double t_shifta;
uint64_t row;
uint64_t rowa;
dou... | GMT_LOCAL int set_up_filter (struct GMT_CTRL *GMT, struct FILTER1D_INFO *F) {
uint64_t i, i1, i2;
double t_0, t_1, time, w_sum;
double (*get_weight[3]) (double, double);
t_0 = F->data[F->t_col][0];
t_1 = F->data[F->t_col][F->n_rows-1];
if (F->equidist) F->dt = (t_1 - t_0) / (F->n_rows - 1);
if (F->filter_typ... | set_up_filter | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void set_weight_matrix(GMT_CTRL *GMT, FILTER_INFO *F, double *weight,
double output_lat, double *par, double x_off,
double y_off) {
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
int i;
int ia;
int j;
int... | GMT_LOCAL void set_weight_matrix (struct GMT_CTRL *GMT, struct FILTER_INFO *F, double *weight, double output_lat, double par[], double x_off, double y_off) {
int i, j;
int64_t ij;
double x, y, yc, y0, r, ry = 0.0, inv_x_half_width = 0.0, inv_y_half_width = 0.0;
yc = y0 = output_lat - y_off;
if (F->d_flag... | set_weight_matrix | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *sharedir_from_runtime_bindir(char *sharedir, const char *runtime_bindir) {
const char *sharedira;
size_t len_base_dir;
if (!runtime_bindir)
return 0;
len_base_dir = strlen(runtime_bindir) - 3;
if (!strstr(&runtime_bindir[len_base_dir], "bin"))
return 0;
sharedira = strncpy(sharedir, runtime_b... | static char *sharedir_from_runtime_bindir (char *sharedir, const char *runtime_bindir) {
size_t len_runtime_bindir, len_bindir_rel, len_base_dir;
#if defined __APPLE__ || defined WIN32
char bindir [PATH_MAX+1];
if (runtime_bindir == NULL) {
# if defined __APPLE__
runtime_bindir = gmt_runtime_bindir_osx (bindi... | sharedir_from_runtime_bindir | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *sharedir_from_runtime_libdir(char *sharedir) {
const char *sharedira;
size_t len_base_dir;
char runtime_libdir[4104];
unsigned long v5;
v5 = __readfsqword(0x28u);
if (!j_gmt_runtime_libdir(runtime_libdir))
return 0;
len_base_dir = strlen(runtime_libdir) - 5;
if (!strstr(&runtime_libdir[len_ba... | static char *sharedir_from_runtime_libdir (char *sharedir) {
size_t len_runtime_libdir, len_libdir_rel, len_base_dir;
char runtime_libdir[PATH_MAX+1];
if ( gmt_runtime_libdir(runtime_libdir) == NULL )
return NULL;
len_runtime_libdir = strlen (runtime_libdir);
len_libdir_rel = strlen (GMT_LIBDIR_RELATIVE);
... | sharedir_from_runtime_libdir | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int shore_asc_sort(const void *a, const void *b) {
if (*(_WORD *)a >= *(_WORD *)b)
return *(_WORD *)a > *(_WORD *)b;
else
return -1;
} | GMT_LOCAL int shore_asc_sort (const void *a, const void *b) {
if (((struct GSHHS_SIDE *)a)->pos < ((struct GSHHS_SIDE *)b)->pos) return (-1);
if (((struct GSHHS_SIDE *)a)->pos > ((struct GSHHS_SIDE *)b)->pos) return (1);
return (0);
} | shore_asc_sort | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void shore_br_to_degree(GMT_BR *c, short dx_0, short dy, double *lon,
double *lat) {
*lon = c->scale * (double)(unsigned short)dx_0 + c->lon_sw;
*lat = c->scale * (double)(unsigned short)dy + c->lat_sw;
} | GMT_LOCAL void shore_br_to_degree (struct GMT_BR *c, short int dx, short int dy, double *lon, double *lat) {
*lon = c->lon_sw + ((unsigned short)dx) * c->scale;
*lat = c->lat_sw + ((unsigned short)dy) * c->scale;
} | shore_br_to_degree | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void shore_check(GMT_CTRL *GMT, bool *ok) {
int i;
int j;
int n_found;
char *kind[3];
char stem[64];
char path[4104];
unsigned long v8;
v8 = __readfsqword(0x28u);
memset(stem, 0, sizeof(stem));
memset(path, 0, 4096);
kind[0] = "GSHHS";
kind[1] = "river";
kind[2] = "border";
for (i = 0; i <=... | GMT_LOCAL void shore_check (struct GMT_CTRL *GMT, bool ok[5]) {
int i, j, n_found;
char stem[GMT_LEN64] = {""}, path[GMT_BUFSIZ] = {""}, *res = "clihf", *kind[3] = {"GSHHS", "river", "border"};
for (i = 0; i < 5; i++) {
ok[i] = false;
for (j = n_found = 0; j < 3; j++) {
snprintf (stem, GMT_LEN64, "... | shore_check | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int shore_copy_to_br_path(double *lon, double *lat, GMT_BR *s, int id) {
int i;
for (i = 0; i < s->seg[id].n; ++i)
shore_br_to_degree(s, s->seg[id].dx[i], s->seg[id].dy[i], &lon[i], &lat[i]);
return s->seg[id].n;
} | GMT_LOCAL int shore_copy_to_br_path (double *lon, double *lat, struct GMT_BR *s, int id) {
int i;
for (i = 0; i < (int)s->seg[id].n; i++)
shore_br_to_degree (s, s->seg[id].dx[i], s->seg[id].dy[i], &lon[i], &lat[i]);
return (s->seg[id].n);
} | shore_copy_to_br_path | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int shore_copy_to_shore_path(double *lon, double *lat, GMT_SHORE *s, int id) {
int i;
for (i = 0; i < s->seg[id].n; ++i)
shore_to_degree(s, s->seg[id].dx[i], s->seg[id].dy[i], &lon[i], &lat[i]);
return s->seg[id].n;
} | GMT_LOCAL int shore_copy_to_shore_path (double *lon, double *lat, struct GMT_SHORE *s, int id) {
int i;
for (i = 0; i < (int)s->seg[id].n; i++)
shore_to_degree (s, s->seg[id].dx[i], s->seg[id].dy[i], &lon[i], &lat[i]);
return (s->seg[id].n);
} | shore_copy_to_shore_path | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int shore_desc_sort(const void *a, const void *b) {
if (*(_WORD *)a < *(_WORD *)b)
return 1;
if (*(_WORD *)a <= *(_WORD *)b)
return 0;
return -1;
} | GMT_LOCAL int shore_desc_sort (const void *a, const void *b) {
if (((struct GSHHS_SIDE *)a)->pos < ((struct GSHHS_SIDE *)b)->pos) return (1);
if (((struct GSHHS_SIDE *)a)->pos > ((struct GSHHS_SIDE *)b)->pos) return (-1);
return (0);
} | shore_desc_sort | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void shore_done_sides(GMT_CTRL *GMT, GMT_SHORE *c) {
unsigned int i;
for (i = 0; i <= 3; ++i) {
gmt_free_func(GMT, c->side[i], 0, "shore_done_sides");
c->side[i] = 0;
}
} | GMT_LOCAL void shore_done_sides (struct GMT_CTRL *GMT, struct GMT_SHORE *c) {
unsigned int i;
for (i = 0; i < 4; i++) gmt_M_free (GMT, c->side[i]);
} | shore_done_sides | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int shore_get_first_entry(GMT_SHORE *c, int dir, int *side) {
int i;
for (i = 0; i <= 3 && (!c->nside[*side] ||
c->nside[*side] == 1 && c->side[*side]->id < 0);
++i)
*side = (*side + dir + 4) % 4;
if (i == 4)
return -5;
else
return c->side[*side]->id;
} | GMT_LOCAL int shore_get_first_entry (struct GMT_SHORE *c, int dir, int *side) {
int try = 0;
while (try < 4 && (c->nside[*side] == 0 || (c->nside[*side] == 1 && c->side[*side][0].id < 0))) {
try++;
*side = (*side + dir + 4) % 4;
}
if (try == 4) return (-5);
return (c->side[*side][0].id);
} | shore_get_first_entry | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int shore_get_next_entry(GMT_SHORE *c, int dir, int side, int id) {
int v4;
int ida;
int k;
int ka;
int kb;
int kc;
int pos;
int n;
if (id >= 0) {
n = c->seg[id].n - 1;
pos = shore_get_position(side, c->seg[id].dx[n], c->seg[id].dy[n]);
} else {
if (dir == 1)
v4 = 0;
else
... | GMT_LOCAL int shore_get_next_entry (struct GMT_SHORE *c, int dir, int side, int id) {
int k, pos, n;
if (id < 0)
pos = (dir == 1) ? 0 : GSHHS_MAX_DELTA;
else {
n = c->seg[id].n - 1;
pos = shore_get_position (side, c->seg[id].dx[n], c->seg[id].dy[n]);
}
if (dir == 1) {
for (k = 0; k < (int)c-... | shore_get_next_entry | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int shore_get_position(int side, short x, short y) {
if ((side & 1) != 0) {
if (side == 1)
return (unsigned short)y;
else
return 0xFFFF - (unsigned short)y;
} else if (side) {
return 0xFFFF - (unsigned short)x;
} else {
return (unsigned short)x;
}
} | GMT_LOCAL int shore_get_position (int side, short int x, short int y) {
return ((side%2) ? ((side == 1) ? (unsigned short)y : GSHHS_MAX_DELTA - (unsigned short)y) : ((side == 0) ? (unsigned short)x : GSHHS_MAX_DELTA - (unsigned short)x));
} | shore_get_position | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *shore_getpathname(GMT_CTRL *GMT, char *stem, char *path) {
FILE *fp;
char dir[4104];
unsigned long v7;
v7 = __readfsqword(0x28u);
if (GMT->session.GSHHGDIR) {
sprintf(path, "%s/%s%s", GMT->session.GSHHGDIR, stem, ".nc");
GMT_Report(GMT->parent, 6u, "1. GSHHG: GSHHGDIR set, trying %s\n", path);
... | GMT_LOCAL char *shore_getpathname (struct GMT_CTRL *GMT, char *stem, char *path) {
FILE *fp = NULL;
char dir[GMT_BUFSIZ];
static struct GSHHG_VERSION version = GSHHG_MIN_REQUIRED_VERSION;
static int warn_once = true;
if (GMT->session.GSHHGDIR) {
sprintf (path, "%s/%s%s", GMT->session.GSHHGDIR, ... | shore_getpathname | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void shore_path_shift(double *lon, unsigned int n, double edge) {
unsigned int i;
for (i = 0; i < n; ++i) {
if (lon[i] >= edge)
lon[i] = lon[i] - 360.0;
}
} | GMT_LOCAL void shore_path_shift (double *lon, unsigned int n, double edge) {
unsigned int i;
for (i = 0; i < n; i++) if (lon[i] >= edge) lon[i] -= 360.0;
} | shore_path_shift | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void shore_path_shift2(double *lon, unsigned int n, double west, double east,
int leftmost) {
unsigned int i;
unsigned int ia;
if (leftmost) {
for (i = 0; i < n; ++i) {
if (lon[i] >= east && lon[i] - 360.0 >= west)
lon[i] = lon[i] - 360.0;
}
} else {
for (ia = 0... | GMT_LOCAL void shore_path_shift2 (double *lon, unsigned int n, double west, double east, int leftmost) {
unsigned int i;
if (leftmost) {
for (i = 0; i < n; i++) if (lon[i] >= east && (lon[i]-360.0) >= west) lon[i] -= 360.0;
}
else {
for (i = 0; i < n; i++) if (lon[i] > east && (lon[i]-360.0) >= west) lon[i]... | shore_path_shift2 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void shore_prepare_sides(GMT_CTRL *GMT, GMT_SHORE *c, int dir) {
double bsize;
double v4;
double v5;
double v6;
unsigned short v7;
int s;
int sa;
int i;
int ia;
int ib;
int ic;
int n[6];
unsigned long v16;
v16 = __readfsqword(0x28u);
if (dir == 1)
bsize = c->bsize;
else
bsize = ... | GMT_LOCAL void shore_prepare_sides (struct GMT_CTRL *GMT, struct GMT_SHORE *c, int dir) {
int s, i, n[4];
c->lon_corner[0] = c->lon_sw + ((dir == 1) ? c->bsize : 0.0);
c->lon_corner[1] = c->lon_sw + c->bsize;
c->lon_corner[2] = c->lon_sw + ((dir == 1) ? 0.0 : c->bsize);
c->lon_corner[3] = c->lon_sw;
c->lat_c... | shore_prepare_sides | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int shore_res_to_int(char res) {
int i;
int j;
i = -1;
for (j = 0; i == -1 && j <= 4; ++j) {
if (res == aClihf[j])
i = j;
}
return i;
} | GMT_LOCAL int shore_res_to_int (char res) {
int i, j;
char *type = "clihf";
for (i = -1, j = 0; i == -1 && j < 5; j++) if (res == type[j]) i = j;
return (i);
} | shore_res_to_int | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void shore_to_degree(GMT_SHORE *c, short dx_0, short dy, double *lon,
double *lat) {
*lon = c->scale * (double)(unsigned short)dx_0 + c->lon_sw;
*lat = c->scale * (double)(unsigned short)dy + c->lat_sw;
} | GMT_LOCAL void shore_to_degree (struct GMT_SHORE *c, short int dx, short int dy, double *lon, double *lat) {
*lon = c->lon_sw + ((unsigned short)dx) * c->scale;
*lat = c->lat_sw + ((unsigned short)dy) * c->scale;
} | shore_to_degree | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void shrink_clip_contours(double *x, double *y, uint64_t np, double w, double e,
double s, double n) {
uint64_t i;
for (i = 0; i < np; ++i) {
if (w <= x[i]) {
if (x[i] > e)
x[i] = e;
} else {
x[i] = w;
}
if (s <= y[i]) {
if (y[i] > n)
y[i]... | GMT_LOCAL void shrink_clip_contours (double *x, double *y, uint64_t np, double w, double e, double s, double n) {
uint64_t i;
for (i = 0; i < np; i++) {
if (x[i] < w)
x[i] = w;
else if (x[i] > e)
x[i] = e;
if (y[i] < s)
y[i] = s;
else if (y[i] > n)
y[i] = n;
}
} | shrink_clip_contours | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void sig_handler(int sig_num, siginfo_t *info, void *ucontext) {
unsigned int v3;
int size;
int c;
sigaction act;
sigaction oldact;
void *array[50];
unsigned long v9;
v9 = __readfsqword(0x28u);
array[0] = *((void **)ucontext + 21);
array[1] = info->_sifields._sigfault.si_addr;
if (sig_num != 2) {... | void sig_handler(int sig_num, siginfo_t *info, void *ucontext) {
int size;
void *array[50];
ucontext_t *uc = (ucontext_t *)ucontext;
array [0] = UC_IP (uc);
array [1] = info->si_addr;
if (sig_num == SIGINT) {
int c;
struct sigaction act, oldact;
sigemptyset (&act.sa_mask);
act.sa_flags = 0;
act.s... | sig_handler | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void smart_divide(SURFACE_INFO *C) { C->grid /= C->factors[--C->n_fact]; } | GMT_LOCAL void smart_divide (struct SURFACE_INFO *C) {
C->grid /= C->factors[C->n_fact - 1];
C->n_fact--;
} | smart_divide | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int solar_params(PSSOLAR_CTRL *Ctrl, SUN_PARAMS *Sun) {
int v2;
double v3;
double v4;
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double v18;
double v19;
double v20;
double ... | GMT_LOCAL int solar_params (struct PSSOLAR_CTRL *Ctrl, struct SUN_PARAMS *Sun) {
int TZ, year, month, day, hour, min;
struct tm *UTC;
time_t right_now = time (NULL);
double sec, JC, JD, UT, L, M, C, var_y, r, sz, theta, lambda, obliqCorr, meanObliqEclipt;
double EEO, HA_Sunrise, TrueSolarTime, SolarDec, ... | solar_params | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int solve_LSQFIT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK *S,
uint64_t n_col, bool *skip, double eigen, char *file,
GMT_OPTION *options, GMT_DATASET *A) {
return solve_LS_system(GMT, info, S, n_col, skip, file, 0, eigen, options, A);
} | GMT_LOCAL int solve_LSQFIT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S, uint64_t n_col, bool skip[], double eigen, char *file, struct GMT_OPTION *options, struct GMT_DATASET *A) {
return (solve_LS_system (GMT, info, S, n_col, skip, file, false, eigen, options, A));
} | solve_LSQFIT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int solve_LS_system(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK *S,
uint64_t n_col, bool *skip, char *file, bool svd,
double eigen_min, GMT_OPTION *options, GMT_DATASET *A) {
uint64_t v11;
unsigned int nrots;
unsigned int i;
unsigned int j;
unsigned int k;
unsign... | GMT_LOCAL int solve_LS_system (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S, uint64_t n_col, bool skip[], char *file, bool svd, double eigen_min, struct GMT_OPTION *options, struct GMT_DATASET *A) {
unsigned int i, j, k, k0, i2, j2, n;
int ier = 0;
uint64_t row, seg, rhs, w_col ... | solve_LS_system | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int solve_SVDFIT(GMT_CTRL *GMT, GMTMATH_INFO *info, GMTMATH_STACK *S,
uint64_t n_col, bool *skip, double eigen, char *file,
GMT_OPTION *options, GMT_DATASET *A) {
return solve_LS_system(GMT, info, S, n_col, skip, file, 1, eigen, options, A);
} | GMT_LOCAL int solve_SVDFIT (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info, struct GMTMATH_STACK *S, uint64_t n_col, bool skip[], double eigen, char *file, struct GMT_OPTION *options, struct GMT_DATASET *A) {
return (solve_LS_system (GMT, info, S, n_col, skip, file, true, eigen, options, A));
} | solve_SVDFIT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void solve_system_1d(GMT_CTRL *GMT, double *gtg, double *gtd, double *model,
unsigned int n_model, unsigned int mp, double *lambda,
double *v, double *b, double *z, double c_no,
unsigned int *ir) {
unsigned int nrots;
unsigned int i;
unsigned int j;
... | GMT_LOCAL void solve_system_1d (struct GMT_CTRL *GMT, double *gtg, double *gtd, double *model, unsigned int n_model, unsigned int mp, double *lambda, double *v, double *b, double *z, double c_no, unsigned int *ir) {
unsigned int i, j, k, rank = 0, nrots;
double c_test, temp_inverse_ij;
if (n_model == 1) {
model[0... | solve_system_1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void solve_system_2d(GMT_CTRL *GMT, double *gtg, double *gtd, double *model,
unsigned int n_model, unsigned int mp, double *lambda,
double *v, double *b, double *z, double c_no,
unsigned int *ir) {
unsigned int nrots;
unsigned int i;
unsigned int j;
... | GMT_LOCAL void solve_system_2d (struct GMT_CTRL *GMT, double *gtg, double *gtd, double *model, unsigned int n_model, unsigned int mp, double *lambda, double *v, double *b, double *z, double c_no, unsigned int *ir) {
unsigned int i, j, k, rank = 0, nrots;
double c_test, temp_inverse_ij;
if (n_model == 1) {
model[... | solve_system_2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void sort_and_plot_ticks(GMT_CTRL *GMT, PSL_CTRL *PSL, SAVE *save, size_t n,
double *x, double *y, double *z, unsigned int nn,
double tick_gap, double tick_length, bool tick_low,
bool tick_high, bool tick_label, char **in_lbl,
... | GMT_LOCAL void sort_and_plot_ticks (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct SAVE *save, size_t n, double *x, double *y, double *z, unsigned int nn, double tick_gap, double tick_length, bool tick_low, bool tick_high, bool tick_label, char *in_lbl[], unsigned int mode, struct GMT_TEXTSET *T) {
unsigned ... | sort_and_plot_ticks | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double specular(double n_columns, double n_rows, double nz, double *s) {
double v4;
double v6;
v4 = *s * n_columns + s[1] * n_rows;
if ((s[2] * nz + v4 + s[2] * nz + v4) * nz - s[2] < 0.0)
return 0.0;
v6 = s[2] * nz + *s * n_columns + s[1] * n_rows;
return (v6 + v6) * nz - s[2];
} | GMT_LOCAL double specular (double n_columns, double n_rows, double nz, double *s) {
return (MAX(0, 2 * (s[0]*n_columns + s[1]*n_rows + s[2]*nz) * nz - s[2]));
} | specular | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int sph_compare_arc(const void *p1, const void *p2) {
if (*(_QWORD *)p1 < *(_QWORD *)p2)
return -1;
if (*(_QWORD *)p1 > *(_QWORD *)p2)
return 1;
if (*((_QWORD *)p1 + 1) >= *((_QWORD *)p2 + 1))
return *((_QWORD *)p1 + 1) > *((_QWORD *)p2 + 1);
return -1;
} | GMT_LOCAL int sph_compare_arc (const void *p1, const void *p2) {
const struct STRPACK_ARC *a = p1, *b = p2;
if (a->begin < b->begin) return (-1);
if (a->begin > b->begin) return (1);
if (a->end < b->end) return (-1);
if (a->end > b->end) return (1);
return (0);
} | sph_compare_arc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void sphere_project_setup(GMT_CTRL *GMT, double alat, double alon, double *a,
double blat, double blon, double *b, double azim,
double *p, double *c, bool two_pts) {
double e[10];
*(_QWORD *)&e[9] = __readfsqword(0x28u);
if (two_pts) {
gmt_geo_to_cart(GMT, ... | GMT_LOCAL void sphere_project_setup (struct GMT_CTRL *GMT, double alat, double alon, double *a, double blat, double blon, double *b, double azim, double *p, double *c, bool two_pts) {
double e[9];
if (two_pts) {
gmt_geo_to_cart (GMT, alat, alon, a, true);
gmt_geo_to_cart (GMT, blat, ... | sphere_project_setup | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline1d_Wessel_Bercovici(GMT_CTRL *GMT, double r, double *par,
GREENSPLINE_LOOKUP *unused) {
double cx_0;
if (r == 0.0)
return 0.0;
cx_0 = *par * r;
return exp(-cx_0) + cx_0 - 1.0;
} | GMT_LOCAL double spline1d_Wessel_Bercovici (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) {
double cx;
gmt_M_unused(GMT); gmt_M_unused(unused);
if (r == 0.0) return (0.0);
cx = par[0] * r;
return (exp (-cx) + cx - 1.0);
} | spline1d_Wessel_Bercovici | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline1d_linear(GMT_CTRL *GMT, double r, double *par,
GREENSPLINE_LOOKUP *unused) {
return r;
} | GMT_LOCAL double spline1d_linear (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) {
gmt_M_unused(GMT); gmt_M_unused(par); gmt_M_unused(unused);
return (r);
} | spline1d_linear | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline1d_sandwell(GMT_CTRL *GMT, double r, double *par,
GREENSPLINE_LOOKUP *unused) {
if (r == 0.0)
return 0.0;
else
return pow(r, 3.0);
} | GMT_LOCAL double spline1d_sandwell (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) {
gmt_M_unused(GMT); gmt_M_unused(par); gmt_M_unused(unused);
if (r == 0.0) return (0.0);
return (pow (r, 3.0));
} | spline1d_sandwell | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline2d_Mitasova_Mitas(GMT_CTRL *GMT, double r, double *par,
GREENSPLINE_LOOKUP *unused) {
double ga;
double z;
double x;
double xa;
if (r == 0.0)
return 0.0;
z = par[1] * r * r;
if (z > 1.0) {
ga = log(z) + 0.5772156649015329;
xa = z * z;
return (8.... | GMT_LOCAL double spline2d_Mitasova_Mitas (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) {
double x, z, g, En, Ed;
gmt_M_unused(GMT); gmt_M_unused(unused);
if (r == 0.0) return (0.0);
x = z = par[1] * r * r;
if (z <= 1.0) {
g = 0.99999193 * x;
x *= x;
g -= 0.24991055 * x;
... | spline2d_Mitasova_Mitas | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline2d_Parker(GMT_CTRL *GMT, double x, double *par,
GREENSPLINE_LOOKUP *unused) {
if (x == 1.0)
return 1.0;
if (x == -1.0)
return 0.0;
return gmt_dilog(GMT, 0.5 - x * 0.5) * *par;
} | GMT_LOCAL double spline2d_Parker (struct GMT_CTRL *GMT, double x, double par[], struct GREENSPLINE_LOOKUP *unused) {
gmt_M_unused(unused);
if (x == +1.0) return (1.0);
if (x == -1.0) return (0.0);
return (gmt_dilog (GMT, 0.5 - 0.5 * x) * par[0]);
} | spline2d_Parker | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline2d_Wessel_Becker_Revised(GMT_CTRL *GMT, double x, double *par,
GREENSPLINE_LOOKUP *Lz) {
unsigned int l;
unsigned int L_max;
double P0;
double P1;
double S;
double P2;
L_max = get_L(x, *par, par[1]);
P0 = 1.0;
P1 = x;
S = par[2];
for (l = 1; l <=... | GMT_LOCAL double spline2d_Wessel_Becker_Revised (struct GMT_CTRL *GMT, double x, double par[], struct GREENSPLINE_LOOKUP *Lz) {
unsigned int L_max, l;
double P0, P1, P2, S;
gmt_M_unused(GMT);
L_max = get_L (x, par[0], par[1]);
P0 = 1.0;
P1 = x;
S = par[2];
for (l = 1; l <= L_max; l++) {
S += ... | spline2d_Wessel_Becker_Revised | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void spline2d_Wessel_Becker_init(GMT_CTRL *GMT, double *par,
GREENSPLINE_LOOKUP *Lz,
GREENSPLINE_LOOKUP *Lg) {
double v4;
double *v5;
double *v6;
uint64_t i;
double *x;
unsigned long n_columns;
n_columns = lrint(par[7]);
Lz->n = n_column... | GMT_LOCAL void spline2d_Wessel_Becker_init (struct GMT_CTRL *GMT, double par[], struct GREENSPLINE_LOOKUP *Lz, struct GREENSPLINE_LOOKUP *Lg) {
uint64_t i, n_columns;
double *x = NULL;
#ifdef DUMP
FILE *fp = NULL;
uint64_t n_out;
double out[3];
fp = fopen ("greenspline.b", "wb");
n_out = (Lg) ? 3 : 2;
#endif
n_... | spline2d_Wessel_Becker_init | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline2d_Wessel_Becker_lookup(GMT_CTRL *GMT, double x, double *par,
GREENSPLINE_LOOKUP *L) {
return spline2d_lookup(GMT, x, par, L);
} | GMT_LOCAL double spline2d_Wessel_Becker_lookup (struct GMT_CTRL *GMT, double x, double par[], struct GREENSPLINE_LOOKUP *L) {
return (spline2d_lookup (GMT, x, par, L));
} | spline2d_Wessel_Becker_lookup | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void spline2d_Wessel_Becker_splineinit(GMT_CTRL *GMT, double *par, double *x,
GREENSPLINE_LOOKUP *L) {
L->c = (double *)gmt_memory_func(GMT, 0, 3 * L->n, 8u, 0,
"spline2d_Wessel_Becker_splineinit");
gmtlib_cspline(GMT, x, L->y, L->n, L->c);
} | GMT_LOCAL void spline2d_Wessel_Becker_splineinit (struct GMT_CTRL *GMT, double par[], double *x, struct GREENSPLINE_LOOKUP *L) {
gmt_M_unused(GMT);
gmt_M_unused(par);
L->c = gmt_M_memory (GMT, NULL, 3*L->n, double);
gmtlib_cspline (GMT, x, L->y, L->n, L->c);
} | spline2d_Wessel_Becker_splineinit | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline2d_Wessel_Bercovici(GMT_CTRL *GMT, double r, double *par,
GREENSPLINE_LOOKUP *unused) {
double v5;
double v6;
double cx_0;
double y;
double ya;
double z;
if (r == 0.0)
return 0.0;
cx_0 = *par * r;
if (par[1] < r) {
ya = par[1] / r;
v5 = exp(-(... | GMT_LOCAL double spline2d_Wessel_Bercovici (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) {
double y, z, cx, t, g;
gmt_M_unused(GMT); gmt_M_unused(unused);
if (r == 0.0) return (0.0);
cx = par[0] * r;
if (r <= par[1]) {
y = 0.25 * (t = cx * cx);
z = t / 14.0625;
g = (-log... | spline2d_Wessel_Bercovici | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline2d_lookup(GMT_CTRL *GMT, double x, double *par,
GREENSPLINE_LOOKUP *L) {
double f;
double f0;
long k;
f = par[9] * (x - par[10]);
f0 = floor(f);
k = lrint(f0);
if (f - f0 == 0.0)
return L->y[k];
else
return csplint(L->y, L->c, f - f0, par[4], k);
} | GMT_LOCAL double spline2d_lookup (struct GMT_CTRL *GMT, double x, double par[], struct GREENSPLINE_LOOKUP *L) {
uint64_t k;
double f, f0, df, y;
gmt_M_unused(GMT);
f = (x - par[10]) * par[9];
f0 = floor (f);
df = f - f0;
k = lrint (f0);
if (df == 0.0) return (L->y[k]);
y = csplint (L->y, L->c, df, par[4],... | spline2d_lookup | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline2d_sandwell(GMT_CTRL *GMT, double r, double *par,
GREENSPLINE_LOOKUP *unused) {
if (r == 0.0)
return 0.0;
else
return (log(r) - 1.0) * (r * r);
} | GMT_LOCAL double spline2d_sandwell (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) {
gmt_M_unused(GMT); gmt_M_unused(par); gmt_M_unused(unused);
if (r == 0.0) return (0.0);
return (r * r * (log (r) - 1.0));
} | spline2d_sandwell | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline3d_Mitasova_Mitas(GMT_CTRL *GMT, double r, double *par,
GREENSPLINE_LOOKUP *unused) {
double x;
if (r == 0.0)
return 0.0;
x = *par * r;
return erf(x * 0.5) / x - 0.5641895835477563;
} | GMT_LOCAL double spline3d_Mitasova_Mitas (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) {
double x;
gmt_M_unused(GMT); gmt_M_unused(unused);
if (r == 0.0) return (0.0);
x = par[0] * r;
return ((erf (0.5 * x) / x) - M_INV_SQRT_PI);
} | spline3d_Mitasova_Mitas | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline3d_Wessel_Bercovici(GMT_CTRL *GMT, double r, double *par,
GREENSPLINE_LOOKUP *unused) {
double cx_0;
if (r == 0.0)
return 0.0;
cx_0 = *par * r;
return (exp(-cx_0) - 1.0) / cx_0 + 1.0;
} | GMT_LOCAL double spline3d_Wessel_Bercovici (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) {
double cx;
gmt_M_unused(GMT); gmt_M_unused(unused);
if (r == 0.0) return (0.0);
cx = par[0] * r;
return (((exp (-cx) - 1.0) / cx) + 1.0);
} | spline3d_Wessel_Bercovici | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double spline3d_sandwell(GMT_CTRL *GMT, double r, double *par,
GREENSPLINE_LOOKUP *unused) {
if (r == 0.0)
return 0.0;
return r;
} | GMT_LOCAL double spline3d_sandwell (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) {
gmt_M_unused(GMT); gmt_M_unused(par); gmt_M_unused(unused);
if (r == 0.0) return (0.0);
return (r);
} | spline3d_sandwell | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *stresep(char **stringp, const char *delim, int esc) {
char *v4;
char *v5;
const char *v6;
int c;
char *s;
const char *spanp;
char *tok;
if (!delim)
__assert_fail("delim != NULL",
"/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/"
"src/common_strin... | char *stresep(char **stringp, const char *delim, int esc) {
char *s;
const char *spanp;
int c, sc;
char *tok;
assert(delim != NULL);
if ((s = *stringp) == NULL)
return NULL;
for (tok = s;;) {
c = *s++;
while (esc != '\0' && c == esc) {
(void)strcpy(s - 1, s);
c = *s++;
}
spanp = delim;
do {
... | stresep | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int strip_blanks_and_output(GMT_CTRL *GMT, char *text, double x, int col) {
int k;
gmt_ascii_format_col(GMT, text, x, 1u, col);
for (k = 0; text[k] == 32; ++k)
;
return k;
} | GMT_LOCAL int strip_blanks_and_output (struct GMT_CTRL *GMT, char *text, double x, int col) {
int k;
gmt_ascii_format_col (GMT, text, x, GMT_OUT, col);
for (k = 0; text[k] && text[k] == ' '; k++);
return (k);
} | strip_blanks_and_output | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int stripack_delaunay_output(GMT_CTRL *GMT, double *lon, double *lat,
STRIPACK_DELAUNAY *D, uint64_t get_arcs,
unsigned int get_area, uint64_t nodes,
GMT_DATASET **Dout) {
bool v8;
double v10;
STRPACK_ARC *v11;
STRPACK_ARC *v... | GMT_LOCAL int stripack_delaunay_output (struct GMT_CTRL *GMT, double *lon, double *lat, struct STRIPACK_DELAUNAY *D, uint64_t get_arcs, unsigned int get_area, uint64_t nodes, struct GMT_DATASET *Dout[]) {
uint64_t i, ij;
bool do_authalic;
uint64_t dim[GMT_DIM_SIZE] = {1, 0, 0, 0}, k;
double area_sphere = 0.0, are... | stripack_delaunay_output | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int stripack_voronoi_output(GMT_CTRL *GMT, uint64_t n, double *lon, double *lat,
STRIPACK_VORONOI *V, bool get_arcs,
unsigned int get_area, uint64_t nodes,
GMT_DATASET **Dout) {
bool v9;
uint64_t v10;
unsigned int v11;
double v1... | GMT_LOCAL int stripack_voronoi_output (struct GMT_CTRL *GMT, uint64_t n, double *lon, double *lat, struct STRIPACK_VORONOI *V, bool get_arcs, unsigned int get_area, uint64_t nodes, struct GMT_DATASET *Dout[]) {
bool do_authalic;
unsigned int geometry;
uint64_t i, j, k, node, vertex, node_stop, node_new, vertex_ne... | stripack_voronoi_output | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *strsepz(char **stringp, const char *delim) {
char *c;
do
c = strsep(stringp, delim);
while (c && !*c);
return c;
} | char *strsepz (char **stringp, const char *delim) {
char *c;
while ( (c = strsep(stringp, delim)) != NULL && *c == '\0' );
return c;
} | strsepz | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void suggest_sizes(GMT_CTRL *GMT, GMT_GRID *G, unsigned int *factors,
unsigned int n_columns, unsigned int n_rows, bool pixel) {
unsigned int i;
unsigned int n_sug;
unsigned int save_range;
unsigned int m;
unsigned int ma;
GMT_SURFACE_SUGGESTION *sug;
double w;
double e;
double s;
... | GMT_LOCAL void suggest_sizes (struct GMT_CTRL *GMT, struct GMT_GRID *G, unsigned int factors[], unsigned int n_columns, unsigned int n_rows, bool pixel) {
unsigned int i;
unsigned int n_sug = 0;
struct GMT_SURFACE_SUGGESTION *sug = NULL;
n_sug = gmt_optimal_dim_for_surface (GMT, factors, n_columns, n_rows,... | suggest_sizes | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_add_decoration(GMT_CTRL *GMT, GMT_TEXTSEGMENT *S, GMT_LABEL *L,
GMT_DECORATE *G) {
double end;
char **data;
uint64_t v6;
double cosx;
double sinx;
GMT_DECORATE *Ga;
GMT_LABEL *La;
GMT_TEXTSEGMENT *Sa;
GMT_CTRL *GMTa;
double s;
double c;
double sign;
cha... | GMT_LOCAL void support_add_decoration (struct GMT_CTRL *GMT, struct GMT_TEXTSEGMENT *S, struct GMT_LABEL *L, struct GMT_DECORATE *G) {
char record[GMT_BUFSIZ] = {""};
if (S->n_rows == S->n_alloc) {
S->n_alloc += GMT_SMALL_CHUNK;
S->data = gmt_M_memory (GMT, S->data, S->n_alloc, char *);
}
if (G->nudge_flag... | support_add_decoration | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int support_char_count(char *txt, char c) {
unsigned int v2;
unsigned int i;
unsigned int n;
i = 0;
n = 0;
while (txt[i]) {
v2 = i++;
if (c == txt[v2])
++n;
}
return n;
} | GMT_LOCAL unsigned int support_char_count (char *txt, char c) {
unsigned int i = 0, n = 0;
while (txt[i]) if (txt[i++] == c) n++;
return (n);
} | support_char_count | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool support_check_cmyk(double *cmyk) {
unsigned int i;
unsigned int ia;
for (i = 0; i <= 3; ++i)
cmyk[i] = 0.01 * cmyk[i];
for (ia = 0; ia <= 3; ++ia) {
if (cmyk[ia] < 0.0 || cmyk[ia] > 1.0)
return 1;
}
return 0;
} | GMT_LOCAL bool support_check_cmyk (double cmyk[]) {
unsigned int i;
for (i = 0; i < 4; i++) cmyk[i] *= 0.01;
for (i = 0; i < 4; i++) if (cmyk[i] < 0.0 || cmyk[i] > 1.0) return (true);
return (false);
} | support_check_cmyk | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool support_check_hsv(double *hsv) {
return *hsv < 0.0 || *hsv > 360.0 || hsv[1] < 0.0 || hsv[1] > 1.0 ||
hsv[2] < 0.0 || hsv[2] > 1.0;
} | GMT_LOCAL bool support_check_hsv (double hsv[]) {
return ((hsv[0] < 0.0 || hsv[0] > 360.0) || (hsv[1] < 0.0 || hsv[1] > 1.0) || (hsv[2] < 0.0 || hsv[2] > 1.0));
} | support_check_hsv | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool support_check_irgb(int *irgb, double *rgb) {
if ((unsigned int)*irgb >= 0x100 || (unsigned int)irgb[1] >= 0x100 ||
(unsigned int)irgb[2] >= 0x100)
return 1;
*rgb = (double)*irgb / 255.0;
rgb[1] = (double)irgb[1] / 255.0;
rgb[2] = (double)irgb[2] / 255.0;
return 0;
} | GMT_LOCAL bool support_check_irgb (int irgb[], double rgb[]) {
if ((irgb[0] < 0 || irgb[0] > 255) || (irgb[1] < 0 || irgb[1] > 255) || (irgb[2] < 0 || irgb[2] > 255)) return (true);
rgb[0] = gmt_M_is255 (irgb[0]);
rgb[1] = gmt_M_is255 (irgb[1]);
rgb[2] = gmt_M_is255 (irgb[2]);
return (false);
} | support_check_irgb | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool support_check_rgb(double *rgb) {
return *rgb < 0.0 || *rgb > 1.0 || rgb[1] < 0.0 || rgb[1] > 1.0 ||
rgb[2] < 0.0 || rgb[2] > 1.0;
} | GMT_LOCAL bool support_check_rgb (double rgb[]) {
return ((rgb[0] < 0.0 || rgb[0] > 1.0) || (rgb[1] < 0.0 || rgb[1] > 1.0) || (rgb[2] < 0.0 || rgb[2] > 1.0));
} | support_check_rgb | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_cmyk_to_hsv(double *hsv, double *cmyk) {
double rgb[6];
*(_QWORD *)&rgb[5] = __readfsqword(0x28u);
support_cmyk_to_rgb(rgb, cmyk);
support_rgb_to_hsv(rgb, hsv);
} | GMT_LOCAL void support_cmyk_to_hsv (double hsv[], double cmyk[]) {
double rgb[4];
support_cmyk_to_rgb (rgb, cmyk);
support_rgb_to_hsv (rgb, hsv);
} | support_cmyk_to_hsv | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_cmyk_to_rgb(double *rgb, double *cmyk) {
int i;
rgb[3] = cmyk[4];
for (i = 0; i <= 2; ++i)
rgb[i] = 1.0 - cmyk[i] - cmyk[3];
} | GMT_LOCAL void support_cmyk_to_rgb (double rgb[], double cmyk[]) {
int i;
rgb[3] = cmyk[4];
for (i = 0; i < 3; i++) rgb[i] = 1.0 - cmyk[i] - cmyk[3];
} | support_cmyk_to_rgb | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_code_to_lonlat(GMT_CTRL *GMT, char *code, double *lon,
double *lat) {
bool z_OK;
int i;
int error;
error = 0;
z_OK = 0;
if ((unsigned int)strlen(code) != 2)
return 1;
for (i = 0; i <= 1; ++i) {
switch (code[i]) {
case '+':
if (z_OK) {
*lat ... | GMT_LOCAL int support_code_to_lonlat (struct GMT_CTRL *GMT, char *code, double *lon, double *lat) {
int i, n, error = 0;
bool z_OK = false;
n = (int)strlen (code);
if (n != 2) return (1);
for (i = 0; i < 2; i++) {
switch (code[i]) {
case 'l':
case 'L':
*lon = GMT->common.R.wesn[XLO];
break;
c... | support_code_to_lonlat | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_char_asc(const void *p_1, const void *p_2) {
if (*(_BYTE *)p_1 >= *(_BYTE *)p_2)
return *(_BYTE *)p_1 > *(_BYTE *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_char_asc (const void *p_1, const void *p_2) {
const char *point_1 = p_1, *point_2 = p_2;
if ((*point_1) < (*point_2)) return (-1);
if ((*point_1) > (*point_2)) return (+1);
return (0);
} | support_comp_char_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_double_asc(const void *p_1, const void *p_2) {
if (*(double *)p_2 <= *(double *)p_1)
return *(double *)p_1 > *(double *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_double_asc (const void *p_1, const void *p_2) {
bool bad_1, bad_2;
const double *point_1 = p_1, *point_2 = p_2;
bad_1 = gmt_M_is_dnan ((*point_1));
bad_2 = gmt_M_is_dnan ((*point_2));
if (bad_1 && bad_2) return (0);
if (bad_1) return (+1);
if (bad_2) return (-1);
if ((*point_1)... | support_comp_double_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_float_asc(const void *p_1, const void *p_2) {
if (*(float *)p_2 <= *(float *)p_1)
return *(float *)p_1 > *(float *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_float_asc (const void *p_1, const void *p_2) {
bool bad_1, bad_2;
const float *point_1 = p_1, *point_2 = p_2;
bad_1 = gmt_M_is_fnan ((*point_1));
bad_2 = gmt_M_is_fnan ((*point_2));
if (bad_1 && bad_2) return (0);
if (bad_1) return (+1);
if (bad_2) return (-1);
if ((*point_1) <... | support_comp_float_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_int_asc(const void *p_1, const void *p_2) {
if (*(_DWORD *)p_1 >= *(_DWORD *)p_2)
return *(_DWORD *)p_1 > *(_DWORD *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_int_asc (const void *p_1, const void *p_2) {
const int *point_1 = p_1, *point_2 = p_2;
if ((*point_1) < (*point_2)) return (-1);
if ((*point_1) > (*point_2)) return (+1);
return (0);
} | support_comp_int_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_long_asc(const void *p_1, const void *p_2) {
if (*(_QWORD *)p_1 >= *(_QWORD *)p_2)
return *(_QWORD *)p_1 > *(_QWORD *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_long_asc (const void *p_1, const void *p_2) {
const int64_t *point_1 = p_1, *point_2 = p_2;
if ((*point_1) < (*point_2)) return (-1);
if ((*point_1) > (*point_2)) return (+1);
return (0);
} | support_comp_long_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_short_asc(const void *p_1, const void *p_2) {
if (*(_WORD *)p_1 >= *(_WORD *)p_2)
return *(_WORD *)p_1 > *(_WORD *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_short_asc (const void *p_1, const void *p_2) {
const short int *point_1 = p_1, *point_2 = p_2;
if ((*point_1) < (*point_2)) return (-1);
if ((*point_1) > (*point_2)) return (+1);
return (0);
} | support_comp_short_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_uchar_asc(const void *p_1, const void *p_2) {
if (*(_BYTE *)p_1 >= *(_BYTE *)p_2)
return *(_BYTE *)p_1 > *(_BYTE *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_uchar_asc (const void *p_1, const void *p_2) {
const unsigned char *point_1 = p_1, *point_2 = p_2;
if ((*point_1) < (*point_2)) return (-1);
if ((*point_1) > (*point_2)) return (+1);
return (0);
} | support_comp_uchar_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_uint_asc(const void *p_1, const void *p_2) {
if (*(_DWORD *)p_1 >= *(_DWORD *)p_2)
return *(_DWORD *)p_1 > *(_DWORD *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_uint_asc (const void *p_1, const void *p_2) {
const unsigned int *point_1 = p_1, *point_2 = p_2;
if ((*point_1) < (*point_2)) return (-1);
if ((*point_1) > (*point_2)) return (+1);
return (0);
} | support_comp_uint_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_ulong_asc(const void *p_1, const void *p_2) {
if (*(_QWORD *)p_1 >= *(_QWORD *)p_2)
return *(_QWORD *)p_1 > *(_QWORD *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_ulong_asc (const void *p_1, const void *p_2) {
const uint64_t *point_1 = p_1, *point_2 = p_2;
if ((*point_1) < (*point_2)) return (-1);
if ((*point_1) > (*point_2)) return (+1);
return (0);
} | support_comp_ulong_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_comp_ushort_asc(const void *p_1, const void *p_2) {
if (*(_WORD *)p_1 >= *(_WORD *)p_2)
return *(_WORD *)p_1 > *(_WORD *)p_2;
else
return -1;
} | GMT_LOCAL int support_comp_ushort_asc (const void *p_1, const void *p_2) {
const unsigned short int *point_1 = p_1, *point_2 = p_2;
if ((*point_1) < (*point_2)) return (-1);
if ((*point_1) > (*point_2)) return (+1);
return (0);
} | support_comp_ushort_asc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_compare_sugs(const void *point_1, const void *point_2) {
if (*((double *)point_2 + 1) > *((double *)point_1 + 1))
return 1;
if (*((double *)point_1 + 1) <= *((double *)point_2 + 1))
return 0;
return -1;
} | GMT_LOCAL int support_compare_sugs (const void *point_1, const void *point_2) {
if (((struct GMT_SURFACE_SUGGESTION *)point_1)->factor < ((struct GMT_SURFACE_SUGGESTION *)point_2)->factor) return (1);
if (((struct GMT_SURFACE_SUGGESTION *)point_1)->factor > ((struct GMT_SURFACE_SUGGESTION *)point_2)->factor) return... | support_compare_sugs | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_contlabel_addpath(GMT_CTRL *GMT, double *x, double *y, uint64_t n,
double zval, char *label, bool annot,
GMT_CONTOUR *G) {
size_t v8;
GMT_CONTOUR_LINE **v9;
size_t v10;
double end;
size_t v12;
GMT_LABEL *v13;
double cosx;
double ... | GMT_LOCAL void support_contlabel_addpath (struct GMT_CTRL *GMT, double x[], double y[], uint64_t n, double zval, char *label, bool annot, struct GMT_CONTOUR *G) {
uint64_t i;
double s = 0.0, c = 1.0, sign = 1.0;
struct GMT_CONTOUR_LINE *L = NULL;
if (G->n_alloc == 0 || G->n_segments == G->n_alloc) {
G->n_alloc... | support_contlabel_addpath | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_contlabel_angle(GMT_CTRL *GMT, double *x, double *y,
uint64_t start, uint64_t stop, double cangle,
uint64_t n, bool contour, GMT_LABEL *L,
GMT_CONTOUR *G) {
double v10;
double v11;
double v12;
double v13;
doubl... | GMT_LOCAL void support_contlabel_angle (struct GMT_CTRL *GMT, double x[], double y[], uint64_t start, uint64_t stop, double cangle, uint64_t n, bool contour, struct GMT_LABEL *L, struct GMT_CONTOUR *G) {
if ((G->nudge_flag == 2 && G->half_width == UINT_MAX ) || G->half_width == 0) {
support_contlabel_angle_line (... | support_contlabel_angle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_contlabel_angle_ave(GMT_CTRL *GMT, double *x, double *y,
uint64_t start, uint64_t stop, double cangle,
uint64_t n, GMT_LABEL *L, GMT_CONTOUR *G) {
support_line_angle_ave(GMT, x, y, start, stop, cangle, n, G->half_width,
... | GMT_LOCAL void support_contlabel_angle_ave (struct GMT_CTRL *GMT, double x[], double y[], uint64_t start, uint64_t stop, double cangle, uint64_t n, struct GMT_LABEL *L, struct GMT_CONTOUR *G) {
support_line_angle_ave (GMT, x, y, start, stop, cangle, n, G->half_width, G->angle_type, L);
} | support_contlabel_angle_ave | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_contlabel_angle_line(GMT_CTRL *GMT, double *x, double *y,
uint64_t start, uint64_t stop, double cangle,
uint64_t n, GMT_LABEL *L, GMT_CONTOUR *G) {
support_line_angle_line(GMT, x, y, start, stop, cangle, n, G->angle_type, L);
} | GMT_LOCAL void support_contlabel_angle_line (struct GMT_CTRL *GMT, double x[], double y[], uint64_t start, uint64_t stop, double cangle, uint64_t n, struct GMT_LABEL *L, struct GMT_CONTOUR *G) {
support_line_angle_line (GMT, x, y, start, stop, cangle, n, G->angle_type, L);
} | support_contlabel_angle_line | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_contlabel_fixpath(GMT_CTRL *GMT, double **xin, double **yin,
double *d, uint64_t *n, GMT_CONTOUR *G) {
uint64_t i;
uint64_t j;
uint64_t k;
double *xp;
double *yp;
double *x;
double *y;
uint64_t np;
if (G->n_label) {
if (G->n_label > 1)
qsort(G->L,... | GMT_LOCAL void support_contlabel_fixpath (struct GMT_CTRL *GMT, double **xin, double **yin, double d[], uint64_t *n, struct GMT_CONTOUR *G) {
uint64_t i, j, k, np;
double *xp = NULL, *yp = NULL, *x = NULL, *y = NULL;
if (G->n_label == 0) return;
if (G->n_label > 1) qsort (G->L, G->n_label, sizeof (struct GMT... | support_contlabel_fixpath | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_copy_palette_hdrs(GMT_CTRL *GMT, GMT_PALETTE *P_to,
GMT_PALETTE *P_from) {
char **v3;
unsigned int hdr;
if (P_from->n_headers) {
P_to->n_headers = P_from->n_headers;
if (P_to->n_headers)
P_to->header = (char **)gmt_memory_func(GMT, 0, P_from->n_headers, 8... | GMT_LOCAL void support_copy_palette_hdrs (struct GMT_CTRL *GMT, struct GMT_PALETTE *P_to, struct GMT_PALETTE *P_from) {
unsigned int hdr;
if (P_from->n_headers == 0) return;
P_to->n_headers = P_from->n_headers;
if (P_to->n_headers) P_to->header = gmt_M_memory (GMT, NULL, P_from->n_headers, char *);
for (hdr = 0... | support_copy_palette_hdrs | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_cpt_z_scale(GMT_CTRL *GMT, GMT_PALETTE *P, CPT_Z_SCALE *Z,
unsigned int direction) {
unsigned int k;
double scale;
scale = 1.0;
if (direction) {
if (direction == 1) {
if (Z) {
P->z_adjust[1] = Z->z_adjust;
P->z_unit[1] = Z->z_unit;
P->z_mo... | GMT_LOCAL void support_cpt_z_scale (struct GMT_CTRL *GMT, struct GMT_PALETTE *P, struct CPT_Z_SCALE *Z, unsigned int direction) {
unsigned int k;
double scale = 1.0;
if (direction == GMT_IN) {
if (Z) {
P->z_adjust[GMT_IN] = Z->z_adjust; P->z_unit[GMT_IN] = Z->z_unit;
P->z_mode[GMT_IN] = Z->z_mode; P->z... | support_cpt_z_scale | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_DATASET *support_crosstracks_cartesian(GMT_CTRL *GMT, GMT_DATASET *Din,
double cross_length,
double across_ds, uint64_t n_cols,
unsigned int mode) {
signed long n_segments;
double v8;... | GMT_LOCAL struct GMT_DATASET * support_crosstracks_cartesian (struct GMT_CTRL *GMT, struct GMT_DATASET *Din, double cross_length, double across_ds, uint64_t n_cols, unsigned int mode) {
int k, ndig, sdig, n_half_cross;
unsigned int ii, np_cross;
uint64_t tbl, row, seg, seg_no, n_tot_cols;
uint64_t dim[G... | support_crosstracks_cartesian | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_DATASET *support_crosstracks_spherical(GMT_CTRL *GMT, GMT_DATASET *Din,
double cross_length,
double across_ds, uint64_t n_cols,
unsigned int mode) {
signed long n_segments;
double v8;... | GMT_LOCAL struct GMT_DATASET * support_crosstracks_spherical (struct GMT_CTRL *GMT, struct GMT_DATASET *Din, double cross_length, double across_ds, uint64_t n_cols, unsigned int mode) {
int k, ndig, sdig, n_half_cross;
unsigned int ii, np_cross;
uint64_t dim[GMT_DIM_SIZE] = {0, 0, 0, 0};
uint64_t tbl, ... | support_crosstracks_spherical | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double support_csplint(GMT_CTRL *GMT, double *x, double *y, double *c,
double xp, uint64_t klo) {
double h;
double a;
double b;
h = x[klo + 1] - x[klo];
a = (x[klo + 1] - xp) * (1.0 / h);
b = (xp - x[klo]) * (1.0 / h);
return h * h * ((a * a * a - a) * c[klo] + c[klo + 1] * (b * b ... | GMT_LOCAL double support_csplint (struct GMT_CTRL *GMT, double *x, double *y, double *c, double xp, uint64_t klo) {
uint64_t khi;
double h, ih, b, a, yp;
gmt_M_unused(GMT);
khi = klo + 1;
h = x[khi] - x[klo];
ih = 1.0 / h;
a = (x[khi] - xp) * ih;
b = (xp - x[klo]) * ih;
yp = a * y[klo] + b * y[khi] + ((a*a*a ... | support_csplint | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double support_csplintcurv(GMT_CTRL *GMT, double *x, double *c, double xp,
uint64_t klo) {
double ih;
ih = 1.0 / (x[klo + 1] - x[klo]);
return -(c[klo] * ((x[klo + 1] - xp) * ih) +
c[klo + 1] * ((xp - x[klo]) * ih));
} | GMT_LOCAL double support_csplintcurv (struct GMT_CTRL *GMT, double *x, double *c, double xp, uint64_t klo) {
uint64_t khi;
double h, ih, b, a, d2ypdx2;
gmt_M_unused(GMT);
khi = klo + 1;
h = x[khi] - x[klo];
ih = 1.0 / h;
a = (x[khi] - xp) * ih;
b = (xp - x[klo]) * ih;
d2ypdx2 = -(b * c[khi] + a * c[klo]);
... | support_csplintcurv | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double support_csplintslp(GMT_CTRL *GMT, double *x, double *y, double *c,
double xp, uint64_t klo) {
double h;
double a;
double b;
h = x[klo + 1] - x[klo];
a = (x[klo + 1] - xp) * (1.0 / h);
b = (xp - x[klo]) * (1.0 / h);
return (c[klo + 1] * (3.0 * b * b - 1.0) - c[klo] * (3.0 ... | GMT_LOCAL double support_csplintslp (struct GMT_CTRL *GMT, double *x, double *y, double *c, double xp, uint64_t klo) {
uint64_t khi;
double h, ih, b, a, dypdx;
gmt_M_unused(GMT);
khi = klo + 1;
h = x[khi] - x[klo];
ih = 1.0 / h;
a = (x[khi] - xp) * ih;
b = (xp - x[klo]) * ih;
dypdx = ih * (y[khi] - y[klo]) ... | support_csplintslp | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_decode_arg(char *txt, int column, GMT_CUSTOM_SYMBOL_ITEM *s) {
int new_action;
size_t k;
new_action = s->action;
k = strlen(txt) - 1;
if (column > 2)
__assert_fail("column < CUSTOM_SYMBOL_MAXVAR",
"/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/"
... | GMT_LOCAL int support_decode_arg (char *txt, int column, struct GMT_CUSTOM_SYMBOL_ITEM *s) {
int new_action = s->action;
size_t k = strlen (txt) - 1;
assert (column < CUSTOM_SYMBOL_MAXVAR);
if (txt[0] == '$') {
s->var[column] = atoi (&txt[1]);
s->is_var[column] = true;
new_action = GMT_SYMBOL_VARROTA... | support_decode_arg | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_decorate_free(GMT_CTRL *GMT, GMT_DECORATE *G) {
GMT_Destroy_Data(GMT->parent, &G->X);
if (G->f_n) {
gmt_free_func(GMT, G->f_xy[0], 0, "support_decorate_free");
G->f_xy[0] = 0;
gmt_free_func(GMT, G->f_xy[1], 0, "support_decorate_free");
G->f_xy[1] = 0;
}
} | GMT_LOCAL void support_decorate_free (struct GMT_CTRL *GMT, struct GMT_DECORATE *G) {
GMT_Destroy_Data (GMT->parent, &(G->X));
if (G->f_n) {
gmt_M_free (GMT, G->f_xy[GMT_X]);
gmt_M_free (GMT, G->f_xy[GMT_Y]);
}
} | support_decorate_free | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_decorated_angle(GMT_CTRL *GMT, double *x, double *y,
uint64_t start, uint64_t stop, double cangle,
uint64_t n, bool contour, GMT_LABEL *L,
GMT_DECORATE *G) {
double v10;
double v11;
double v12;
double v13;
doub... | GMT_LOCAL void support_decorated_angle (struct GMT_CTRL *GMT, double x[], double y[], uint64_t start, uint64_t stop, double cangle, uint64_t n, bool contour, struct GMT_LABEL *L, struct GMT_DECORATE *G) {
if ((G->nudge_flag == 2 && G->half_width == UINT_MAX ) || G->half_width == 0) {
support_decorated_angle_line ... | support_decorated_angle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_decorated_angle_ave(GMT_CTRL *GMT, double *x, double *y,
uint64_t start, uint64_t stop, double cangle,
uint64_t n, GMT_LABEL *L, GMT_DECORATE *G) {
support_line_angle_ave(GMT, x, y, start, stop, cangle, n, G->half_width,
... | GMT_LOCAL void support_decorated_angle_ave (struct GMT_CTRL *GMT, double x[], double y[], uint64_t start, uint64_t stop, double cangle, uint64_t n, struct GMT_LABEL *L, struct GMT_DECORATE *G) {
support_line_angle_ave (GMT, x, y, start, stop, cangle, n, G->half_width, G->angle_type, L);
} | support_decorated_angle_ave | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_decorated_angle_line(GMT_CTRL *GMT, double *x, double *y,
uint64_t start, uint64_t stop, double cangle,
uint64_t n, GMT_LABEL *L, GMT_DECORATE *G) {
support_line_angle_line(GMT, x, y, start, stop, cangle, n, G->angle_type, L);
} | GMT_LOCAL void support_decorated_angle_line (struct GMT_CTRL *GMT, double x[], double y[], uint64_t start, uint64_t stop, double cangle, uint64_t n, struct GMT_LABEL *L, struct GMT_DECORATE *G) {
support_line_angle_line (GMT, x, y, start, stop, cangle, n, G->angle_type, L);
} | support_decorated_angle_line | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_decorated_line_sub(GMT_CTRL *GMT, double *xx, double *yy,
uint64_t nn, GMT_DECORATE *G, GMT_TEXTSET *D,
uint64_t seg) {
double v7;
double v8;
double v9;
uint64_t n_cont;
double v11;
double v12;
int number_placement;
uint64_t v1... | GMT_LOCAL void support_decorated_line_sub (struct GMT_CTRL *GMT, double *xx, double *yy, uint64_t nn, struct GMT_DECORATE *G, struct GMT_TEXTSET *D, uint64_t seg) {
uint64_t i, j, start = 0;
bool closed;
double *track_dist = NULL, *map_dist = NULL, *value_dist = NULL;
double dx, dy, width, f, this_dist, st... | support_decorated_line_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t support_delaunay_watson(GMT_CTRL *GMT, double *x_in, double *y_in,
uint64_t n, int **link) {
double v5;
int64_t v6;
uint64_t v7;
uint64_t na;
bool done;
uint64_t i;
uint64_t ia;
uint64_t ib;
uint64_t ic;
uint64_t ie;
uint64_t ig;
uint64_t ih;
uint64_t ... | GMT_LOCAL uint64_t support_delaunay_watson (struct GMT_CTRL *GMT, double *x_in, double *y_in, uint64_t n, int **link) {
int *index = NULL;
int ix[3], iy[3];
bool done;
uint64_t i, j, nuc, ij, jt, km, id, isp, l1, l2, k, k1, jz, i2, kmt, kt, size;
int64_t *istack = NULL, *x_tmp = NULL, *y_tmp = NULL;
do... | support_delaunay_watson | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t support_determine_circle(GMT_CTRL *GMT, double x0, double y0, double r,
double *x, double *y, unsigned int n) {
double cosx;
double sinx;
unsigned int na;
double *ya;
double *xa;
double ra;
double y0a;
double x0a;
GMT_CTRL *GMTa;
unsigned int k;
double s_... | GMT_LOCAL uint64_t support_determine_circle (struct GMT_CTRL *GMT, double x0, double y0, double r, double x[], double y[], unsigned int n) {
unsigned int k;
uint64_t np = n;
double d_angle = 360.0 / n;
if (gmt_M_is_geographic (GMT, GMT_IN)) {
double R[3][3], v[3], v_prime[3], lat;
double colat = (r / GMT->c... | support_determine_circle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double support_determine_endpoint(GMT_CTRL *GMT, double x0, double y0,
double length, double az, double *x1,
double *y1) {
double v7;
double v8;
double cosx;
double sinx;
double *y1a;
double *x1a;
double aza;
double lengtha;
double y0... | GMT_LOCAL double support_determine_endpoint (struct GMT_CTRL *GMT, double x0, double y0, double length, double az, double *x1, double *y1) {
double s_az, c_az;
sincosd (az, &s_az, &c_az);
if (gmt_M_is_geographic (GMT, GMT_IN)) {
double s0, c0, s_d, c_d;
double d = (length / GMT->current.map.dist[GMT_MAP_DIST]... | support_determine_endpoint | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double support_determine_endpoints(GMT_CTRL *GMT, double *x, double *y,
double length, double az) {
double v5;
double v6;
double v7;
double v8;
double v10;
double v11;
double cosx;
double sinx;
double aza;
double lengtha;
double *ya;
double *xa;
GMT_CTRL *GMT... | GMT_LOCAL double support_determine_endpoints (struct GMT_CTRL *GMT, double x[], double y[], double length, double az) {
double s_az, c_az;
sincosd (az, &s_az, &c_az);
length /= 2.0;
if (gmt_M_is_geographic (GMT, GMT_IN)) {
double s0, c0, s_d, c_d;
double d = (length / GMT->current.map.dist[GMT_MAP_DIST].scale... | support_determine_endpoints | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_edge_contour(GMT_CTRL *GMT, GMT_GRID *G, unsigned int col,
unsigned int row, unsigned int side, double d,
double *x, double *y) {
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
if (side) {
... | GMT_LOCAL void support_edge_contour (struct GMT_CTRL *GMT, struct GMT_GRID *G, unsigned int col, unsigned int row, unsigned int side, double d, double *x, double *y) {
gmt_M_unused(GMT);
if (side == 0) {
*x = gmt_M_grd_col_to_x (GMT, col+d, G->header);
*y = gmt_M_grd_row_to_y (GMT, row, G->header);
}
else if (s... | support_edge_contour | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_ensure_new_mapinsert_syntax(GMT_CTRL *GMT, char option,
char *in_text, char *text,
char *panel_txt) {
bool center;
unsigned int pos;
unsigned int start;
unsigned int i;
int n;
char unit[2];
char txt_a[256];
char ... | GMT_LOCAL int support_ensure_new_mapinsert_syntax (struct GMT_CTRL *GMT, char option, char *in_text, char *text, char *panel_txt) {
if (strstr (in_text, "+c") || strstr (in_text, "+g") || strstr (in_text, "+p")) {
char p[GMT_BUFSIZ] = {""}, txt_a[GMT_LEN256] = {""}, txt_b[GMT_LEN256] = {""};
unsigned int pos =... | support_ensure_new_mapinsert_syntax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int support_find_cpt_hinge(GMT_CTRL *GMT, GMT_PALETTE *P) {
unsigned int k;
if (!P->has_hinge)
return -1;
for (k = 0; k < P->n_colors; ++k) {
if (doubleAlmostEqualUlpsAndAbs(P->hinge, P->data[k].z_low,
1.110223024625157e-15, 5)) {
GMT_Report(GMT->parent, 6u, "Fou... | GMT_LOCAL int support_find_cpt_hinge (struct GMT_CTRL *GMT, struct GMT_PALETTE *P) {
unsigned int k;
if (!P->has_hinge) return GMT_NOTSET;
for (k = 0; k < P->n_colors; k++) if (doubleAlmostEqualZero (P->hinge, P->data[k].z_low)) {
GMT_Report (GMT->parent, GMT_MSG_DEBUG, "Found CPT hinge = %g for slice k = %u!\n"... | support_find_cpt_hinge | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void support_free_range(GMT_CTRL *GMT, GMT_LUT *S) {
gmt_free_func(GMT, S->label, 0, "support_free_range");
S->label = 0;
gmt_free_func(GMT, S->fill, 0, "support_free_range");
S->fill = 0;
} | GMT_LOCAL void support_free_range (struct GMT_CTRL *GMT, struct GMT_LUT *S) {
gmt_M_free (GMT, S->label);
gmt_M_free (GMT, S->fill);
} | support_free_range | 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.