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 grd_YLMg(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack,
unsigned int last) {
grd_YLM_sub(GMT, info, stack, last, 0);
} | GMT_LOCAL void grd_YLMg (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last)
{
grd_YLM_sub (GMT, info, stack, last, false);
} | grd_YLMg | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grd_YN(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack,
unsigned int last) {
double factor;
double v5;
double v6;
float v7;
float v8;
bool simple;
int order;
float b;
unsigned int prev;
uint64_t node;
prev = last - 1;
order = 0;
simple = 0;
b = 0.0;
if (stack[las... | GMT_LOCAL void grd_YN (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last)
{
uint64_t node;
unsigned int prev = last - 1;
int order = 0;
bool simple = false;
float b = 0.0f;
if (stack[prev]->constant && stack[prev]->factor == 0.0) GMT_Report (GMT->parent, GMT_MSG_V... | grd_YN | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grd_ZCDF(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack,
unsigned int last) {
double v4;
float v5;
uint64_t node;
double a;
a = 0.0;
if (stack[last]->constant)
a = gmt_zdist(GMT, stack[last]->factor);
for (node = 0; node < info->size; ++node) {
if (stack[last]->consta... | GMT_LOCAL void grd_ZCDF (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last)
{
uint64_t node;
double a = 0.0;
if (stack[last]->constant) a = gmt_zdist (GMT, stack[last]->factor);
for (node = 0; node < info->size; node++) stack[last]->G->data[node] = (float)((stack[la... | grd_ZCDF | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grd_ZCRIT(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack,
unsigned int last) {
double v4;
float v5;
uint64_t node;
double a;
a = 0.0;
if (stack[last]->constant)
a = gmt_zcrit(GMT, stack[last]->factor);
for (node = 0; node < info->size; ++node) {
if (stack[last]->cons... | GMT_LOCAL void grd_ZCRIT (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last)
{
uint64_t node;
double a = 0.0;
if (stack[last]->constant) a = gmt_zcrit (GMT, stack[last]->factor);
for (node = 0; node < info->size; node++) stack[last]->G->data[node] = (float)((stack[l... | grd_ZCRIT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grd_ZPDF(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack,
unsigned int last) {
__m128i v4;
double v5;
float v6;
uint64_t node;
double a;
a = 0.0;
if (stack[last]->constant)
a = exp(stack[last]->factor * -0.5 * stack[last]->factor) *
0.3989422804014327;
for (node ... | GMT_LOCAL void grd_ZPDF (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last)
{
uint64_t node;
double a = 0.0, f = 1.0 / sqrt (TWO_PI);
gmt_M_unused(GMT);
if (stack[last]->constant) a = f * exp (-0.5 * stack[last]->factor * stack[last]->factor);
for (node = 0; node <... | grd_ZPDF | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grd_sort_and_plot_ticks(GMT_CTRL *GMT, PSL_CTRL *PSL, SAVE *save, size_t n,
GMT_GRID *G, double tick_gap, double tick_length,
bool tick_low, bool tick_high, bool tick_label,
char **in_lbl, unsigned int mode, GMT_TEXTSET *T) {
... | GMT_LOCAL void grd_sort_and_plot_ticks (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, struct SAVE *save, size_t n, struct GMT_GRID *G, 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) {
int np, j, k, inside, col, row,... | grd_sort_and_plot_ticks | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grd_trivial_model(GMT_CTRL *GMT, GMT_GRID *G, double *xval, double *yval,
double *gtd, unsigned int n_model) {
signed long nm;
double v7;
size_t v8;
unsigned int row;
signed int col;
uint64_t ij;
double sumx2;
double sumy2;
double sumx2y2;
double y2;
double x2;
sumx2... | GMT_LOCAL void grd_trivial_model (struct GMT_CTRL *GMT, struct GMT_GRID *G, double *xval, double *yval, double *gtd, unsigned int n_model) {
unsigned int row, col;
uint64_t ij;
double x2, y2, sumx2 = 0.0, sumy2 = 0.0, sumx2y2 = 0.0;
gmt_M_unused(GMT);
gmt_M_memset (gtd, n_model, double);
gmt_M_row_l... | grd_trivial_model | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
float grd_wquant_sub(GMT_CTRL *GMT, GRDMATH_INFO *info, GMT_GRID *G,
GMT_GRID *W, double q, bool use_grid, double weight) {
uint64_t v7;
float v8;
float result;
unsigned int row;
signed int col;
uint64_t node;
uint64_t n;
double w;
GMT_OBSERVATION *pair;
n = 0;
w = 1.0;
pai... | GMT_LOCAL float grd_wquant_sub (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GMT_GRID *G, struct GMT_GRID *W, double q, bool use_grid, double weight) {
uint64_t node, n = 0;
unsigned int row, col;
float p;
double w = 1.0;
struct GMT_OBSERVATION *pair = gmt_M_memory (GMT, NULL, info->nm, struct GMT_OBSER... | grd_wquant_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
float grd_wvar_sub(GMT_CTRL *GMT, GRDMATH_INFO *info, GMT_GRID *G, GMT_GRID *W,
bool use_grid, double weight) {
double v7;
double v8;
double v9;
unsigned int row;
signed int col;
uint64_t node;
uint64_t n;
double mean;
double sumw;
double M2;
double w;
double delta;
double R... | GMT_LOCAL float grd_wvar_sub (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GMT_GRID *G, struct GMT_GRID *W, bool use_grid, double weight) {
uint64_t node, n = 0;
unsigned int row, col;
double temp, mean = 0.0, sumw = 0.0, delta, R, M2 = 0.0, w = 1.0;
if (!use_grid) w = weight;
gmt_M_grd_loop (GMT, in... | grd_wvar_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int grdcontour_old_T_parser(GMT_CTRL *GMT, char *arg,
GRDCONTOUR_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 (... | GMT_LOCAL unsigned int grdcontour_old_T_parser (struct GMT_CTRL *GMT, char *arg, struct GRDCONTOUR_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... | grdcontour_old_T_parser | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GRDFILTER_BIN_MODE_INFO *grdfilter_bin_setup(GMT_CTRL *GMT, double min,
double max, double width,
bool center, int mode_choice,
bool weighted) {
long v7;
long v8;
double v9;
dou... | GMT_LOCAL struct GRDFILTER_BIN_MODE_INFO *grdfilter_bin_setup (struct GMT_CTRL *GMT, double min, double max, double width, bool center, int mode_choice, bool weighted) {
struct GRDFILTER_BIN_MODE_INFO *B = gmt_M_memory (GMT, NULL, 1, struct GRDFILTER_BIN_MODE_INFO);
B->i_offset = (center) ? 0.5 : 0.0;
B->o_of... | grdfilter_bin_setup | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_GRID_HEADER *grdio_duplicate_gridheader(GMT_CTRL *GMT, GMT_GRID_HEADER *h) {
GMT_GRID_HEADER *hnew;
hnew = (GMT_GRID_HEADER *)gmt_memory_func(GMT, 0, 1u, 0x640u, 0,
"grdio_duplicate_gridheader");
memcpy(hnew, h, sizeof(GMT_GRID_HEADER));
return hnew;
} | GMT_LOCAL struct GMT_GRID_HEADER *grdio_duplicate_gridheader (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h) {
struct GMT_GRID_HEADER *hnew = NULL;
hnew = gmt_M_memory (GMT, NULL, 1, struct GMT_GRID_HEADER);
gmt_M_memcpy (hnew, h, 1, struct GMT_GRID_HEADER);
return (hnew);
} | grdio_duplicate_gridheader | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_expand_filename(GMT_CTRL *GMT, const char *file, char *fname) {
bool v3;
bool found;
unsigned int i;
size_t f_length;
size_t length;
if (!GMT->current.setting.io_gridfile_shorthand)
goto LABEL_12;
f_length = strlen(file);
i = 0;
found = 0;
while (!found && i < GMT->session.n_shorthan... | GMT_LOCAL void grdio_expand_filename (struct GMT_CTRL *GMT, const char *file, char *fname) {
bool found;
unsigned int i;
size_t f_length, length;
if (GMT->current.setting.io_gridfile_shorthand) {
f_length = strlen (file);
for (i = 0, found = false; !found && i < GMT->session.n_shorthands; ++i) {
length = s... | grdio_expand_filename | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_GRID *grdio_get_grid_data(GMT_GRID *ptr) { return ptr; } | GMT_LOCAL inline struct GMT_GRID * grdio_get_grid_data (struct GMT_GRID *ptr) {return (ptr);} | grdio_get_grid_data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_IMAGE *grdio_get_image_data(GMT_IMAGE *ptr) { return ptr; } | GMT_LOCAL inline struct GMT_IMAGE * grdio_get_image_data (struct GMT_IMAGE *ptr) {return (ptr);} | grdio_get_image_data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_grd_check_consistency(GMT_CTRL *GMT, GMT_GRID_HEADER *header,
float *grid) {
unsigned long v3;
float v4;
unsigned long v5;
float v6;
uint32_t row;
uint32_t col;
uint32_t cola;
unsigned int we_conflicts;
unsigned int p_conflicts;
unsigned int p_conflictsa;
... | GMT_LOCAL void grdio_grd_check_consistency (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid) {
unsigned int row = 0, col = 0;
unsigned int we_conflicts = 0, p_conflicts = 0;
uint64_t left = 0, right = 0, node = 0;
if (header->registration == GMT_GRID_PIXEL_REG) return;
if (!gmt_M_is_geogr... | grdio_grd_check_consistency | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int grdio_grd_layout(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid,
unsigned int complex_mode, unsigned int direction) {
char *kind[2];
unsigned long v9;
v9 = __readfsqword(0x28u);
if ((complex_mode & 0xC) == 0)
return 0;
if (2 * header->mx * (unsigned long)header->my > header-... | GMT_LOCAL int grdio_grd_layout (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, unsigned int complex_mode, unsigned int direction) {
size_t needed_size;
if ((complex_mode & GMT_GRID_IS_COMPLEX_MASK) == 0) return GMT_OK;
needed_size = 2ULL * ((size_t)header->mx) * ((size_t)header->my);
if (... | grdio_grd_layout | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_grd_parse_xy_units(GMT_CTRL *GMT, GMT_GRID_HEADER *h, char *file,
unsigned int direction) {
char *v4;
unsigned int mode;
gmt_enum_units u_number;
char *c;
if (GMT->current.io.col_type[(unsigned long)direction][0] != 4 ||
GMT->current.io.col_type[(unsigned long)d... | GMT_LOCAL void grdio_grd_parse_xy_units (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, char *file, unsigned int direction) {
enum gmt_enum_units u_number;
unsigned int mode = 0;
char *c = NULL, *name = NULL;
if (gmt_M_is_geographic (GMT, direction)) return;
name = (file) ? file : h->name;
if ((c = gmtlib_f... | grdio_grd_parse_xy_units | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_grd_wipe_pad(GMT_CTRL *GMT, GMT_GRID *G) {
unsigned int row;
size_t ij0;
size_t ij0a;
if (G->header->arrangement == 1) {
GMT_Report(GMT->parent, 1u,
"Calling grdio_grd_wipe_pad on interleaved complex grid! "
"Programming error?\n");
} else {
if (G->header->pad... | GMT_LOCAL void grdio_grd_wipe_pad (struct GMT_CTRL *GMT, struct GMT_GRID *G) {
unsigned int row;
size_t ij0;
if (G->header->arrangement == GMT_GRID_IS_INTERLEAVED) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Calling grdio_grd_wipe_pad on interleaved complex grid! Programming error?\n");
return;
}
if (G->hea... | grdio_grd_wipe_pad | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_grd_xy_scale(GMT_CTRL *GMT, GMT_GRID_HEADER *h,
unsigned int direction) {
unsigned int k;
unsigned int ka;
unsigned int kb;
unsigned int kc;
unsigned int kd;
unsigned int ke;
if (direction) {
if (direction == 1) {
if ((h->xy_adjust[1] & 1) != 0) {
for ... | GMT_LOCAL void grdio_grd_xy_scale (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, unsigned int direction) {
unsigned int k;
if (direction == GMT_IN) {
if (h->xy_adjust[direction] == 0) return;
if (h->xy_adjust[GMT_IN] & 2) return;
for (k = 0; k < 4; k++) h->wesn[k] *= h->xy_unit_to_meter[GMT_IN];
f... | grdio_grd_xy_scale | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_pack_grid(GMT_CTRL *Ctrl, GMT_GRID_HEADER *header, float *grid,
unsigned int pack_mode) {
int v4;
double v5;
double v6;
size_t n_representations;
size_t n_representationsa;
double z_min;
double z_0_n_range;
n_representations = 0;
if (!pack_mode &&
(header->z_scal... | GMT_LOCAL void grdio_pack_grid (struct GMT_CTRL *Ctrl, struct GMT_GRID_HEADER *header, float *grid, unsigned pack_mode) {
size_t n_representations = 0;
if (pack_mode == k_grd_pack && (header->z_scale_autoadjust || header->z_offset_autoadjust)) {
switch (Ctrl->session.grdformat[header->type][1]) {
case 'b':
... | grdio_pack_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_pad_grd_off_sub(GMT_GRID *G, float *data) {
uint32_t row;
for (row = 0; row < G->header->n_rows; ++row)
memcpy(&data[row * (unsigned long)G->header->n_columns],
&data[G->header->mx * (G->header->pad[3] + (unsigned long)row) +
G->header->pad[0]],
4LL * G->header... | GMT_LOCAL void grdio_pad_grd_off_sub (struct GMT_GRID *G, float *data) {
uint64_t ijp, ij0;
unsigned int row;
for (row = 0; row < G->header->n_rows; row++) {
ijp = gmt_M_ijp (G->header, row, 0);
ij0 = gmt_M_ij0 (G->header, row, 0);
gmt_M_memcpy (&(data[ij0]), &(data[ijp]), G->header->n_columns, float);
}... | grdio_pad_grd_off_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_pad_grd_on_sub(GMT_CTRL *GMT, GMT_GRID *G, GMT_GRID_HEADER *h_old,
float *data) {
unsigned long v4;
long v5;
uint64_t v6;
float *v7;
uint64_t v8;
uint64_t v9;
float *v10;
uint64_t v11;
uint64_t ij_newb;
uint64_t ij_new;
uint64_t ij_newa;
uint64_t ij_oldb;
u... | GMT_LOCAL void grdio_pad_grd_on_sub (struct GMT_CTRL *GMT, struct GMT_GRID *G, struct GMT_GRID_HEADER *h_old, float *data) {
uint64_t ij_new, ij_old, row, col, start_last_new_row, end_last_old_row;
start_last_new_row = gmt_M_get_nm (GMT, G->header->pad[YHI] + G->header->n_rows - 1, G->header->pad[XLO] + G->heade... | grdio_pad_grd_on_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_pad_grd_zero_sub(GMT_GRID *G, float *data) {
unsigned int row;
unsigned int col;
unsigned int cola;
unsigned int nx1;
uint64_t ij_f;
uint64_t ij_l;
if (G->header->pad[3])
memset(data, 0, 4LL * G->header->pad[3] * G->header->mx);
nx1 = G->header->n_columns - 1;
for (row = 0; (signed int... | GMT_LOCAL void grdio_pad_grd_zero_sub (struct GMT_GRID *G, float *data) {
unsigned int row, col, nx1;
uint64_t ij_f, ij_l;
if (G->header->pad[YHI]) gmt_M_memset (data, G->header->pad[YHI] * G->header->mx, float);
nx1 = G->header->n_columns - 1;
gmt_M_row_loop (NULL, G, row) {
ij_f = gmt_M_ijp (G->header, row... | grdio_pad_grd_zero_sub | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int grdio_padspace(GMT_CTRL *GMT, GMT_GRID_HEADER *header, double *wesn,
unsigned int *pad, GRD_PAD *P) {
long v5;
bool v7;
unsigned int side;
unsigned int n_sides;
double wesn2[6];
*(_QWORD *)&wesn2[5] = __readfsqword(0x28u);
n_sides = 0;
memset(P, 0, sizeof(GRD_PAD));
v5 = *((_QW... | GMT_LOCAL int grdio_padspace (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, double *wesn, unsigned int *pad, struct GRD_PAD *P) {
bool wrap;
unsigned int side, n_sides = 0;
double wesn2[4];
gmt_M_unused(GMT);
gmt_M_memset (P, 1, struct GRD_PAD);
gmt_M_memcpy (P->pad, pad, 4, int);
if ... | grdio_padspace | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int grdio_parse_grd_format_scale(GMT_CTRL *GMT, GMT_GRID_HEADER *header,
char *format) {
if (strstr(format, "+s") || strstr(format, "+o") || strstr(format, "+n"))
return grdio_parse_grd_format_scale_new(GMT, header, format);
else
return grdio_parse_grd_format_scale_old(GMT, ... | GMT_LOCAL int grdio_parse_grd_format_scale (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, char *format) {
int code;
if (strstr(format, "+s") || strstr(format, "+o") || strstr(format, "+n"))
code = grdio_parse_grd_format_scale_new (GMT, header, format);
else
code = grdio_parse_grd_format_scale_old (GMT, h... | grdio_parse_grd_format_scale | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int grdio_parse_grd_format_scale_new(GMT_CTRL *GMT, GMT_GRID_HEADER *header,
char *format) {
float v4;
unsigned int pos;
unsigned int uerr;
int err;
char type_code[3];
char p[4104];
unsigned long v11;
v11 = __readfsqword(0x28u);
memset(p, 0, 4096);
pos = 0;
ue... | GMT_LOCAL int grdio_parse_grd_format_scale_new (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, char *format) {
char type_code[3];
char p[GMT_BUFSIZ] = {""};
unsigned int pos = 0, uerr = 0;
int err;
strncpy (type_code, format, 2);
type_code[2] = '\0';
if (type_code[0] == '+')
header->type... | grdio_parse_grd_format_scale_new | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int grdio_parse_grd_format_scale_old(GMT_CTRL *Ctrl, GMT_GRID_HEADER *header,
char *format) {
int err;
char *p;
char *pa;
char *pb;
char *pc;
char *pd;
char type_code[3];
unsigned long v12;
v12 = __readfsqword(0x28u);
strncpy(type_code, format, 2u);
type_code[... | GMT_LOCAL int grdio_parse_grd_format_scale_old (struct GMT_CTRL *Ctrl, struct GMT_GRID_HEADER *header, char *format) {
char type_code[3];
char *p;
int err;
strncpy (type_code, format, 2);
type_code[2] = '\0';
if (type_code[0] == '/')
header->type = GMT_GRID_IS_NF;
else {
err = gmt_grd_format_... | grdio_parse_grd_format_scale_old | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdio_round_off_patrol(GMT_CTRL *GMT, GMT_GRID_HEADER *header) {
double v2;
unsigned int k;
double d;
double norm_v;
double round_v;
double slop;
if (GMT->current.io.col_type[0][0] == 4 &&
GMT->current.io.col_type[0][1] == 2) {
doctor_geo_increments(GMT, header);
if (-0.0001 * header->... | GMT_LOCAL void grdio_round_off_patrol (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) {
unsigned int k;
double norm_v, round_v, d, slop;
static char *type[4] = {"xmin", "xmax", "ymin", "ymax"};
if (gmt_M_is_geographic (GMT, GMT_IN)) {
doctor_geo_increments (GMT, header);
if ((header->wesn[YLO]+90... | grdio_round_off_patrol | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double grdmask_assign(GMT_CTRL *GMT, char *p) {
if (*p == 78 || *p == 110)
return GMT->session.d_NaN;
else
return atof(p);
} | GMT_LOCAL double grdmask_assign (struct GMT_CTRL *GMT, char *p) {
double value = (p[0] == 'N' || p[0] == 'n') ? GMT->session.d_NaN : atof (p);
return (value);
} | grdmask_assign | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdmath_backwards_fixing(GMT_CTRL *GMT, char **arg) {
char *t;
char old[24];
unsigned long v4;
v4 = __readfsqword(0x28u);
t = 0;
memset(old, 0, 16);
if (*(_DWORD *)((char *)strncmp + (_QWORD)GMT) <= 6u) {
if (!strcmp(*arg, "CHIDIST")) {
strncpy(old, *arg, 0xFu);
free(*arg);
*ar... | GMT_LOCAL void grdmath_backwards_fixing (struct GMT_CTRL *GMT, char **arg)
{
char *t = NULL, old[GMT_LEN16] = {""};
if (!gmt_M_compat_check (GMT, 6)) return;
if (!strcmp (*arg, "CHIDIST")) {strncpy (old, *arg, GMT_LEN16-1); gmt_M_str_free (*arg); *arg = t = strdup ("CHI2CDF"); }
else if (!strcmp (*arg, "CHI... | grdmath_backwards_fixing | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int grdmath_find_stored_item(GMT_CTRL *GMT, GRDMATH_STORE **recall,
int n_stored, char *label) {
int k;
for (k = 0; k < n_stored && strcmp(recall[k]->label, label); ++k)
;
if (k == n_stored)
return -1;
else
return k;
} | GMT_LOCAL int grdmath_find_stored_item (struct GMT_CTRL *GMT, struct GRDMATH_STORE *recall[], int n_stored, char *label) {
int k = 0;
gmt_M_unused(GMT);
while (k < n_stored && strcmp (recall[k]->label, label)) k++;
return (k == n_stored ? -1 : k);
} | grdmath_find_stored_item | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void grdmath_free(GMT_CTRL *GMT, GRDMATH_STACK **stack, GRDMATH_STORE **recall,
GRDMATH_INFO *info) {
bool is_object;
unsigned int k;
unsigned int ka;
int error;
int errora;
error = 0;
for (k = 0; k <= 0x63; ++k) {
if (stack[k]->G) {
is_object = gmtlib_is_an_object(GMT, stack[... | GMT_LOCAL void grdmath_free (struct GMT_CTRL *GMT, struct GRDMATH_STACK *stack[], struct GRDMATH_STORE *recall[], struct GRDMATH_INFO *info) {
unsigned int k;
int error = 0;
bool is_object;
for (k = 0; k < GRDMATH_STACK_SIZE; k++) {
if (stack[k]->G) {
is_object = gmtlib_is_an_object (GMT, &stack[k]->G);
... | grdmath_free | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *grdmath_setlabel(GMT_CTRL *GMT, char *arg) {
char *v2;
v2 = strchr(arg, 64);
if (v2 != (char *)-1LL && v2[1])
return v2 + 1;
GMT_Report(GMT->parent, 1u, "No label appended to STO|RCL|CLR operator!\n");
return 0;
} | GMT_LOCAL char *grdmath_setlabel (struct GMT_CTRL *GMT, char *arg) {
char *label = strchr (arg, '@') + 1;
if (!label || label[0] == '\0') {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "No label appended to STO|RCL|CLR operator!\n");
return (NULL);
}
return (label);
} | grdmath_setlabel | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gshhg_get_version(const char *filename, GSHHG_VERSION *gshhg_version) {
int ncid;
int status;
size_t v_len;
char gshhg_version_string[72];
unsigned long v7;
v7 = __readfsqword(0x28u);
status = nc_open(filename, 0, &ncid);
if (status) {
fprintf(stderr, "gshhg_version: cannot open file \"%s\" (%d... | int gshhg_get_version (const char* filename, struct GSHHG_VERSION *gshhg_version) {
int status;
int ncid;
size_t v_len;
char gshhg_version_string[BUF_SIZE];
status = nc_open(filename, NC_NOWRITE, &ncid);
if (status != NC_NOE... | gshhg_get_version | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gshhg_require_min_version(const char *filename,
const GSHHG_VERSION min_version) {
unsigned int min_version_8;
GSHHG_VERSION version;
unsigned long v5;
min_version_8 = min_version.patch;
v5 = __readfsqword(0x28u);
if (!gshhg_get_version(filename, &version))
return 0;
... | int gshhg_require_min_version (const char* filename, const struct GSHHG_VERSION min_version) {
struct GSHHG_VERSION version;
if ( ! gshhg_get_version (filename, &version) )
return 0;
if ( version.major < min_version.major )
return 0;
if ( version.minor < min_version.minor )
return 0;
if ( version.patch ... | gshhg_require_min_version | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int guess_width(GMT_CTRL *GMT, char *file, unsigned int byte_per_pixel,
unsigned int *raw_nx, unsigned int *raw_ny) {
int v6;
float v7;
unsigned int v8;
double v9;
unsigned int v10;
double v11;
unsigned int k;
unsigned int ka;
unsigned int kb;
unsigned int kc;
unsigned int j;
uns... | GMT_LOCAL int guess_width (struct GMT_CTRL *GMT, char *file, unsigned int byte_per_pixel, unsigned int *raw_nx, unsigned int *raw_ny) {
int inc, even;
unsigned int k = 0, j, i, l, n_pix;
unsigned char *buffer = NULL;
size_t img_size;
float *work = NULL, *datac = NULL, *img_pow = NULL, pow_max = -FLT_MAX, pm;
int ... | guess_width | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void handle_pole_averaging(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid,
float f_value, int pole) {
unsigned long v5;
float v6;
double cosx;
double sinx;
int polea;
float f_valuea;
float *grida;
GMT_GRID_HEADER *headera;
GMT_CTRL *GMTa;
unsigned int col;
double s;... | GMT_LOCAL void handle_pole_averaging (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, float f_value, int pole)
{
uint64_t node;
unsigned int col = 0;
char *name[3] = {"south", "", "north"};
gmt_M_unused(GMT);
if (pole == -1)
node = gmt_M_ijp (header, 0, 0);
else
node = gmt_M_ijp (header,... | handle_pole_averaging | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool hangs_down(char *text) {
size_t k;
for (k = 0; k < strlen(text); ++k) {
if (strchr("jpqy", text[k]))
return 1;
}
return 0;
} | GMT_LOCAL bool hangs_down (char *text) {
size_t k;
for (k = 0; k < strlen (text); k++) if (strchr ("jpqy", text[k])) return true;
return false;
} | hangs_down | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double icept_basic(GMT_CTRL *GMT, double *e, uint64_t n, unsigned int norm) {
double v4;
double v5;
double v6;
unsigned int GMT_n_multiples;
double intercept;
double *ee;
unsigned long v13;
v13 = __readfsqword(0x28u);
GMT_n_multiples = 0;
intercept = 0.0;
ee = 0;
if (norm != 1) {
ee = (doub... | GMT_LOCAL double icept_basic (struct GMT_CTRL *GMT, double *e, uint64_t n, unsigned int norm) {
unsigned int GMT_n_multiples = 0;
double intercept = 0.0, *ee = NULL;
if (norm != GMTREGRESS_NORM_L2) {
ee = gmt_M_memory (GMT, NULL, n, double);
gmt_M_memcpy (ee, e, n, double);
gmt_sort_array (GMT, ee, n, GMT... | icept_basic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double icept_weighted(GMT_CTRL *GMT, double *e, double *W, uint64_t n,
unsigned int norm) {
float v5;
float v6;
double intercept;
GMT_OBSERVATION *ee;
uint64_t k;
intercept = 0.0;
ee = 0;
if (norm != 1) {
ee = (GMT_OBSERVATION *)gmt_memory_func(GMT, 0, n, 8u, 0, "icept_weighte... | GMT_LOCAL double icept_weighted (struct GMT_CTRL *GMT, double *e, double *W, uint64_t n, unsigned int norm) {
double intercept = 0.0;
struct GMT_OBSERVATION *ee = NULL;
if (norm != GMTREGRESS_NORM_L2) {
uint64_t k;
ee = gmt_M_memory (GMT, NULL, n, struct GMT_OBSERVATION);
for (k = 0; k < n; k++) {
ee[k... | icept_weighted | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int in_mem_PS_convert(GMTAPI_CTRL *API, PS2RASTER_CTRL *Ctrl, char **ps_names,
char *gs_BB, char *gs_params, char **device,
char **device_options, char **ext) {
int error;
double w;
double h;
double margin;
char out_file[256];
char t[264];
unsigned long v18;
... | GMT_LOCAL int in_mem_PS_convert(struct GMTAPI_CTRL *API, struct PS2RASTER_CTRL *Ctrl, char **ps_names, char *gs_BB, char *gs_params, char *device[], char *device_options[], char *ext[]) {
char out_file[GMT_LEN256] = {""};
int error = 0;
double margin = 0, w = 0, h = 0;
if (ps_names[0][1])
margin = gmt_M_to... | in_mem_PS_convert | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_GRID *init_area_weights(GMT_CTRL *GMT, GMT_GRID *G, int mode, char *file) {
long v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
float v16;
signed int row;
signed int col;
unsigned int last_row;
uint64_t ij;
do... | GMT_LOCAL struct GMT_GRID *init_area_weights (struct GMT_CTRL *GMT, struct GMT_GRID *G, int mode, char *file) {
unsigned int row, col, last_row;
uint64_t ij;
double row_weight, col_weight, dy_half = 0.0, dx, y, lat, lat_s, lat_n, s2 = 0.0, f;
struct GMT_GRID *A = NULL;
if ((A = GMT_Create_Data (GMT->par... | init_area_weights | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int init_blend_job(GMT_CTRL *GMT, char **files, unsigned int n_files,
GMT_GRID_HEADER *h, GRDBLEND_INFO **blend) {
init_blend_job_BLEND_LIST *v6;
char *v7;
double v8;
GRDBLEND_INFO *v9;
double v10;
double v11;
double v12;
double v13;
uint32_t n_rows;
double v15;
double v16;
ui... | GMT_LOCAL int init_blend_job (struct GMT_CTRL *GMT, char **files, unsigned int n_files, struct GMT_GRID_HEADER *h, struct GRDBLEND_INFO **blend) {
int type, status, not_supported;
unsigned int one_or_zero = !h->registration, n = 0, nr, do_sample;
struct GRDBLEND_INFO *B = NULL;
char *sense[2] = {"normal", "inverse"... | init_blend_job | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void initialize_grid(GMT_CTRL *GMT, SURFACE_INFO *C) {
double v2;
double v3;
float z_mean;
int i;
int j;
int imin;
int imax;
int jmin;
int jmax;
int ki;
int kj;
int irad;
int jrad;
uint64_t k;
double sum_w;
double sum_zw;
float *u;
GMT_GRID_HEADER *h;
double rfact;
double x0;
d... | GMT_LOCAL void initialize_grid (struct GMT_CTRL *GMT, struct SURFACE_INFO *C) {
uint64_t index_1, index_2, k, k_index;
int irad, jrad, i, j, imin, imax, jmin, jmax, ki, kj;
double r, rfact, sum_w, sum_zw, weight, x0, y0;
float *u = C->Grid->data;
struct GMT_GRID_HEADER *h = C->Grid->header;
irad = irint (c... | initialize_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double intercept(GMT_CTRL *GMT, double *e, double *W, uint64_t n, bool weighted,
unsigned int norm) {
if (weighted)
return icept_weighted(GMT, e, W, n, norm);
else
return icept_basic(GMT, e, n, norm);
} | GMT_LOCAL double intercept (struct GMT_CTRL *GMT, double *e, double *W, uint64_t n, bool weighted, unsigned int norm) {
double a = (weighted) ? icept_weighted (GMT, e, W, n, norm) : icept_basic (GMT, e, n, norm);
return (a);
} | intercept | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void interp_breakline(GMT_CTRL *GMT, SURFACE_INFO *C, GMT_DATATABLE *xyzline) {
double v3;
long v4;
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
float v14;
float v15;
float v16;
double v17;
int scol;
int srow;
uint64_t n_tot;
... | GMT_LOCAL void interp_breakline (struct GMT_CTRL *GMT, struct SURFACE_INFO *C, struct GMT_DATATABLE *xyzline) {
uint64_t n_tot = 0, this_ini = 0, this_end = 0, n_int = 0;
uint64_t k = 0, n, kmax = 0, kmin = 0, row, seg;
int srow, scol;
size_t n_alloc;
double *x = NULL, *y = NULL, *z = NULL, dx, dy, dz, r_dx, r_... | interp_breakline | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int io_nc_vara_float(int ncid, int varid, const size_t *startp,
const size_t *countp, float *fp, unsigned int io_mode) {
if (io_mode)
return nc_get_vara_float((unsigned int)ncid, (unsigned int)varid, startp,
countp, fp);
else
return nc_put_vara_float((unsign... | static inline int io_nc_vara_float (int ncid, int varid, const size_t *startp,
const size_t *countp, float *fp, unsigned io_mode) {
if (io_mode == k_put_netcdf)
return nc_put_vara_float (ncid, varid, startp, countp, fp);
return nc_get_vara_float (ncid, varid, startp, countp, fp);
} | io_nc_vara_float | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int io_nc_varm_float(int ncid, int varid, const size_t *startp,
const size_t *countp, const ptrdiff_t *stridep,
const ptrdiff_t *imapp, float *fp, unsigned int io_mode) {
if (io_mode)
return nc_get_varm_float((unsigned int)ncid, (unsigned int)varid, startp,
... | static inline int io_nc_varm_float (int ncid, int varid, const size_t *startp,
const size_t *countp, const ptrdiff_t *stridep,
const ptrdiff_t *imapp, float *fp, unsigned io_mode) {
if (io_mode == k_put_netcdf)
return nc_put_varm_float (ncid, varid, startp, countp, stridep, imapp, fp);
return nc_get_varm_f... | io_nc_varm_float | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int is_duplicate(GMT_CTRL *GMT, GMT_DATASEGMENT *S, GMT_DATASET *D, DUP *I,
DUP_INFO **L) {
long v5;
double v6;
double v7;
double v8;
double v10;
double v11;
double v12;
uint64_t n_rows;
double v14;
double v15;
double v16;
double v17;
double v18;
uint64_t v19;
double v20;
... | GMT_LOCAL int is_duplicate (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *S, struct GMT_DATASET *D, struct DUP *I, struct DUP_INFO **L) {
bool status;
unsigned int k, tbl, n_close = 0, n_dup = 0, mode1, mode3;
uint64_t row, seg, pt, np, sno, *n_sum = NULL;
int k_signed;
double dist, f_... | is_duplicate | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool is_nc_grid(GMT_GRID *grid) {
return grid->header->type == 15 || grid->header->type == 16 ||
grid->header->type == 17 || grid->header->type == 18 ||
grid->header->type == 19;
} | GMT_LOCAL inline bool is_nc_grid (struct GMT_GRID *grid) {
return
grid->header->type == GMT_GRID_IS_NB ||
grid->header->type == GMT_GRID_IS_NS ||
grid->header->type == GMT_GRID_IS_NI ||
grid->header->type == GMT_GRID_IS_NF ||
grid->header->type == GMT_GRID_IS_ND;
} | is_nc_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t iterate(GMT_CTRL *GMT, SURFACE_INFO *C, int mode) {
float v3;
float v4;
float *v5;
float v6;
float v7;
float v8;
float v9;
uint64_t v10;
float v11;
float v12;
float v13;
float v14;
int i;
int ia;
int ib;
int j;
int ja;
int jb;
int jc;
int k;
int ka;
int kb;
int x_c... | GMT_LOCAL uint64_t iterate (struct GMT_CTRL *GMT, struct SURFACE_INFO *C, int mode) {
uint64_t ij, briggs_index, ij_v2, iteration_count = 0, ij_sw, ij_se;
unsigned int current_max_iterations = C->max_iterations * C->grid;
int i, j, k, kase;
int x_case, y_case, x_w_case, x_e_case, y_s_case, y_n_case;
unsigned cha... | iterate | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kf_bfly2(kiss_fft_cpx *Fout, const size_t fstride, const kiss_fft_cfg st,
int m) {
int ma;
kiss_fft_cpx *Fouta;
kiss_fft_cpx *Fout2;
kiss_fft_cpx *tw1;
float t;
float t_4;
Fouta = Fout;
ma = m;
tw1 = st->twiddles;
Fout2 = &Fout[m];
do {
t = (float)(tw1->r * Fout2->r) - (flo... | static void kf_bfly2(
kiss_fft_cpx * Fout,
const size_t fstride,
const kiss_fft_cfg st,
int m)
{
kiss_fft_cpx * Fout2;
kiss_fft_cpx * tw1 = st->twiddles;
kiss_fft_cpx t;
Fout2 = Fout + m;
do{
C_FIXDIV(*Fout,2); C_FIXDIV(*Fout2,2);
C_MUL (t, *Fout2 , ... | kf_bfly2 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kf_bfly3(kiss_fft_cpx *Fout, const size_t fstride, const kiss_fft_cfg st,
size_t m) {
float v4;
float v5;
size_t k;
kiss_fft_cpx *tw1;
kiss_fft_cpx *tw2;
kiss_fft_cpx epi3;
float scratch;
float scratch_4;
float scratch_8;
float scratch_12;
float scratch_16;
float scratch_20;
... | static void kf_bfly3(
kiss_fft_cpx * Fout,
const size_t fstride,
const kiss_fft_cfg st,
size_t m)
{
size_t k=m;
const size_t m2 = 2*m;
kiss_fft_cpx *tw1,*tw2;
kiss_fft_cpx scratch[5];
kiss_fft_cpx epi3;
epi3 = st->twiddles[fstride*m];
tw1=tw2=st->t... | kf_bfly3 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kf_bfly4(kiss_fft_cpx *Fout, const size_t fstride, const kiss_fft_cfg st,
const size_t m) {
kiss_fft_cpx *tw1;
kiss_fft_cpx *tw2;
kiss_fft_cpx *tw3;
size_t k;
float scratch;
float scratch_4;
float scratch_8;
float scratch_12;
float scratch_16;
float scratch_20;
float scratch_32;... | static void kf_bfly4(
kiss_fft_cpx * Fout,
const size_t fstride,
const kiss_fft_cfg st,
const size_t m)
{
kiss_fft_cpx *tw1,*tw2,*tw3;
kiss_fft_cpx scratch[6];
size_t k=m;
const size_t m2=2*m;
const size_t m3=3*m;
tw3 = tw2 = tw1 = st->twiddles;
do {
... | kf_bfly4 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kf_bfly5(kiss_fft_cpx *Fout, const size_t fstride, const kiss_fft_cfg st,
int m) {
int u;
kiss_fft_cpx *Fout0;
kiss_fft_cpx *Fout1;
kiss_fft_cpx *Fout2;
kiss_fft_cpx *Fout3;
kiss_fft_cpx *Fout4;
kiss_fft_cpx *tw;
kiss_fft_cpx ya;
kiss_fft_cpx yb;
kiss_fft_cpx scratch;
float scra... | static void kf_bfly5(
kiss_fft_cpx * Fout,
const size_t fstride,
const kiss_fft_cfg st,
int m)
{
kiss_fft_cpx *Fout0,*Fout1,*Fout2,*Fout3,*Fout4;
int u;
kiss_fft_cpx scratch[13];
kiss_fft_cpx * twiddles = st->twiddles;
kiss_fft_cpx *tw;
kiss_fft_cpx ya,yb;
ya ... | kf_bfly5 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kf_bfly_generic(kiss_fft_cpx *Fout, const size_t fstride,
const kiss_fft_cfg st, int m, int p) {
int u;
int k;
int ka;
int q1;
int q1a;
int q;
int twidx;
int Norig;
kiss_fft_cpx *twiddles;
kiss_fft_cpx *scratch;
float t_4;
twiddles = st->twiddles;
Norig = st->nfft;
... | static void kf_bfly_generic(
kiss_fft_cpx * Fout,
const size_t fstride,
const kiss_fft_cfg st,
int m,
int p)
{
int u,k,q1,q;
kiss_fft_cpx * twiddles = st->twiddles;
kiss_fft_cpx t;
int Norig = st->nfft;
kiss_fft_cpx * scratch = (kiss_fft_cpx*)KISS_FFT_TMP_ALL... | kf_bfly_generic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kf_factor(int n, int *facbuf) {
double v2;
int *v3;
int na;
int p;
double floor_sqrt;
na = n;
p = 4;
v2 = sqrt((double)n);
floor_sqrt = floor(v2);
do {
while (na % p) {
if (p == 2) {
p = 3;
} else if (p == 4) {
p = 2;
} else {
p += 2;
}
... | static
void kf_factor(int n,int * facbuf)
{
int p=4;
double floor_sqrt;
floor_sqrt = floor( sqrt((double)n) );
do {
while (n % p) {
switch (p) {
case 4: p = 2; break;
case 2: p = 3; break;
default: p += 2; break;
}
... | kf_factor | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kf_work(kiss_fft_cpx *Fout, const kiss_fft_cpx *f, const size_t fstride,
int in_stride, int *factors, const kiss_fft_cfg st) {
int *factorsa;
const kiss_fft_cpx *fa;
kiss_fft_cpx *Fouta;
int p;
int m;
const kiss_fft_cpx *Fout_end;
_QWORD v15[5];
int v16;
int v17;
int v18;
unsigne... | static
void kf_work(
kiss_fft_cpx * Fout,
const kiss_fft_cpx * f,
const size_t fstride,
int in_stride,
int * factors,
const kiss_fft_cfg st)
{
kiss_fft_cpx * Fout_beg=Fout;
const int p=*factors++;
const int m=*factors++;
const kiss_fft_cpx * Fout_end = F... | kf_work | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kiss_fft(kiss_fft_cfg cfg, const kiss_fft_cpx *fin, kiss_fft_cpx *fout) {
kiss_fft_stride(cfg, fin, fout, 1);
} | void kiss_fft(kiss_fft_cfg cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout)
{
kiss_fft_stride(cfg,fin,fout,1);
} | kiss_fft | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
kiss_fft_cfg kiss_fft_alloc(int nfft, int inverse_fft, void *mem,
size_t *lenmem) {
float v4;
float v5;
int i;
kiss_fft_cfg st;
double phase;
unsigned long memneeded;
st = 0;
memneeded = 8 * (nfft - 1 + 34LL);
if (lenmem) {
if (mem && memneeded <= *lenmem)
st = (... | kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem )
{
kiss_fft_cfg st=NULL;
size_t memneeded = sizeof(struct kiss_fft_state)
+ sizeof(kiss_fft_cpx)*(nfft-1);
if ( lenmem==NULL ) {
st = ( kiss_fft_cfg)KISS_FFT_MALLOC( memneeded );
}
else{
if (me... | kiss_fft_alloc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kiss_fft_cleanup() { ; } | void kiss_fft_cleanup(void)
{
} | kiss_fft_cleanup | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int kiss_fft_next_fast_size(int n) {
int m;
while (1) {
for (m = n; (m & 1) == 0; m /= 2)
;
while (!(m % 3))
m /= 3;
while (!(m % 5))
m /= 5;
if (m <= 1)
break;
++n;
}
return n;
} | int kiss_fft_next_fast_size(int n)
{
while(1) {
int m=n;
while ( (m%2) == 0 ) m/=2;
while ( (m%3) == 0 ) m/=3;
while ( (m%5) == 0 ) m/=5;
if (m<=1)
break;
n++;
}
return n;
} | kiss_fft_next_fast_size | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kiss_fft_stride(kiss_fft_cfg st, const kiss_fft_cpx *fin,
kiss_fft_cpx *fout, int in_stride) {
kiss_fft_cpx *tmpbuf;
if (fin == fout) {
tmpbuf = (kiss_fft_cpx *)malloc(8LL * st->nfft);
kf_work(tmpbuf, fin, 1u, in_stride, st->factors, st);
memcpy(fout, tmpbuf, 8LL * st->nfft);
... | void kiss_fft_stride(kiss_fft_cfg st,const kiss_fft_cpx *fin,kiss_fft_cpx *fout,int in_stride)
{
if (fin == fout) {
kiss_fft_cpx * tmpbuf = (kiss_fft_cpx*)KISS_FFT_TMP_ALLOC( sizeof(kiss_fft_cpx)*st->nfft);
kf_work(tmpbuf,fin,1,in_stride, st->factors,st);
memcpy(fout,tmpbuf,sizeo... | kiss_fft_stride | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kiss_fftnd(kiss_fftnd_cfg st, const kiss_fft_cpx *fin,
kiss_fft_cpx *fout) {
int i;
int k;
int curdim;
int stride;
const kiss_fft_cpx *bufin;
kiss_fft_cpx *bufout;
bufin = fin;
if ((st->ndims & 1) != 0) {
bufout = fout;
if (fin == fout) {
memcpy(st->tmpbuf, fin, 8LL *... | void kiss_fftnd(kiss_fftnd_cfg st,const kiss_fft_cpx *fin,kiss_fft_cpx *fout)
{
int i,k;
const kiss_fft_cpx * bufin=fin;
kiss_fft_cpx * bufout;
if ( st->ndims & 1 ) {
bufout = fout;
if (fin==fout) {
memcpy( st->tmpbuf, fin, sizeof(kiss_fft_cpx) * st->dimprod );
... | kiss_fftnd | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
kiss_fftnd_cfg kiss_fftnd_alloc(const int *dims, int ndims, int inverse_fft,
void *mem, size_t *lenmem) {
kiss_fft_cfg *v6;
int i;
int ia;
int dimprod;
size_t len;
kiss_fftnd_cfg st;
size_t memneeded;
char *ptr;
size_t n_align;
unsigned long v18;
v18 = __readfsqwor... | kiss_fftnd_cfg kiss_fftnd_alloc(const int *dims,int ndims,int inverse_fft,void*mem,size_t*lenmem)
{
kiss_fftnd_cfg st = NULL;
int i;
int dimprod=1;
size_t memneeded = sizeof(struct kiss_fftnd_state);
size_t n_align;
char * ptr;
for (i=0;i<ndims;++i) {
size_t sublen=0;
kiss_f... | kiss_fftnd_alloc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
KML *kml_alloc(GMT_CTRL *GMT, GMT_DATASET *D) {
uint64_t tbl;
uint64_t seg;
uint64_t max;
KML *kml;
max = 0;
kml = (KML *)gmt_memory_func(GMT, 0, 1u, 0x40u, 0, "kml_alloc");
for (tbl = 0; tbl < D->n_tables; ++tbl) {
for (seg = 0; seg < D->table[tbl]->n_segments; ++seg) {
if (max < D->table[tbl]... | GMT_LOCAL struct KML * kml_alloc (struct GMT_CTRL *GMT, struct GMT_DATASET *D) {
uint64_t tbl, seg, max = 0;
struct KML *kml = gmt_M_memory (GMT, NULL, 1, struct KML);
for (tbl = 0; tbl < D->n_tables; tbl++) for (seg = 0; seg < D->table[tbl]->n_segments; seg++) if (D->table[tbl]->segment[seg]->n_rows > max) max = D-... | kml_alloc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kml_free(GMT_CTRL *GMT, KML **kml) {
gmt_free_func(GMT, (*kml)->lon, 0, "kml_free");
(*kml)->lon = 0;
gmt_free_func(GMT, (*kml)->lat, 0, "kml_free");
(*kml)->lat = 0;
gmt_free_func(GMT, (*kml)->z, 0, "kml_free");
(*kml)->z = 0;
gmt_free_func(GMT, (*kml)->flon, 0, "kml_free");
(*kml)->flon = 0;
gm... | GMT_LOCAL void kml_free (struct GMT_CTRL *GMT, struct KML ** kml) {
gmt_M_free (GMT, (*kml)->lon);
gmt_M_free (GMT, (*kml)->lat);
gmt_M_free (GMT, (*kml)->z);
gmt_M_free (GMT, (*kml)->flon);
gmt_M_free (GMT, (*kml)->flat);
gmt_M_free (GMT, *kml);
} | kml_free | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void kml_plot_wiggle(GMT_CTRL *GMT, KML *kml, double zscale, int mode,
double *azim, int fill, int outline, int process_id,
int amode, int N, double altitude) {
double v11;
double cosx;
double sinx;
double altitudea;
int outlinea;
double *azima;
int filla;
int m... | GMT_LOCAL void kml_plot_wiggle (struct GMT_CTRL *GMT, struct KML *kml, double zscale, int mode, double azim[], int fill, int outline, int process_id, int amode, int N, double altitude) {
int64_t i, np = 0;
double lon_len, lat_len, az = 0.0, s = 0.0, c = 0.0, lon_inc, lat_inc;
double start_az = 0, stop_az = 0, daz;
... | kml_plot_wiggle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int kml_print(GMTAPI_CTRL *API, int ntabs, char *format, ...) {
long v3;
long v4;
long v5;
int tab;
va_list args;
char record[4104];
unsigned long v10;
long v11;
long v12;
long v13;
va_start(args, format);
v3 = va_arg(args, _QWORD);
v4 = va_arg(args, _QWORD);
v5 = va_arg(args, _QWORD);
va... | GMT_LOCAL int kml_print (struct GMTAPI_CTRL *API, int ntabs, char *format, ...) {
int tab;
char record[GMT_BUFSIZ] = {""};
va_list args;
for (tab = 0; tab < ntabs; tab++) record[tab] = '\t';
va_start (args, format);
vsnprintf (record + ntabs, GMT_BUFSIZ - ntabs, format, args);
va_end (args);
assert (strlen... | kml_print | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int lack_check(FILTER1D_INFO *F, uint64_t i_col, uint64_t left,
uint64_t right) {
bool lacking;
uint64_t this_row;
double last_t;
lacking = 0;
while (left < right - 1)
++left;
last_t = F->data[F->t_col][left];
this_row = left + 1;
while (!lacking && this_row < right - 1) {
while ... | GMT_LOCAL int lack_check (struct FILTER1D_INFO *F, uint64_t i_col, uint64_t left, uint64_t right) {
uint64_t last_row, this_row;
bool lacking = false;
double last_t;
last_row = left;
while (!(gmt_M_is_dnan (F->data[i_col][last_row])) && last_row < (right - 1)) ++last_row;
last_t = F->data[F->t_col][last_row];
... | lack_check | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void length_size(GMT_CTRL *GMT, double *x, double *y, uint64_t n, double *out) {
uint64_t i;
uint64_t ia;
double length;
double *s;
double mid;
double f;
length = 0.0;
if (!n)
__assert_fail("n > 0",
"/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/"
"sr... | GMT_LOCAL void length_size (struct GMT_CTRL *GMT, double x[], double y[], uint64_t n, double *out) {
uint64_t i;
double length = 0.0, mid, f, *s = NULL;
assert (n > 0);
s = gmt_M_memory (GMT, NULL, n, double);
for (i = 1; i < n; i++) {
length += gmt_distance (GMT, x[i-1], y[i-1], x[i], y[i]);
s[i] = len... | length_size | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_column(GMT_DATASET *to, uint64_t to_col, GMT_DATATABLE *from,
uint64_t from_col) {
uint64_t seg;
for (seg = 0; seg < from->n_segments; ++seg)
memcpy((*to->table)->segment[seg]->data[to_col],
from->segment[seg]->data[from_col], 8 * from->segment[seg]->n_rows);
} | GMT_LOCAL void load_column (struct GMT_DATASET *to, uint64_t to_col, struct GMT_DATATABLE *from, uint64_t from_col) {
uint64_t seg;
for (seg = 0; seg < from->n_segments; seg++) {
gmt_M_memcpy (to->table[0]->segment[seg]->data[to_col], from->segment[seg]->data[from_col], from->segment[seg]->n_rows, double);
}
} | load_column | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_const_column(GMT_DATASET *to, uint64_t to_col, double factor) {
uint64_t row;
uint64_t seg;
for (seg = 0; seg < to->n_segments; ++seg) {
for (row = 0; row < (*to->table)->segment[seg]->n_rows; ++row)
(*to->table)->segment[seg]->data[to_col][row] = factor;
}
} | GMT_LOCAL void load_const_column (struct GMT_DATASET *to, uint64_t to_col, double factor) {
uint64_t row, seg;
for (seg = 0; seg < to->n_segments; seg++) {
for (row = 0; row < to->table[0]->segment[seg]->n_rows; row++) to->table[0]->segment[seg]->data[to_col][row] = factor;
}
} | load_const_column | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int load_constraints(GMT_CTRL *GMT, SURFACE_INFO *C, int transform) {
float low_limit;
float v5;
float r_z_scale;
float high_limit;
float v8;
float v9;
uint32_t i;
uint32_t ia;
uint32_t j;
uint32_t ja;
uint64_t ij;
uint64_t ijb;
uint64_t ija;
uint64_t ijc;
GMTAPI_CTRL *API;
double yy;
... | GMT_LOCAL int load_constraints (struct GMT_CTRL *GMT, struct SURFACE_INFO *C, int transform) {
unsigned int i, j;
uint64_t ij;
double yy;
struct GMTAPI_CTRL *API = GMT->parent;
if (C->set_low > 0) {
if (C->set_low < 3) {
if ((C->Low = GMT_Duplicate_Data (API, GMT_IS_GRID, GMT_DUPLICATE_ALLOC, C->Grid)) ... | load_constraints | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_g_row_1d(double x, double t, int n, double *gr, GMT_MODEL *M) {
unsigned int kind;
int j;
signed int k;
for (j = 0; j < n; ++j) {
k = M->term[j].order[0];
kind = M->term[j].kind;
if (kind == 3) {
gr[j] = sin((double)k * t);
} else if (kind <= 3) {
if (kind == 2) {
... | GMT_LOCAL void load_g_row_1d (double x, double t, int n, double *gr, struct GMT_MODEL *M) {
int j, k;
for (j = 0; j < n; j++) {
k = M->term[j].order[GMT_X];
switch (M->term[j].kind) {
case GMT_POLYNOMIAL:
gr[j] = polynomial (x, k);
break;
case GMT_CHEBYSHEV:
gr[j] = chebyshev (x, ... | load_g_row_1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_g_row_2d(double x, double y, unsigned int n, double *gr) {
unsigned int j;
for (j = 0; j < n; ++j) {
switch (j) {
case 0u:
gr[j] = 1.0;
break;
case 1u:
gr[j] = x;
break;
case 2u:
gr[j] = y;
break;
case 3u:
gr[j] = x * y;
break;
case ... | GMT_LOCAL void load_g_row_2d (double x, double y, unsigned int n, double *gr) {
unsigned int j;
j = 0;
while (j < n) {
switch (j) {
case 0:
gr[j] = 1.0;
break;
case 1:
gr[j] = x;
break;
case 2:
gr[j] = y;
break;
case 3:
gr[j] = x*y;
break;
case 4:
gr[j... | load_g_row_2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_gtg_and_gtd(GMT_CTRL *GMT, GMT_GRID *G, double *xval, double *yval,
double *pstuff, double *gtg, double *gtd,
unsigned int n_model, GMT_GRID *W, bool weighted) {
unsigned int row;
signed int col;
unsigned int k;
unsigned int ka;
unsigned int kb;
unsigned... | GMT_LOCAL void load_gtg_and_gtd (struct GMT_CTRL *GMT, struct GMT_GRID *G, double *xval, double *yval, double *pstuff, double *gtg, double *gtd, unsigned int n_model, struct GMT_GRID *W, bool weighted) {
unsigned int row, col, k, l, n_used = 0;
uint64_t ij;
gmt_M_unused(GMT);
gmt_M_memset (gtd, n_model... | load_gtg_and_gtd | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_gtg_and_gtd_1d(TREND1D_DATA *data, uint64_t n_data, double *gtg,
double *gtd, double *grow, unsigned int n_model,
unsigned int mp, GMT_MODEL *M) {
unsigned int j;
unsigned int ja;
unsigned int jb;
unsigned int k;
unsigned int ka;
unsigned int kb;
... | GMT_LOCAL void load_gtg_and_gtd_1d (struct TREND1D_DATA *data, uint64_t n_data, double *gtg, double *gtd, double *grow, unsigned int n_model, unsigned int mp, struct GMT_MODEL *M) {
uint64_t i;
unsigned int j, k;
double wy;
for (j = 0; j < n_model; j++) {
for (k = 0; k < n_model; k++) gtg[j + k*mp] = ... | load_gtg_and_gtd_1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_gtg_and_gtd_2d(GMT_CTRL *GMT, TREND2D_DATA *data, uint64_t n_data,
double *gtg, double *gtd, double *grow,
unsigned int n_model, unsigned int mp) {
unsigned int j;
unsigned int ja;
unsigned int jb;
unsigned int k;
unsigned int ka;
unsigned int kb;
... | GMT_LOCAL void load_gtg_and_gtd_2d (struct GMT_CTRL *GMT, struct TREND2D_DATA *data, uint64_t n_data, double *gtg, double *gtd, double *grow, unsigned int n_model, unsigned int mp) {
uint64_t i;
unsigned int j, k;
double wz;
gmt_M_unused(GMT);
for (j = 0; j < n_model; j++) {
for (k = 0; k < n_model; k++) ... | load_gtg_and_gtd_2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_parameters_filter1d(FILTER1D_INFO *F, FILTER1D_CTRL *Ctrl,
uint64_t n_cols) {
F->filter_width = Ctrl->F.width;
F->dt = Ctrl->D.inc;
F->equidist = !Ctrl->D.active;
F->use_ends = Ctrl->E.active;
F->check_lack = Ctrl->L.active;
F->lack_width = Ctrl->L.value;
F->n_cols ... | GMT_LOCAL void load_parameters_filter1d (struct FILTER1D_INFO *F, struct FILTER1D_CTRL *Ctrl, uint64_t n_cols) {
F->filter_width = Ctrl->F.width;
F->dt = Ctrl->D.inc;
F->equidist = !Ctrl->D.active;
F->use_ends = Ctrl->E.active;
F->check_lack = Ctrl->L.active;
F->lack_width = Ctrl->L.value;
F->n_cols = n_cols;
F... | load_parameters_filter1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_parameters_pstext(GMT_CTRL *GMT, PSTEXT_INFO *T, PSTEXT_CTRL *C) {
double offset;
double v4;
double v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
long v13;
double v14;
double length;
double v16;
double v17;
double v18;
double v19;
double v20;
long ... | GMT_LOCAL void load_parameters_pstext (struct GMT_CTRL *GMT, struct PSTEXT_INFO *T, struct PSTEXT_CTRL *C) {
gmt_M_memset (T, 1, struct PSTEXT_INFO);
if (C->T.mode != 'o' && C->C.dx == 0.0 && C->C.dy == 0.0) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Warning: Cannot have non-rectangular text box if clearance (-C) ... | load_parameters_pstext | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_parameters_surface(SURFACE_INFO *C, SURFACE_CTRL *Ctrl) {
if (Ctrl->S.active) {
if (Ctrl->S.unit == 109)
Ctrl->S.radius = Ctrl->S.radius / 60.0;
if (Ctrl->S.unit == 115)
Ctrl->S.radius = Ctrl->S.radius / 3600.0;
}
C->radius = Ctrl->S.radius;
C->relax_new = Ctrl->Z.value;
C->max_i... | GMT_LOCAL void load_parameters_surface (struct SURFACE_INFO *C, struct SURFACE_CTRL *Ctrl) {
if (Ctrl->S.active) {
if (Ctrl->S.unit == 'm') Ctrl->S.radius /= 60.0;
if (Ctrl->S.unit == 's') Ctrl->S.radius /= 3600.0;
}
C->radius = Ctrl->S.radius;
C->relax_new = Ctrl->Z.value;
C->max_iterations = Ctrl->N.va... | load_parameters_surface | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void load_pstuff(double *pstuff, unsigned int n_model, double x, double y,
unsigned int newx, unsigned int newy) {
if (newx) {
if (n_model > 1)
pstuff[1] = x;
if (n_model > 4)
pstuff[4] = 0.5 * (pstuff[1] * (pstuff[1] * 3.0) - 1.0);
if (n_model > 6)
pstuff[6] = (pstuff[1... | GMT_LOCAL void load_pstuff (double *pstuff, unsigned int n_model, double x, double y, unsigned int newx, unsigned int newy) {
if (newx) {
if (n_model >= 2) pstuff[1] = x;
if (n_model >= 5) pstuff[4] = 0.5*(3.0*pstuff[1]*pstuff[1] - 1.0);
if (n_model >= 7) pstuff[6] = (5.0*pstuff[1]*pstuff[4] - 2.0*pstuff[1]... | load_pstuff | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int load_rasinfo(GMT_CTRL *GMT, GRDRASTER_INFO **ras, char endian) {
GMT_TEXTSET *Data;
bool v5;
unsigned int v6;
uint32_t v7;
uint32_t v8;
unsigned long v9;
double v10;
double v11;
int nfound;
int n_alloc;
signed int ksize;
uint64_t expected_size;
uint64_t tbl;
uint64_t seg;
uint64_t row;... | GMT_LOCAL int load_rasinfo (struct GMT_CTRL *GMT, struct GRDRASTER_INFO **ras, char endian) {
int nfound = 0, ksize = 0, n_alloc;
uint64_t expected_size, tbl, seg, row;
size_t length, i, j, stop_point;
off_t delta;
double global_lon, lon_tol;
char path[GMT_BUFSIZ] = {""}, buf[GMT_GRID_REMARK_LEN160]... | load_rasinfo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int loadraw(GMT_CTRL *GMT, char *file, imageinfo *header, int byte_per_pixel,
int n_columns, int n_rows, unsigned char **P) {
unsigned int k;
uint64_t j;
uint64_t i;
unsigned char *buffer;
FILE *fp;
unsigned long nm;
fp = gmt_fopen(GMT, file, "rb");
if (fp) {
header->depth = 24;
hea... | GMT_LOCAL int loadraw (struct GMT_CTRL *GMT, char *file, struct imageinfo *header, int byte_per_pixel, int n_columns, int n_rows, unsigned char **P) {
unsigned int k;
uint64_t j, i;
size_t nm;
unsigned char *buffer = NULL;
FILE *fp = NULL;
if ((fp = gmt_fopen (GMT, file, "rb")) == NULL) {
GMT_Report (GMT->... | loadraw | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void make_euler_matrix(double *p, double *e, double theta) {
double cosx;
double sinx;
double thetaa;
double *ea;
double *pa;
double cos_theta;
double sin_theta;
double one_minus_cos_theta;
double pxsin;
double pysin;
double pzsin;
double temp;
unsigned long v15;
pa = p;
ea = e;
thetaa ... | GMT_LOCAL void make_euler_matrix (double *p, double *e, double theta) {
double cos_theta, sin_theta, one_minus_cos_theta;
double pxsin, pysin, pzsin, temp;
sincosd (theta, &sin_theta, &cos_theta);
one_minus_cos_theta = 1.0 - cos_theta;
pxsin = p[0] * sin_theta;
pysin = p[1] * sin_theta;
pzsin = p[2] * si... | make_euler_matrix | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_andoyer_dist_degree(GMT_CTRL *GMT, double lon1, double lat1,
double lon2, double lat2) {
double v5;
double v6;
double v7;
double sg;
double sga;
double sf_0;
double sf_0a;
double s;
double c;
double w;
sg = sin((lat2 - lat1) * 0.5 * 0.0174532925199433);
... | GMT_LOCAL double map_andoyer_dist_degree (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) {
double sg = sind (0.5 * (lat2 - lat1));
double sf = sind (0.5 * (lat2 + lat1));
double sl = sind (0.5 * (lon2 - lon1));
double s, c, w, r, h1, h2;
sg *= sg;
sl *= sl;
sf *= sf;
s = sg * (1.... | map_andoyer_dist_degree | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_andoyer_dist_meter(GMT_CTRL *GMT, double lon1, double lat1,
double lon2, double lat2) {
double v6;
v6 = *(double *)((char *)&loc_12BDF0 + (_QWORD)GMT);
return map_andoyer_dist_degree(GMT, lon1, lat1, lon2, lat2) * v6;
} | GMT_LOCAL double map_andoyer_dist_meter (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) {
return (GMT->current.proj.EQ_RAD * map_andoyer_dist_degree (GMT, lon1, lat1, lon2, lat2));
} | map_andoyer_dist_meter | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_az_backaz_cartesian(GMT_CTRL *GMT, double lonE, double latE,
double lonS, double latS, bool baz) {
double d_NaN;
double latSa;
double lonSa;
double latEa;
double lonEa;
double az;
double dy;
lonEa = lonE;
latEa = latE;
lonSa = lonS;
latSa = latS;
if (ba... | GMT_LOCAL double map_az_backaz_cartesian (struct GMT_CTRL *GMT, double lonE, double latE, double lonS, double latS, bool baz) {
double az, dx, dy;
if (baz) {
gmt_M_double_swap (lonS, lonE);
gmt_M_double_swap (latS, latE);
}
dx = lonE - lonS;
dy = latE - latS;
az = (dx == 0.0 && dy == 0.0) ? GMT->sessi... | map_az_backaz_cartesian | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_az_backaz_cartesian_proj(GMT_CTRL *GMT, double lonE, double latE,
double lonS, double latS, bool baz) {
double d_NaN;
double latSa;
double lonSa;
double latEa;
double lonEa;
double xE;
double yE;
double xS;
double yS;
double az;
double double_tmp;
d... | GMT_LOCAL double map_az_backaz_cartesian_proj (struct GMT_CTRL *GMT, double lonE, double latE, double lonS, double latS, bool baz) {
double az, dx, dy, xE, yE, xS, yS;
if (baz) {
gmt_M_double_swap (lonS, lonE);
gmt_M_double_swap (latS, latE);
}
gmt_geo_to_xy (GMT, lonE, latE, &xE, &yE);
gmt_geo_to_xy (... | map_az_backaz_cartesian_proj | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_az_backaz_flatearth(GMT_CTRL *GMT, double lonE, double latE,
double lonS, double latS, bool baz) {
double d_NaN;
double latSa;
double lonSa;
double latEa;
double lonEa;
double az;
double dlon;
double dx_0;
double dy;
lonEa = lonE;
latEa = latE;
lonSa = ... | GMT_LOCAL double map_az_backaz_flatearth (struct GMT_CTRL *GMT, double lonE, double latE, double lonS, double latS, bool baz) {
double az, dx, dy, dlon;
if (baz) {
gmt_M_double_swap (lonS, lonE);
gmt_M_double_swap (latS, latE);
}
gmt_M_set_delta_lon (lonS, lonE, dlon);
dx = dlon * cosd (0.5 * (latE + l... | map_az_backaz_flatearth | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_az_backaz_loxodrome(GMT_CTRL *GMT, double lonE, double latE,
double lonS, double latS, bool baz) {
unsigned long v6;
double d_NaN;
double v8;
double v9;
double v10;
double latSa;
double lonSa;
double latEa;
double lonEa;
double az;
double d_lon;
lonEa =... | GMT_LOCAL double map_az_backaz_loxodrome (struct GMT_CTRL *GMT, double lonE, double latE, double lonS, double latS, bool baz) {
double az, d_lon;
if (baz) {
gmt_M_double_swap (lonS, lonE);
gmt_M_double_swap (latS, latE);
}
gmt_M_set_delta_lon (lonE, lonS, d_lon);
if (doubleAlmostEqualZero (latS, latE))... | map_az_backaz_loxodrome | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_az_backaz_rudoe(GMT_CTRL *GMT, double lonE, double latE, double lonS,
double latS, bool baz) {
double v6;
double v7;
double v8;
double v9;
double one_m_ECC2;
double v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double v18;
double cosx;
... | GMT_LOCAL double map_az_backaz_rudoe (struct GMT_CTRL *GMT, double lonE, double latE, double lonS, double latS, bool baz) {
double az, a, b, c, d, e, f, g, h, a1, b1, c1, d1, e1, f1, g1, h1, thg, ss, sc;
if (latE == 0.0) latE = 1.0e-08;
if (latS == 0.0) latS = 1.0e-08;
thg = atan (GMT->current.proj.... | map_az_backaz_rudoe | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_az_backaz_sphere(GMT_CTRL *GMT, double lonE, double latE,
double lonS, double latS, bool baz) {
double cosx;
double sinx;
bool baza;
double latSa;
double lonSa;
double latEa;
double lonEa;
GMT_CTRL *GMTa;
double sin_yS;
double cos_yS;
double sin_yE;
double ... | GMT_LOCAL double map_az_backaz_sphere (struct GMT_CTRL *GMT, double lonE, double latE, double lonS, double latS, bool baz) {
double az, sin_yS, cos_yS, sin_yE, cos_yE, sin_dlon, cos_dlon;
gmt_M_unused(GMT);
if (baz) {
gmt_M_double_swap (lonS, lonE);
gmt_M_double_swap (latS, latE);
}
sincosd (latS, &sin... | map_az_backaz_sphere | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_az_backaz_vincenty(GMT_CTRL *GMT, double lonE, double latE,
double lonS, double latS, bool back_az) {
double v7;
double cosx;
double sinx;
bool back_aza;
double latSa;
double lonSa;
double latEa;
double lonEa;
GMT_CTRL *GMTa;
int n_iter;
double cx_0;
doub... | GMT_LOCAL double map_az_backaz_vincenty (struct GMT_CTRL *GMT, double lonE, double latE, double lonS, double latS, bool back_az) {
int n_iter = 0;
double az, c, d, e, r, f, d_lon, dx, x, y, sa, cx, cy, cz, sx, sy, c2a, cu1, cu2, su1, tu1, tu2, ts, baz, faz;
f = GMT->current.setting.ref_ellipsoid[GMT-... | map_az_backaz_vincenty | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_cartesian_dist2(GMT_CTRL *GMT, double x0, double y0, double x1,
double y1) {
return (y1 - y0) * (y1 - y0) + (x1 - x0) * (x1 - x0);
} | GMT_LOCAL double map_cartesian_dist2 (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1) {
gmt_M_unused(GMT);
x1 -= x0; y1 -= y0;
return (x1*x1 + y1*y1);
} | map_cartesian_dist2 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double map_cartesian_dist_proj2(GMT_CTRL *GMT, double lon1, double lat1,
double lon2, double lat2) {
double x0;
double y0;
double x1;
double y1[2];
*(_QWORD *)&y1[1] = __readfsqword(0x28u);
j_gmt_geo_to_xy(GMT, lon1, lat1, &x0, &y0);
j_gmt_geo_to_xy(GMT, lon2, lat2, &x1, y... | GMT_LOCAL double map_cartesian_dist_proj2 (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) {
double x0, y0, x1, y1;
gmt_geo_to_xy (GMT, lon1, lat1, &x0, &y0);
gmt_geo_to_xy (GMT, lon2, lat2, &x1, &y1);
x1 -= x0; y1 -= y0;
return (x1*x1 + y1*y1);
} | map_cartesian_dist_proj2 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool map_cartesian_overlap(GMT_CTRL *GMT, double lon0, double lat0, double lon1,
double lat1) {
double x0;
double y0;
double x1;
double y1;
double double_tmp;
double double_tmp_0;
unsigned long v12;
v12 = __readfsqword(0x28u);
j_gmt_geo_to_xy(GMT, lon0, lat0, &x0, &y0);
j... | GMT_LOCAL bool map_cartesian_overlap (struct GMT_CTRL *GMT, double lon0, double lat0, double lon1, double lat1) {
double x0, y0, x1, y1;
gmt_geo_to_xy (GMT, lon0, lat0, &x0, &y0);
gmt_geo_to_xy (GMT, lon1, lat1, &x1, &y1);
if (x0 > x1) gmt_M_double_swap (x0, x1);
if (y0 > y1) gmt_M_double_swap (y0, y1);
if... | map_cartesian_overlap | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int map_clip_sn(double x_prev, double y_prev, double x_curr,
double y_curr, double *x, double *y, double border,
bool (*inside)(double, double),
bool (*outside)(double, double), int *cross) {
*cross = 0;
if (doubleAlmostEqualUlpsAnd... | GMT_LOCAL unsigned int map_clip_sn (double x_prev, double y_prev, double x_curr, double y_curr, double x[], double y[], double border, bool (*inside) (double, double), bool (*outside) (double, double), int *cross) {
*cross = 0;
if (doubleAlmostEqualZero (x_prev, x_curr) && doubleAlmostEqualZero (y_prev, y_curr))
... | map_clip_sn | 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.