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
char *gmtlib_putfill(GMT_CTRL *GMT, GMT_FILL *F) { double v2; double v3; double v4; double v5; int i; if (F->use_pattern) { if (F->pattern_no) snprintf(text_12, 0x100u, "p%d/%d", F->dpi, F->pattern_no); else snprintf(text_12, 0x100u, "p%d/%s", F->dpi, F->pattern); } else if (F->rgb[0]...
char *gmtlib_putfill (struct GMT_CTRL *GMT, struct GMT_FILL *F) { static char text[GMT_LEN256] = {""}; int i; if (F->use_pattern) { if (F->pattern_no) snprintf (text, GMT_LEN256, "p%d/%d", F->dpi, F->pattern_no); else snprintf (text, GMT_LEN256, "p%d/%s", F->dpi, F->pattern); } else if (F->rgb[0] < -0....
gmtlib_putfill
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmtlib_puthsv(GMT_CTRL *GMT, double *hsv) { double v2; double v3; double v4; if (*hsv >= -0.5) { if (hsv[2] >= 0.00001) v2 = hsv[2]; else v2 = 0.0; if (hsv[1] >= 0.00001) v3 = hsv[1]; else v3 = 0.0; if (*hsv >= 0.00001) v4 = *hsv; else v4 = 0.0;...
char *gmtlib_puthsv (struct GMT_CTRL *GMT, double *hsv) { static char text[GMT_LEN256] = {""}; gmt_M_unused(GMT); if (hsv[0] < -0.5) sprintf (text, "-"); else snprintf (text, GMT_LEN256, "%.5g-%.5g-%.5g", gmt_M_q(hsv[0]), gmt_M_q(hsv[1]), gmt_M_q(hsv[2])); gmtinit_append_trans (text, hsv[3]); return (text);...
gmtlib_puthsv
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmtlib_putparameter(GMT_CTRL *GMT, const char *keyword) { char *result; int v3; char *v4; char *v5; char *v6; char *v7; char *v8; unsigned int v9; unsigned int v10; unsigned int v11; unsigned int v12; unsigned int v13; unsigned int v14; GMT_enum_symbol map_degree_symbol; char *v16; ...
char *gmtlib_putparameter (struct GMT_CTRL *GMT, const char *keyword) { static char value[GMT_LEN256] = {""}, txt[8]; int case_val; bool error = false; char pm[2] = {'+', '-'}, *ft[2] = {"false", "true"}; gmt_M_memset (value, GMT_LEN256, char); if (!keyword) return (value); case_val = gmt_hash_lookup (GMT,...
gmtlib_putparameter
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int64_t gmtlib_rd_from_iywd(GMT_CTRL *GMT, int iy, int iw, int id) { int64_t rdtemp; rdtemp = gmt_rd_from_gymd(GMT, iy - 1, 12, 28); return id + calclock_nth_kday(iw, 0, rdtemp); }
int64_t gmtlib_rd_from_iywd (struct GMT_CTRL *GMT, int iy, int iw, int id) { int64_t rdtemp; rdtemp = gmt_rd_from_gymd (GMT, iy-1, 12, 28); return (id + calclock_nth_kday (iw, 0, rdtemp)); }
gmtlib_rd_from_iywd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_read_grd(GMT_CTRL *GMT, char *file, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, int complex_mode) { long v8; bool expand; int err; int erra; GRD_PAD P; unsigned long v17; unsigned int complex_modea; v17 = __readfsqword(0x28u)...
int gmtlib_read_grd (struct GMT_CTRL *GMT, char *file, struct GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, int complex_mode) { bool expand; int err; struct GRD_PAD P; complex_mode &= GMT_GRID_IS_COMPLEX_MASK; if (header->complex_mode && (header->complex_mode & complex_m...
gmtlib_read_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_read_grd_info(GMT_CTRL *GMT, char *file, GMT_GRID_HEADER *header) { int v4; int err; int erra; float invalid; unsigned int n_columns; unsigned int n_rows; double scale; double offset; err = gmt_grd_get_format(GMT, file, header, 1); if (err) return err; scale = header->z_scale_facto...
int gmtlib_read_grd_info (struct GMT_CTRL *GMT, char *file, struct GMT_GRID_HEADER *header) { int err; unsigned int n_columns, n_rows; double scale, offset; float invalid; gmt_M_err_trap (gmt_grd_get_format (GMT, file, header, true)); scale = header->z_scale_factor; offset = header->z_add_offset; ...
gmtlib_read_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_read_image(GMT_CTRL *GMT, char *file, GMT_IMAGE *I, double *wesn, unsigned int *pad, unsigned int complex_mode) { unsigned int *v7; long v8; bool expand; int i; int ia; GMT_GDALREAD_IN_CTRL *to_gdalread; GMT_GDALREAD_OUT_CTRL *from_gdalread; GRD_PAD P; char strR[136]; ...
int gmtlib_read_image (struct GMT_CTRL *GMT, char *file, struct GMT_IMAGE *I, double *wesn, unsigned int *pad, unsigned int complex_mode) { int i; bool expand; char strR[GMT_LEN128]; struct GRD_PAD P; struct GMT_GDALREAD_IN_CTRL *to_gdalread = NULL; struct GMT_GDALREAD_OUT_CTRL *from_gdalread = ...
gmtlib_read_image
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_read_image_info(GMT_CTRL *GMT, char *file, GMT_IMAGE *I) { GMT_GRID_HEADER *header; size_t k; GMT_GDALREAD_IN_CTRL *to_gdalread; GMT_GDALREAD_OUT_CTRL *from_gdalread; double dumb; to_gdalread = (GMT_GDALREAD_IN_CTRL *)gmt_memory_func( GMT, 0, 1u, 0xC0u, 0, "gmtlib_read_image_info"); from...
int gmtlib_read_image_info (struct GMT_CTRL *GMT, char *file, struct GMT_IMAGE *I) { size_t k; double dumb; struct GMT_GDALREAD_IN_CTRL *to_gdalread = NULL; struct GMT_GDALREAD_OUT_CTRL *from_gdalread = NULL; to_gdalread = gmt_M_memory (GMT, NULL, 1, struct GMT_GDALREAD_IN_CTRL); from_gdalread = gmt_M_memory...
gmtlib_read_image_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_POSTSCRIPT *gmtlib_read_ps(GMT_CTRL *GMT, void *source, unsigned int source_type, unsigned int mode) { char **header; size_t v6; char *data; size_t n_bytes; bool close_file; int c; unsigned long n_alloc; FILE *fp; GMT_POSTSCRIPT *P; stat buf; char ps_file[256]; ...
struct GMT_POSTSCRIPT * gmtlib_read_ps (struct GMT_CTRL *GMT, void *source, unsigned int source_type, unsigned int mode) { char ps_file[GMT_LEN256] = {""}, buffer[GMT_LEN256] = {""}; int c; bool close_file = false; size_t n_alloc = 0; struct GMT_POSTSCRIPT *P = NULL; FILE *fp = NULL; gmt_M_unused(mode); ...
gmtlib_read_ps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_DATATABLE *gmtlib_read_table(GMT_CTRL *GMT, void *source, unsigned int source_type, bool greenwich, unsigned int *geometry, bool use_GMT_io) { uint64_t v6; bool v7; bool v8; bool v10; char *v11; char **v12; char **v13; char **v14; c...
struct GMT_DATATABLE * gmtlib_read_table (struct GMT_CTRL *GMT, void *source, unsigned int source_type, bool greenwich, unsigned int *geometry, bool use_GMT_io) { bool ASCII, close_file = false, header = true, no_segments, first_seg = true, poly, this_is_poly = false; bool pol_check, check_geometry; int status; ...
gmtlib_read_table
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_TEXTTABLE *gmtlib_read_texttable(GMT_CTRL *GMT, void *source, unsigned int source_type) { char *v4; GMT_TEXTSEGMENT **v5; char **v6; char **v7; char **v8; char **v9; GMT_TEXTSEGMENT **v10; GMT_TEXTSEGMENT *v11; GMT_TEXTSEGMENT *v12; GMT_TEXTSEGMENT *v13; ch...
struct GMT_TEXTTABLE * gmtlib_read_texttable (struct GMT_CTRL *GMT, void *source, unsigned int source_type) { bool close_file = false, header = true, no_segments, first_seg = true; int status; size_t n_row_alloc = GMT_CHUNK, n_seg_alloc = GMT_CHUNK, n_head_alloc = GMT_TINY_CHUNK; uint64_t row = 0, n_read = 0, se...
gmtlib_read_texttable
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_regexp_match(GMT_CTRL *GMT, const char *subject, const char *pattern, bool caseless) { unsigned int v5; int erroffset; int options; int rc; const char *error; pcre *re; int ovector[30]; unsigned long v12; v12 = __readfsqword(0x28u); options = 0; if (caseless) ...
int gmtlib_regexp_match (struct GMT_CTRL *GMT, const char *subject, const char *pattern, bool caseless) { #ifdef HAVE_PCRE pcre *re; const char *error; int erroffset; int ovector[OVECCOUNT]; int rc; int options = 0; if (caseless) options = options|PCRE_CASELESS; re = pcre_compile( patte...
gmtlib_regexp_match
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_report_func(GMT_CTRL *GMT, unsigned int level, const char *source_line, const char *format, ...) { long v4; long v5; size_t source_info_len; va_list args; char message[4104]; unsigned long v11; long v12; long v13; va_start(args, format); v4 = va_arg(args, _QWORD); ...
int gmtlib_report_func (struct GMT_CTRL *GMT, unsigned int level, const char *source_line, const char *format, ...) { char message[GMT_BUFSIZ]; size_t source_info_len; va_list args; if (level > GMT->current.setting.verbose) return 0; snprintf (message, GMT_BUFSIZ, "%s (%s): ", GMT->init.module_name, source_li...
gmtlib_report_func
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_scale_eqrad(GMT_CTRL *GMT) { int projection; projection = GMT->current.proj.projection; if (projection > 406) goto LABEL_19; if (projection >= 405) goto LABEL_18; if (projection > 402) goto LABEL_19; if (projection >= 400 || projection == 301) goto LABEL_18; if (projection <= ...
void gmtlib_scale_eqrad (struct GMT_CTRL *GMT) { switch (GMT->current.proj.projection) { case GMT_MERCATOR: case GMT_TM: case GMT_UTM: case GMT_OBLIQUE_MERC: case GMT_LAMBERT: case GMT_STEREO: GMT->current.proj.EQ_RAD = GMT->current.proj.lat_swap_vals.rm; break; case GMT_LAMB_AZ_EQ: ...
gmtlib_scale_eqrad
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_scanf_geodim(GMT_CTRL *GMT, char *s, double *val) { int c; char *p; if (((*__ctype_b_loc())[*s] & 0x400) != 0 || !s[1] && (*s == 45 || *s == 43)) { *val = 0.0; return 1; } else { p = strpbrk(s, "dmsefkMnu"); if (p) { c = *p; *p = 0; *val = atof(s); *p = ...
int gmtlib_scanf_geodim (struct GMT_CTRL *GMT, char *s, double *val) { char *p; if (isalpha ((int)s[0]) || (s[1] == 0 && (s[0] == '-' || s[0] == '+'))) { *val = 0.0; return GMT_IS_FLOAT; } if ((p = strpbrk (s, GMT_LEN_UNITS))) { int c = p[0]; p[0] = '\0'; *val = atof (s); p[0] = (char)c; ...
gmtlib_scanf_geodim
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_set_bin_io(GMT_CTRL *GMT) { if (GMT->common.b.active[0]) { GMT->current.io.input = (void *(*)(GMT_CTRL *, FILE *, uint64_t *, int *))gmtio_bin_input; strcpy(GMT->current.io.r_mode, "rb"); } if (GMT->common.b.active[1]) { GMT->current.io.output = (int (*)(GMT_CTRL *, FILE *,...
void gmtlib_set_bin_io (struct GMT_CTRL *GMT) { if (GMT->common.b.active[GMT_IN]) { GMT->current.io.input = &gmtio_bin_input; strcpy (GMT->current.io.r_mode, "rb"); } if (GMT->common.b.active[GMT_OUT]) { GMT->current.io.output = &gmtio_bin_output; strcpy (GMT->current.io.w_mode, "wb"); strcpy (GMT->curre...
gmtlib_set_bin_io
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_set_dataset_minmax(GMT_CTRL *GMT, GMT_DATASET *D) { uint64_t tbl; uint64_t col; uint64_t cola; GMT_DATATABLE *T; if (D && D->n_columns) { if (!D->min) D->min = (double *)gmt_memory_func(GMT, 0, D->n_columns, 8u, 0, "gmtlib_set_dataset_minmax"); ...
void gmtlib_set_dataset_minmax (struct GMT_CTRL *GMT, struct GMT_DATASET *D) { uint64_t tbl, col; struct GMT_DATATABLE *T = NULL; if (!D) return; if (!D->n_columns) return; if (!D->min) D->min = gmt_M_memory (GMT, NULL, D->n_columns, double); if (!D->max) D->max = gmt_M_memory (GMT, NULL, D->n_columns, double);...
gmtlib_set_dataset_minmax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_set_gap(GMT_CTRL *GMT) { GMT->current.io.status = 32; ++*(_QWORD *)((char *)&loc_514A8 + (_QWORD)GMT); GMT_Report( GMT->parent, 5u, "Data gap detected via -g; Segment header inserted near/at line # %lu\n", GMT->current.io.rec_no); sprintf(GMT->current.io.segment_header, "D...
int gmtlib_set_gap (struct GMT_CTRL *GMT) { GMT->current.io.status = GMT_IO_GAP; GMT->current.io.seg_no++; GMT_Report (GMT->parent, GMT_MSG_LONG_VERBOSE, "Data gap detected via -g; Segment header inserted near/at line # %" PRIu64 "\n", GMT->current.io.rec_no); sprintf (GMT->current.io.segment_header,...
gmtlib_set_gap
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_set_oblique_pole_and_origin(GMT_CTRL *GMT, double plon, double plat, double olon, double olat) { double olata; double olona; double plata; double plona; GMT_CTRL *GMTa; double P[4]; GMTa = GMT; plona = plon; plata = plat; olona = olon; olata = o...
void gmtlib_set_oblique_pole_and_origin (struct GMT_CTRL *GMT, double plon, double plat, double olon, double olat) { double P[3]; gmt_geo_to_cart (GMT, plat, plon, GMT->current.proj.o_FP, true); gmt_geo_to_cart (GMT, olat, olon, P, true); gmt_cross3v (GMT, GMT->current.proj.o_FP, P, GMT->current.proj.o_FC);...
gmtlib_set_oblique_pole_and_origin
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtlib_setparameter(GMT_CTRL *GMT, const char *keyword, char *value, bool core) { unsigned int result; int v5; bool v6; int v7; bool v8; int v9; bool v10; int v11; bool v12; int v13; bool v14; int v15; bool v16; int v17; bool v18; int v19; ...
unsigned int gmtlib_setparameter (struct GMT_CTRL *GMT, const char *keyword, char *value, bool core) { unsigned int pos; size_t len; int i, ival, case_val, manual; bool error = false, tf_answer = false; char txt_a[GMT_LEN256] = {""}, txt_b[GMT_LEN256] = {""}, txt_c[GMT_LEN256] = {""}, lower_value[GMT_BUFSIZ] = {""...
gmtlib_setparameter
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_small_circle_intersection(GMT_CTRL *GMT, double Ax_0, double Ay, double Ar, double Bx_0, double By, double Br, double *Xx, double *Yy) { double v9; unsigned int k; unsigned int ka; unsigned int kb; unsigned int kc; double c...
int gmtlib_small_circle_intersection (struct GMT_CTRL *GMT, double Ax, double Ay, double Ar, double Bx, double By, double Br, double Xx[2], double Yy[2]) { unsigned int k; double A[3], B[3], X[3], N[3], P[3], t, a, b, L_X2, L_N2, cos_AB, AB, cos_Ar, cos_Br, cos_AB2; gmt_geo_to_cart (GMT, Ay, Ax, A, true); gm...
gmtlib_small_circle_intersection
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t *gmtlib_split_line(GMT_CTRL *GMT, double **xx, double **yy, uint64_t *nn, bool add_crossings) { size_t v6; uint64_t v7; uint64_t v8; int l_or_r; size_t n_alloc; size_t __k; uint64_t i; uint64_t j; uint64_t k; uint64_t n; uint64_t n_seg; uint64_t *pos; char ...
uint64_t *gmtlib_split_line (struct GMT_CTRL *GMT, double **xx, double **yy, uint64_t *nn, bool add_crossings) { uint64_t i, j, k, n, n_seg, *split = NULL, *pos = NULL; size_t n_alloc = 0; int l_or_r; char *way = NULL; double *x = NULL, *y = NULL, *xin = NULL, *yin = NULL, xc[2], yc[2]; xin = *xx...
gmtlib_split_line
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int64_t gmtlib_splitinteger(double value, int epsilon, double *doublepart) { long i; double x; x = floor(value / (double)epsilon); i = lrint(x); *doublepart = value - (double)epsilon * x; if (*doublepart >= 0.0001) { if ((double)epsilon - *doublepart < 0.0001) { ++i; *doublepart = 0.0; ...
int64_t gmtlib_splitinteger (double value, int epsilon, double *doublepart) { double x = floor (value / epsilon); int64_t i = lrint (x); *doublepart = value - x * epsilon; if ((*doublepart) < GMT_CONV4_LIMIT) *doublepart = 0.0; else if ((double)epsilon - (*doublepart) < GMT_CONV4_LIMIT) { i++; *do...
gmtlib_splitinteger
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_suggest_fft_dim(GMT_CTRL *GMT, unsigned int n_columns, unsigned int n_rows, GMT_FFT_SUGGESTION *fft_sug, bool do_print) { unsigned int nx_best_t; unsigned int ny_best_t; unsigned int nx_best_e; unsigned int ny_best_e; unsigned int nx_best_s; ...
void gmtlib_suggest_fft_dim (struct GMT_CTRL *GMT, unsigned int n_columns, unsigned int n_rows, struct GMT_FFT_SUGGESTION *fft_sug, bool do_print) { unsigned int f[32], xstop, ystop; unsigned int nx_best_t, ny_best_t; unsigned int nx_best_e, ny_best_e; unsigned int nx_best_s, ny_best_s; unsigned int nxg, nyg; ...
gmtlib_suggest_fft_dim
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmtlib_trim_segheader(GMT_CTRL *GMT, char *line) { char *linea; linea = line; gmt_strstrip(line, 0); while (*linea && (((*__ctype_b_loc())[*linea] & 0x2000) != 0 || *linea == GMT->current.setting.io_seg_marker[0])) ++linea; return linea; }
char *gmtlib_trim_segheader (struct GMT_CTRL *GMT, char *line) { gmt_strstrip (line, false); while (*line && (isspace(*line) || *line == GMT->current.setting.io_seg_marker[GMT_IN])) ++line; return (line); }
gmtlib_trim_segheader
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_union_transpose(GMT_CTRL *GMT, GMT_UNIVECTOR *m, const uint64_t n_rows, const uint64_t n_columns, unsigned int type) { long v5; int v6; long v7; long v8; int v9; int v10; short v11; short v12; uint8_t v13; uint8_t v14; int error; ...
void gmtlib_union_transpose(struct GMT_CTRL *GMT, union GMT_UNIVECTOR *m, const uint64_t n_rows, const uint64_t n_columns, unsigned int type) { union GMT_UNIVECTOR tmp; int error = GMT_OK; switch (type) { case GMT_UCHAR: tmp.uc1 = gmt_M_memory(GMT, NULL, 1, uint8_t); if (tmp.uc1 == NULL) error = GMT_MEMORY_E...
gmtlib_union_transpose
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtlib_unit_lookup(GMT_CTRL *GMT, int c, unsigned int unit) { if (((*__ctype_b_loc())[c] & 0x400) == 0) return unit; switch (c) { case 'C': case 'c': unit = 0; break; case 'I': case 'i': unit = 1; break; case 'P': case 'p': unit = 3; break; default: GMT_Rep...
unsigned int gmtlib_unit_lookup (struct GMT_CTRL *GMT, int c, unsigned int unit) { if (!isalpha ((int)c)) return (unit); switch (c) { case 'c': case 'C': unit = GMT_CM; break; case 'i': case 'I': unit = GMT_INCH; break; case 'p': case 'P': unit = GMT_PT; break; default: GMT_Repo...
gmtlib_unit_lookup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_verify_time_step(GMT_CTRL *GMT, int step, char unit) { int retval; retval = 0; if (step >= 0) { switch (unit) { case 'C': case 'c': if (*(_DWORD *)((char *)strncmp + (_QWORD)GMT) > 4u) goto LABEL_27; GMT_Report(GMT->parent, 3u, "Warning: Unit c for seco...
int gmtlib_verify_time_step (struct GMT_CTRL *GMT, int step, char unit) { int retval = 0; if (step < 0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error: time steps must be positive.\n"); return (-1); } switch (unit) { case 'c': case 'C': if (gmt_M_compat_check (GMT, 4)) { GMT_Report (G...
gmtlib_verify_time_step
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_write_dataset(GMT_CTRL *GMT, void *dest, unsigned int dest_type, GMT_DATASET *D, bool use_GMT_io, int table) { char *a_mode; uint64_t n_segments; uint64_t v9; bool close_file; unsigned int tbl; _BOOL4 append; int error; int errora; int errorb; char *out_file; FI...
int gmtlib_write_dataset (struct GMT_CTRL *GMT, void *dest, unsigned int dest_type, struct GMT_DATASET *D, bool use_GMT_io, int table) { unsigned int tbl, u_table, n_seg; bool close_file = false; int error, append = 0; int *fd = NULL; char file[GMT_BUFSIZ] = {""}, tmpfile[GMT_BUFSIZ] = {""}, open_mode[4] = {""},...
gmtlib_write_dataset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_write_grd(GMT_CTRL *GMT, char *file, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, int complex_mode) { int err; int erra; err = gmt_grd_get_format(GMT, file, header, 0); if (err) return err; grdio_pack_grid(GMT, header, grid, 0...
int gmtlib_write_grd (struct GMT_CTRL *GMT, char *file, struct GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, int complex_mode) { int err; gmt_M_err_trap (gmt_grd_get_format (GMT, file, header, false)); grdio_pack_grid (GMT, header, grid, k_grd_pack); grdio_grd_xy_scale (GMT, h...
gmtlib_write_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_write_grd_info(GMT_CTRL *GMT, char *file, GMT_GRID_HEADER *header) { int err; err = gmt_grd_get_format(GMT, file, header, 0); if (err) return err; grdio_grd_xy_scale(GMT, header, 1u); header->z_min = (header->z_min - header->z_add_offset) / header->z_scale_factor; header->z_max = ...
int gmtlib_write_grd_info (struct GMT_CTRL *GMT, char *file, struct GMT_GRID_HEADER *header) { int err; gmt_M_err_trap (gmt_grd_get_format (GMT, file, header, false)); grdio_grd_xy_scale (GMT, header, GMT_OUT); header->z_min = (header->z_min - header->z_add_offset) / header->z_scale_factor; header->z_ma...
gmtlib_write_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_write_newheaders(GMT_CTRL *GMT, FILE *fp, uint64_t n_cols) { char *header_item; char *v4; uint64_t col; uint64_t first; char txt[64]; char record[4104]; unsigned long v10; v10 = __readfsqword(0x28u); if (!GMT->common.b.active[1] && *((_BYTE *)sub_28F56 + (_QWORD)GMT) == 1) { if (GMT->...
void gmtlib_write_newheaders (struct GMT_CTRL *GMT, FILE *fp, uint64_t n_cols) { if (GMT->common.b.active[GMT_OUT]) return; if (!GMT->current.setting.io_header[GMT_OUT]) return; if (GMT->common.h.title) { gmtio_write_multilines (GMT, fp, GMT->common.h.title, "Title"); } if (GMT->common.h.multi_segment) { ...
gmtlib_write_newheaders
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_write_ogr_header(FILE *fp, GMT_OGR *G) { unsigned int k; unsigned int col; unsigned int cola; fwrite("# @VGMT1.0 @G", 1u, 0xDu, fp); if (G->geometry > 4) fwrite("MULTI", 1u, 5u, fp); if (G->geometry == 1 || G->geometry == 65) fwrite("POINT\n", 1u, 6u, fp); if (G->geometry == 2 || G->g...
void gmtlib_write_ogr_header (FILE *fp, struct GMT_OGR *G) { unsigned int k, col; char *flavor = "egpw"; fprintf (fp, "# @VGMT1.0 @G"); if (G->geometry > GMT_IS_POLYGON) fprintf (fp, "MULTI"); if (G->geometry == GMT_IS_POINT || G->geometry == GMT_IS_MULTIPOINT) fprintf (fp, "POINT\n"); if (G->geometry == GMT_I...
gmtlib_write_ogr_header
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_write_ps(GMT_CTRL *GMT, void *dest, unsigned int dest_type, unsigned int mode, GMT_POSTSCRIPT *P) { const char *v5; unsigned int dest_typea; bool close_file; bool append; FILE *fp; char ps_file[4104]; unsigned long v13; dest_typea = dest_type; v13 = __readfsqword(0x28u)...
int gmtlib_write_ps (struct GMT_CTRL *GMT, void *dest, unsigned int dest_type, unsigned int mode, struct GMT_POSTSCRIPT *P) { bool close_file = false, append = false; char ps_file[GMT_BUFSIZ] = {""}; static char *msg1[2] = {"Writing", "Appending"}; FILE *fp = NULL; gmt_M_unused(mode); if (dest_type == GMT_...
gmtlib_write_ps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_write_tableheader(GMT_CTRL *GMT, FILE *fp, char *txt) { const char *txta; txta = txt; if (*((_BYTE *)sub_28F56 + (_QWORD)GMT) == 1) { if (GMT->common.b.active[1] && *((_BYTE *)sub_28F56 + (_QWORD)GMT) && GMT->current.setting.io_n_header_items) { gmtlib_io_binary_header(GMT, fp, 1u);...
void gmtlib_write_tableheader (struct GMT_CTRL *GMT, FILE *fp, char *txt) { if (!GMT->current.setting.io_header[GMT_OUT]) return; if (gmt_M_binary_header (GMT, GMT_OUT)) gmtlib_io_binary_header (GMT, fp, GMT_OUT); else if (!txt || !txt[0]) fprintf (fp, "#\n"); else { if (txt[0] != '>') fputc ('#', ...
gmtlib_write_tableheader
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtlib_write_textrecord(GMT_CTRL *GMT, FILE *fp, char *txt) { if (!GMT->common.b.active[1] && txt && *txt) { fputs(txt, fp); if (txt[strlen(txt) - 1] != 10) fputc(10, fp); } }
void gmtlib_write_textrecord (struct GMT_CTRL *GMT, FILE *fp, char *txt) { if (GMT->common.b.active[GMT_OUT]) return; if (!txt || !txt[0]) return; fprintf (fp, "%s", txt); if (txt[strlen(txt)-1] != '\n') fputc ('\n', fp); }
gmtlib_write_textrecord
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_write_textset(GMT_CTRL *GMT, void *dest, unsigned int dest_type, GMT_TEXTSET *D, int table) { const char *v6; uint64_t n_segments; uint64_t v8; bool close_file; unsigned int tbl; unsigned int append; int error; int errora; int errorb; char *out_file; FILE *fp; ...
int gmtlib_write_textset (struct GMT_CTRL *GMT, void *dest, unsigned int dest_type, struct GMT_TEXTSET *D, int table) { int error; unsigned int tbl, u_table, append = 0, n_seg; bool close_file = false; int *fd = NULL; char file[GMT_BUFSIZ] = {""}, tmpfile[GMT_BUFSIZ] = {""}, *out_file = tmpfile; FILE *fp = NUL...
gmtlib_write_textset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtlib_y2_to_y4_yearfix(GMT_CTRL *GMT, unsigned int y2) { int y200; if (y2 < GMT->current.time.Y2K_fix.y2_cutoff) y200 = GMT->current.time.Y2K_fix.y200; else y200 = *(_DWORD *)((char *)&loc_12EDF4 + (_QWORD)GMT); return y200 + y2; }
int gmtlib_y2_to_y4_yearfix (struct GMT_CTRL *GMT, unsigned int y2) { return (y2 + ((y2 >= GMT->current.time.Y2K_fix.y2_cutoff) ? GMT->current.time.Y2K_fix.y100 : GMT->current.time.Y2K_fix.y200)); }
gmtlib_y2_to_y4_yearfix
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtmap_lat_swap_quick(GMT_CTRL *GMT, double lat, double *c) { double cosx; double sinx; double *ca; double lata; GMT_CTRL *GMTa; double cos2phi; double sin2phi; double delta; unsigned long v12; GMTa = GMT; lata = lat; ca = c; v12 = __readfsqword(0x28u); if (lat >= 90.0) return 90...
double gmtmap_lat_swap_quick (struct GMT_CTRL *GMT, double lat, double c[]) { double delta, cos2phi, sin2phi; gmt_M_unused(GMT); if (lat >= 90.0) return ( 90.0); if (lat <= -90.0) return (-90.0); if (gmt_M_is_zero (lat)) return (0.0); sincosd (2.0 * lat, &sin2phi, &cos2phi); delta = sin2phi * (c[0] + c...
gmtmap_lat_swap_quick
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtmap_left_boundary(GMT_CTRL *GMT, double y) { return GMT->current.map.left_edge(GMT, y); }
double gmtmap_left_boundary (struct GMT_CTRL *GMT, double y) { return ((*GMT->current.map.left_edge) (GMT, y)); }
gmtmap_left_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtmap_right_boundary(GMT_CTRL *GMT, double y) { return GMT->current.map.right_edge(GMT, y); }
double gmtmap_right_boundary (struct GMT_CTRL *GMT, double y) { return ((*GMT->current.map.right_edge) (GMT, y)); }
gmtmap_right_boundary
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtmath_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 gmtmath_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...
gmtmath_backwards_fixing
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtmath_find_stored_item(GMTMATH_STORED **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 gmtmath_find_stored_item (struct GMTMATH_STORED *recall[], int n_stored, char *label) { int k = 0; while (k < n_stored && strcmp (recall[k]->label, label)) k++; return (k == n_stored ? -1 : k); }
gmtmath_find_stored_item
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmtmath_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 *gmtmath_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); }
gmtmath_setlabel
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_check_step(GMT_CTRL *GMT, uint32_t n, double *x, char *varname, char *file) { uint32_t i; double step_min; double step_max; double step; if (n > 1) { step_max = x[1] - *x; step_min = step_max; for (i = 2; i < n; ++i) { step = x[i] - x[i - 1]; if (step_...
GMT_LOCAL void gmtnc_check_step (struct GMT_CTRL *GMT, uint32_t n, double *x, char *varname, char *file) { double step, step_min, step_max; uint32_t i; if (n < 2) return; step_min = step_max = x[1]-x[0]; for (i = 2; i < n; i++) { step = x[i]-x[i-1]; if (step < step_min) step_min = step; if (step > step_max...
gmtnc_check_step
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_get_units(GMT_CTRL *GMT, int ncid, int varid, char *name_units) { char name[80]; char units[88]; unsigned long v8; v8 = __readfsqword(0x28u); if (gmtlib_nc_get_att_text(GMT, ncid, varid, "long_name", name, 0x50u)) nc_inq_varname((unsigned int)ncid, (unsigned int)varid, name); if (gmtlib_nc_g...
GMT_LOCAL void gmtnc_get_units (struct GMT_CTRL *GMT, int ncid, int varid, char *name_units) { char name[GMT_GRID_UNIT_LEN80], units[GMT_GRID_UNIT_LEN80]; if (gmtlib_nc_get_att_text (GMT, ncid, varid, "long_name", name, GMT_GRID_UNIT_LEN80)) nc_inq_varname (ncid, varid, name); if (!gmtlib_nc_get_att_text (GM...
gmtnc_get_units
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtnc_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header, char job) { unsigned int v4; const char *v5; const char *v6; const char *v7; uint32_t n_columns; int var_double; int att_double; int v11; double v12; double v13; double v14; int v15; int v16; int v17; double v18; double v19; do...
GMT_LOCAL int gmtnc_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, char job) { int j, err, has_vector, has_range, registration; int old_fill_mode, status; double dummy[2], *xy = NULL, tmp; char dimname[GMT_GRID_UNIT_LEN80], coord[8]; nc_type z_type; int i, ncid, z_id = -1, ids[5] = {-1,-1,-1,-...
gmtnc_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtnc_grd_prep_io(GMT_CTRL *GMT, GMT_GRID_HEADER *header, double *wesn, unsigned int *width, unsigned int *height, int *n_shift, unsigned int *origin, unsigned int *dim, unsigned int *origin2, unsigned int *dim2) { bool v10; int v12; bool is_gl...
GMT_LOCAL int gmtnc_grd_prep_io (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, double wesn[4], unsigned int *width, unsigned int *height, int *n_shift, unsigned origin[2], unsigned dim[2], unsigned origin2[2], unsigned dim2[2]) { bool is_gridline_reg, is_global, is_global_repeat; unsigned last_row, firs...
gmtnc_grd_prep_io
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_grid_fix_repeat_col(GMT_CTRL *GMT, void *gridp, const unsigned int n_cols, const unsigned int n_rows, size_t cell_size) { unsigned int n_conflicts; size_t row; size_t n_cols_t; size_t n_rows_t; n_conflicts = 0; n_cols_t = n_cols; n_...
GMT_LOCAL void gmtnc_grid_fix_repeat_col (struct GMT_CTRL *GMT, void *gridp, const unsigned n_cols, const unsigned n_rows, size_t cell_size) { char *grid = (char*)gridp; unsigned n_conflicts = 0; size_t row; size_t n_cols_t = (size_t)n_cols, n_rows_t = (size_t)n_rows; for (row = 0; row < n_rows_t; ++row) { ch...
gmtnc_grid_fix_repeat_col
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtnc_io_nc_grid(GMT_CTRL *GMT, GMT_GRID_HEADER *header, unsigned int *dim, unsigned int *origin, size_t stride, unsigned int io_mode, float *grid) { size_t v7; size_t v8; float *grida; int status; unsigned int width; unsigned int height; size_t n_contiguous_c...
GMT_LOCAL int gmtnc_io_nc_grid (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, unsigned dim[], unsigned origin[], size_t stride, unsigned io_mode, float* grid) { int status = NC_NOERR; unsigned width = dim[1], height = dim[0]; unsigned yx_dim[2]; size_t width_t = (size_t)width; size_t height_t = (size_...
gmtnc_io_nc_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtnc_n_chunked_rows_in_cache(GMT_CTRL *GMT, GMT_GRID_HEADER *header, unsigned int width, unsigned int height, size_t *n_contiguous_chunk_rows, size_t *chunksize) { long v7; double v8; double v9; size_t v10...
GMT_LOCAL int gmtnc_n_chunked_rows_in_cache (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, unsigned width, unsigned height, size_t *n_contiguous_chunk_rows, size_t *chunksize) { nc_type z_type; size_t z_size; size_t z_bytes; size_t width_t = (size_t)width; size_t height_t = (size_t)height; unsigned ...
gmtnc_n_chunked_rows_in_cache
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
const int *gmtnc_netcdf_libvers() { const char *vers_string; if (!inquired_15) { vers_string = (const char *)nc_inq_libvers(); __isoc99_sscanf(vers_string, "%d.%d.%d.%d", nc_libvers, &nc_libvers[1], &nc_libvers[2], &nc_libvers[3]); inquired_15 = 1; } return nc_libvers; }
GMT_LOCAL const int * gmtnc_netcdf_libvers (void) { static bool inquired = false; if (!inquired) { const char *vers_string = nc_inq_libvers(); sscanf (vers_string, "%d.%d.%d.%d", nc_libvers, nc_libvers+1, nc_libvers+2, nc_libvers+3); inquired = true; } return nc_libvers; }
gmtnc_netcdf_libvers
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_pad_grid(void *gridp, const unsigned int n_cols, const unsigned int n_rows, const unsigned int *n_pad, size_t cell_size, unsigned int filltype) { size_t new_row; size_t old_row; size_t n_new_cols; size_t n_new_rows; char *from; char *to; old_row = n_rows...
GMT_LOCAL void gmtnc_pad_grid (void *gridp, const unsigned n_cols, const unsigned n_rows, const unsigned *n_pad, size_t cell_size, unsigned filltype) { char *grid = (char*)gridp; size_t n_cols_t = (size_t)n_cols, n_rows_t = (size_t)n_rows; size_t new_row; size_t old_row = n_rows_t-1; size_t n_new_cols = n_co...
gmtnc_pad_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_padding_copy(void *gridp, const unsigned int n_cols, const unsigned int n_rows, const unsigned int *n_pad, size_t cell_size, bool periodic_cols) { size_t row; size_t rowa; size_t rowb; size_t cell; size_t cella; size_t cellb; size_t cellc; size_...
GMT_LOCAL void gmtnc_padding_copy (void *gridp, const unsigned n_cols, const unsigned n_rows, const unsigned *n_pad, size_t cell_size, bool periodic_cols) { char *grid = (char*)gridp; size_t row, cell, nm, nm2; size_t n_cols_t = (size_t)n_cols, n_rows_t = (size_t)n_rows; size_t pad_t[4]; assert (n_cols > n_pad[...
gmtnc_padding_copy
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_padding_zero(void *gridp, const unsigned int n_cols, const unsigned int n_rows, const unsigned int *n_pad, size_t cell_size) { size_t row; size_t rowa; size_t n_rows_t; size_t pad_t[5]; unsigned long v10; v10 = __readfsqword(0x28u); n_rows_t = n_...
GMT_LOCAL void gmtnc_padding_zero (void *gridp, const unsigned n_cols, const unsigned n_rows, const unsigned *n_pad, size_t cell_size) { char *grid = (char*)gridp; size_t row, nm; size_t n_cols_t = (size_t)n_cols, n_rows_t = (size_t)n_rows; size_t pad_t[4]; assert (n_cols > n_pad[XLO] + n_pad[XHI] && n_rows > n...
gmtnc_padding_zero
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_put_units(int ncid, int varid, char *name_units) { int v3; size_t v4; size_t v5; bool copy; int i; int j; char name[80]; char units[88]; unsigned long v11; v11 = __readfsqword(0x28u); copy = 0; j = 0; strncpy(name, name_units, 0x4Fu); units[0] = 0; for (i = 0; i <= 79 && name[i...
GMT_LOCAL void gmtnc_put_units (int ncid, int varid, char *name_units) { bool copy = false; int i = 0, j = 0; char name[GMT_GRID_UNIT_LEN80], units[GMT_GRID_UNIT_LEN80]; strncpy (name, name_units, GMT_GRID_UNIT_LEN80-1); units[0] = '\0'; for (i = 0; i < GMT_GRID_UNIT_LEN80 && name[i]; i++) { if (name[i] ...
gmtnc_put_units
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_right_shift_grid(void *gridp, const unsigned int n_cols, const unsigned int n_rows, int n_shift, size_t cell_size) { size_t row; size_t rowa; char *tmp; size_t n_shift_abs; size_t n_rows_t; n_shift_abs = (int)abs32(n_shift); n_rows_t = n_...
GMT_LOCAL void gmtnc_right_shift_grid (void *gridp, const unsigned n_cols, const unsigned n_rows, int n_shift, size_t cell_size) { char *tmp = NULL, *grid = (char*)gridp; size_t row, n_shift_abs = abs (n_shift), nm; size_t n_cols_t = (size_t)n_cols, n_rows_t = (size_t)n_rows; assert (n_shift_abs != 0 && n_cols_t >...
gmtnc_right_shift_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_set_optimal_chunksize(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { double v2; double v3; double v4; double v5; double v6; unsigned long v7; double v8; double v9; unsigned long v10; double n_rows; double n_columns; size_t min_chunk_pixels; double chunksize; double chunksize_8; chun...
GMT_LOCAL void gmtnc_set_optimal_chunksize (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { double chunksize[2] = {128, 128}; const size_t min_chunk_pixels = (size_t)(chunksize[0] * chunksize[1]); if (GMT->current.setting.io_nc4_chunksize[0] == k_netcdf_io_classic) ...
gmtnc_set_optimal_chunksize
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_setup_chunk_cache() { if (!already_setup_2) { nc_set_chunk_cache(0x2000000, 2053, 0.75); already_setup_2 = 1; } }
static inline void gmtnc_setup_chunk_cache (void) { static bool already_setup = false; if (!already_setup) { nc_set_chunk_cache (NC_CACHE_SIZE, NC_CACHE_NELEMS, NC_CACHE_PREEMPTION); already_setup = true; } }
gmtnc_setup_chunk_cache
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtnc_unpad_grid(void *gridp, const unsigned int n_cols, const unsigned int n_rows, const unsigned int *n_pad, size_t cell_size) { size_t row; size_t n_old_cols; size_t n_rows_t; char *from; char *to; n_old_cols = n_cols + *n_pad + n_pad[1]; n_rows_t = n_r...
GMT_LOCAL void gmtnc_unpad_grid (void *gridp, const unsigned n_cols, const unsigned n_rows, const unsigned *n_pad, size_t cell_size) { char *grid = (char*)gridp; size_t n_old_cols = n_cols + n_pad[XLO] + n_pad[XHI]; size_t n_cols_t = (size_t)n_cols, n_rows_t = (size_t)n_rows; size_t row; #ifdef NC4_DEBUG fp...
gmtnc_unpad_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtstat_Cabs(double *A) { return hypot(*A, A[1]); }
GMT_LOCAL double gmtstat_Cabs (double A[]) { return (hypot (A[GMT_RE], A[GMT_IM])); }
gmtstat_Cabs
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtstat_Cdiv(double *A, double *B, double *C) { double denom; denom = B[1] * B[1] + *B * *B; *C = (B[1] * A[1] + *A * *B) / denom; C[1] = (*B * A[1] - B[1] * *A) / denom; }
GMT_LOCAL void gmtstat_Cdiv (double A[], double B[], double C[]) { double denom; denom = B[GMT_RE]*B[GMT_RE] + B[GMT_IM]*B[GMT_IM]; C[GMT_RE] = (A[GMT_RE]*B[GMT_RE] + A[GMT_IM]*B[GMT_IM])/denom; C[GMT_IM] = (A[GMT_IM]*B[GMT_RE] - A[GMT_RE]*B[GMT_IM])/denom; }
gmtstat_Cdiv
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtstat_Cmul(double *A, double *B, double *C) { *C = *B * *A - B[1] * A[1]; C[1] = *B * A[1] + *A * B[1]; }
GMT_LOCAL void gmtstat_Cmul (double A[], double B[], double C[]) { C[GMT_RE] = A[GMT_RE]*B[GMT_RE] - A[GMT_IM]*B[GMT_IM]; C[GMT_IM] = A[GMT_RE]*B[GMT_IM] + A[GMT_IM]*B[GMT_RE]; }
gmtstat_Cmul
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtstat_F_to_ch1_ch2(GMT_CTRL *GMT, double F, double nu1, double nu2, double *chisq1, double *chisq2) { *chisq2 = 1.0; *chisq1 = F * nu1 / nu2; }
GMT_LOCAL void gmtstat_F_to_ch1_ch2 (struct GMT_CTRL *GMT, double F, double nu1, double nu2, double *chisq1, double *chisq2) { gmt_M_unused(GMT); *chisq2 = 1.0; *chisq1 = F * nu1 / nu2; }
gmtstat_F_to_ch1_ch2
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtstat_beta(GMT_CTRL *GMT, double z, double w) { double g1; double g2; double g3[2]; *(_QWORD *)&g3[1] = __readfsqword(0x28u); g1 = 0.0; g2 = 0.0; g3[0] = 0.0; gmtstat_ln_gamma_r(GMT, z, &g1); gmtstat_ln_gamma_r(GMT, w, &g2); gmtstat_ln_gamma_r(GMT, z + w, g3); return exp(g2 + g1 - g3[0])...
GMT_LOCAL double gmtstat_beta (struct GMT_CTRL *GMT, double z, double w) { double g1 = 0.0, g2 = 0.0, g3 = 0.0; gmtstat_ln_gamma_r (GMT, z, &g1); gmtstat_ln_gamma_r (GMT, w, &g2); gmtstat_ln_gamma_r (GMT, z+w, &g3); return exp (g1 + g2 - g3); }
gmtstat_beta
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtstat_cf_beta(GMT_CTRL *GMT, double a, double b, double x) { int m; double am; double bm; double az; double bz; double qab; double qap; double qam; double tem; double app; double bpp; double aold; am = 1.0; bm = 1.0; az = 1.0; m = 0; qab = a + b; qap = a + 1.0; qam = a - ...
GMT_LOCAL double gmtstat_cf_beta (struct GMT_CTRL *GMT, double a, double b, double x) { double am = 1.0, bm = 1.0, az = 1.0; double qab, qap, qam, bz, em, tem, d; double ap, bp, app, bpp, aold; int m = 0; qab = a + b; qap = a + 1.0; qam = a - 1.0; bz = 1.0 - qab * x / qap; do { m++; em = (double)m; ...
gmtstat_cf_beta
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtstat_f_q(GMT_CTRL *GMT, double chisq1, uint64_t nu1, double chisq2, uint64_t nu2, double *prob) { double v7; double v8; double v9; if (nu1 && nu2 && chisq1 >= 0.0 && chisq2 >= 0.0) { if (chisq1 == 0.0) { *prob = 1.0; return 0; } else if (chisq2 == 0.0) { *prob =...
GMT_LOCAL int gmtstat_f_q (struct GMT_CTRL *GMT, double chisq1, uint64_t nu1, double chisq2, uint64_t nu2, double *prob) { if (nu1 <= 0 || nu2 <= 0 || chisq1 < 0.0 || chisq2 < 0.0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "gmtstat_f_q: Bad argument(s).\n"); return (-1); } if ...
gmtstat_f_q
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtstat_f_test_new(GMT_CTRL *GMT, double chisq1, uint64_t nu1, double chisq2, uint64_t nu2, double *prob, int iside) { double v8; double v9; double v10; double v11; double q[2]; *(_QWORD *)&q[1] = __readfsqword(0x28u); if (chisq1 > 0.0 && chisq2 > 0.0 && nu1 && nu2) { gmtst...
GMT_LOCAL int gmtstat_f_test_new (struct GMT_CTRL *GMT, double chisq1, uint64_t nu1, double chisq2, uint64_t nu2, double *prob, int iside) { double q; if (chisq1 <= 0.0 || chisq2 <= 0.0 || nu1 < 1 || nu2 < 1) { *prob = GMT->session.d_NaN; GMT_Report (GMT->parent, GMT_MSG_NORMAL, "gmtstat_...
gmtstat_f_test_new
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtstat_factln(GMT_CTRL *GMT, int n) { if (n >= 0) { if (n > 1) { if (n > 100) { return gmtstat_ln_gamma(GMT, (double)n + 1.0); } else { if (a_17[n] == 0.0) a_17[n] = gmtstat_ln_gamma(GMT, (double)n + 1.0); return a_17[n]; } } else { return 0.0;...
GMT_LOCAL double gmtstat_factln (struct GMT_CTRL *GMT, int n) { static double a[101]; if (n < 0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Error: n < 0 in gmtstat_factln(n)\n"); return (GMT->session.d_NaN); } if (n <= 1) return 0.0; if (n <= 100) return (a[n] ? a[n] : (a[n] = gmtstat_ln_gamma (GMT, n+1.0)...
gmtstat_factln
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtstat_gamma_cf(GMT_CTRL *GMT, double *gammcf, double a, double x, double *gln) { double v5; int n; double gold; double fac; double b1; double b0; double a1; double a0; double ana; double g; gold = 0.0; fac = 1.0; b1 = 1.0; b0 = 0.0; a0 = 1.0; if (gmtstat_ln_...
GMT_LOCAL void gmtstat_gamma_cf (struct GMT_CTRL *GMT, double *gammcf, double a, double x, double *gln) { int n; double gold = 0.0, g, fac = 1.0, b1 = 1.0; double b0 = 0.0, anf, ana, an, a1, a0 = 1.0; if (gmtstat_ln_gamma_r (GMT, a, gln) == -1) { *gln = GMT->session.d_NaN; return; } a1 = x; for (n = 1; ...
gmtstat_gamma_cf
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtstat_gamma_ser(GMT_CTRL *GMT, double *gamser, double a, double x, double *gln) { double v5; int n; double sum; double del; double ap; if (gmtstat_ln_gamma_r(GMT, a, gln) == -1) { *gamser = GMT->session.d_NaN; } else if (x >= 0.0) { if (x == 0.0) { *gamser = 0....
GMT_LOCAL void gmtstat_gamma_ser (struct GMT_CTRL *GMT, double *gamser, double a, double x, double *gln) { int n; double sum, del, ap; if (gmtstat_ln_gamma_r (GMT, a, gln) == -1) { *gamser = GMT->session.d_NaN; return; } if (x < 0.0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "GMT DOMAIN ERROR: x < 0 ...
gmtstat_gamma_ser
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtstat_gammq(GMT_CTRL *GMT, double a, double x) { double G; double gln[2]; *(_QWORD *)&gln[1] = __readfsqword(0x28u); G = 0.0; if (x >= 0.0 && a > 0.0) { if (a + 1.0 <= x) { gmtstat_gamma_cf(GMT, &G, a, x, gln); return G; } else { gmtstat_gamma_ser(GMT, &G, a, x, gln); ...
GMT_LOCAL double gmtstat_gammq (struct GMT_CTRL *GMT, double a, double x) { double G = 0.0, gln; if (x < 0.0 || a <= 0.0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "GMT DOMAIN ERROR: Invalid arguments to GMT_gammaq\n"); return (GMT->session.d_NaN); } if (x < (a + 1.0)) { gmtstat_gamma_ser (GMT, &G, a, ...
gmtstat_gammq
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtstat_inc_beta(GMT_CTRL *GMT, double a, double b, double x, double *ibeta) { double d_NaN; double v7; double v8; double v9; double v10; double v11; double gama; double gamb; double gamab; double bt; unsigned long v17; v17 = __readfsqword(0x28u); if (a > 0.0) { i...
GMT_LOCAL int gmtstat_inc_beta (struct GMT_CTRL *GMT, double a, double b, double x, double *ibeta) { double bt, gama, gamb, gamab; if (a <= 0.0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "gmtstat_inc_beta: Bad a (a <= 0).\n"); return(-1); } if (b <= 0.0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "gmtstat_...
gmtstat_inc_beta
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtstat_ln_gamma(GMT_CTRL *GMT, double xx) { double d_NaN; double v3; double v5; int i; double x; double ser; double tmp; double tmpa; x = xx - 1.0; tmp = xx - 1.0 + 5.5; v5 = xx - 1.0 + 0.5; if (tmp > 0.0) d_NaN = log(tmp); else d_NaN = GMT->session.d_NaN; tmpa = d_NaN * v5 ...
GMT_LOCAL double gmtstat_ln_gamma (struct GMT_CTRL *GMT, double xx) { static double cof[6] = { 76.18009173, -86.50532033, 24.01409822, -1.231739516, 0.120858003e-2, -0.536382e-5 }; double x, tmp, ser; int i; x = xx - 1.0; tmp = x + 5.5; tmp = (x + 0.5) * d_log (GMT,tmp) - tmp; ser = 1.0...
gmtstat_ln_gamma
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtstat_ln_gamma_r(GMT_CTRL *GMT, double x, double *lngam) { double v4; double d_NaN; if (x <= 1.0) { if (x <= 0.0 || x >= 1.0) { if (x == 1.0) { *lngam = 0.0; return 0; } else { GMT_Report(GMT->parent, 1u, "Ln Gamma: Bad x (x <= 0).\n"); return -1; } ...
GMT_LOCAL int gmtstat_ln_gamma_r (struct GMT_CTRL *GMT, double x, double *lngam) { if (x > 1.0) { *lngam = gmtstat_ln_gamma (GMT, x); return (0); } if (x > 0.0 && x < 1.0) { *lngam = gmtstat_ln_gamma (GMT, 1.0 + x) - d_log (GMT,x); return (0); } if (x == 1.0) { *lngam = 0.0; return (0); } ...
gmtstat_ln_gamma_r
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtstat_student_t_a(GMT_CTRL *GMT, double t, uint64_t n, double *prob) { double v5; double v6; double cosx; double sinx; double *proba; uint64_t na; double ta; GMT_CTRL *GMTa; double s; double c; double term; double sum; int64_t k; int64_t kt; int64_t kb; double theta; double csq; ...
GMT_LOCAL int gmtstat_student_t_a (struct GMT_CTRL *GMT, double t, uint64_t n, double *prob) { double theta, s, c, csq, term, sum; int64_t k, kstop, kt, kb; if (t < 0.0 || n == 0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "gmtstat_student_t_a: Bad argument(s).\n"); *prob = GMT-...
gmtstat_student_t_a
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtsupport_parse_pattern(GMT_CTRL *GMT, char *line, GMT_FILL *fill) { int err; if ((strstr(line, "+r") || strstr(line, "+f") || strstr(line, "+b") || !strchr(line, 47)) && !strchr(line, 58)) err = gmtsupport_parse_pattern_new(GMT, line, fill); else err = gmtsupport_parse_pattern_old(GMT,...
GMT_LOCAL int gmtsupport_parse_pattern (struct GMT_CTRL *GMT, char *line, struct GMT_FILL *fill) { int err; if ((strstr(line, "+r") || strstr(line, "+f") || strstr(line, "+b") || !strchr(line, '/')) && !strchr (line,':')) err = gmtsupport_parse_pattern_new (GMT, line, fill); else err = gmtsupport_parse_pattern...
gmtsupport_parse_pattern
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtsupport_parse_pattern_new(GMT_CTRL *GMT, char *line, GMT_FILL *fill) { char *v4; char *v5; unsigned int pos; unsigned int uerr; char *c; double fb_rgb[4]; char p[4104]; unsigned long v12; v12 = __readfsqword(0x28u); fill->dpi = lrint(1200.0); c = strchr(line, 43); if (!c) goto LABEL_...
GMT_LOCAL int gmtsupport_parse_pattern_new (struct GMT_CTRL *GMT, char *line, struct GMT_FILL *fill) { char *c = NULL; double fb_rgb[4]; fill->dpi = irint (PSL_DOTS_PER_INCH); if ((c = strchr (line, '+'))) { unsigned int pos = 0, uerr = 0; char p[GMT_BUFSIZ] = {""}; while (gmt_getmodopt (GMT, 0, c, "bfr",...
gmtsupport_parse_pattern_new
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtsupport_parse_pattern_old(GMT_CTRL *GMT, char *line, GMT_FILL *fill) { int v4; char f; int i; int ia; int pos; int posa; int posb; int end; int len; int lena; double fb_rgb[4]; char word[264]; unsigned long v17; v17 = __readfsqword(0x28u); memset(word, 0, 256); if (!gmt_access(GM...
GMT_LOCAL int gmtsupport_parse_pattern_old (struct GMT_CTRL *GMT, char *line, struct GMT_FILL *fill) { int n, i, len, pos, end; char f, word[GMT_LEN256] = {""}; double fb_rgb[4]; if (!gmt_access (GMT, &line[1], F_OK)) return (gmtsupport_parse_pattern_new (GMT, line, fill)); n = sscanf (&line[1], "%d/%s"...
gmtsupport_parse_pattern_old
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtsupport_sort_order_ascend(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 gmtsupport_sort_order_ascend (const void *p_1, const void *p_2) { bool bad_1, bad_2; const struct GMT_ORDER *point_1 = p_1, *point_2 = p_2; bad_1 = gmt_M_is_dnan (point_1->value); bad_2 = gmt_M_is_dnan (point_2->value); if (bad_1 && bad_2) return (0); if (bad_1) return (+1); if (bad_2) return...
gmtsupport_sort_order_ascend
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtsupport_sort_order_descend(const void *p_1, const void *p_2) { if (*(double *)p_1 <= *(double *)p_2) return *(double *)p_2 > *(double *)p_1; else return -1; }
GMT_LOCAL int gmtsupport_sort_order_descend (const void *p_1, const void *p_2) { bool bad_1, bad_2; const struct GMT_ORDER *point_1 = p_1, *point_2 = p_2; bad_1 = gmt_M_is_dnan (point_1->value); bad_2 = gmt_M_is_dnan (point_2->value); if (bad_1 && bad_2) return (0); if (bad_1) return (+1); if (bad_2) retur...
gmtsupport_sort_order_descend
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline1d_Wessel_Bercovici(GMT_CTRL *GMT, double r, double *par, GREENSPLINE_LOOKUP *unused) { if (r == 0.0) return 0.0; else return 1.0 - exp(-(*par * r)); }
GMT_LOCAL double gradspline1d_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 (1.0 - exp (-cx)); }
gradspline1d_Wessel_Bercovici
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline1d_linear(GMT_CTRL *GMT, double r, double *par, GREENSPLINE_LOOKUP *unused) { return 1.0; }
GMT_LOCAL double gradspline1d_linear (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) { gmt_M_unused(GMT); gmt_M_unused(r); gmt_M_unused(par); gmt_M_unused(unused); return (1.0); }
gradspline1d_linear
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline1d_sandwell(GMT_CTRL *GMT, double r, double *par, GREENSPLINE_LOOKUP *unused) { return r; }
GMT_LOCAL double gradspline1d_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); return (r); }
gradspline1d_sandwell
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline2d_Mitasova_Mitas(GMT_CTRL *GMT, double r, double *par, GREENSPLINE_LOOKUP *unused) { double v5; if (r == 0.0) return 0.0; v5 = exp(-(par[1] * r * r)); return (1.0 - v5 + 1.0 - v5) / r; }
GMT_LOCAL double gradspline2d_Mitasova_Mitas (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) { double u, dgdr; gmt_M_unused(GMT); gmt_M_unused(unused); if (r == 0.0) return (0.0); u = par[1] * r * r; dgdr = 2.0 * (1.0 - exp (-u))/r; return (dgdr); }
gradspline2d_Mitasova_Mitas
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline2d_Parker(GMT_CTRL *GMT, double x, double *par, GREENSPLINE_LOOKUP *unused) { double v5; if (x == 1.0 || x == -1.0) return 0.0; v5 = log(0.5 - x * 0.5); return sqrt((1.0 - x) / (x + 1.0)) * v5; }
GMT_LOCAL double gradspline2d_Parker (struct GMT_CTRL *GMT, double x, double par[], struct GREENSPLINE_LOOKUP *unused) { gmt_M_unused(GMT); gmt_M_unused(par); gmt_M_unused(unused); if (x == +1.0 || x == -1.0) return (0.0); return (log (0.5 - 0.5 * x) * sqrt ((1.0 - x) / (1.0 + x))); }
gradspline2d_Parker
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline2d_Wessel_Becker_Revised(GMT_CTRL *GMT, double x, double *par, GREENSPLINE_LOOKUP *Lg) { unsigned int l; unsigned int L_max; double P0; double P1; double S; double sin_theta; double P2; if (fabs(x) == 1.0) return 1.0; L_max = get_L(x, *pa...
GMT_LOCAL double gradspline2d_Wessel_Becker_Revised (struct GMT_CTRL *GMT, double x, double par[], struct GREENSPLINE_LOOKUP *Lg) { unsigned int L_max, l; double sin_theta, P0, P1, P2, S; gmt_M_unused(GMT); if (fabs(x) == 1.0) return 1.0; L_max = get_L (x, par[0], par[1]); sin_theta = sqrt (1.0 - x * x); P0 ...
gradspline2d_Wessel_Becker_Revised
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline2d_Wessel_Becker_lookup(GMT_CTRL *GMT, double x, double *par, GREENSPLINE_LOOKUP *L) { return spline2d_lookup(GMT, x, par, L); }
GMT_LOCAL double gradspline2d_Wessel_Becker_lookup (struct GMT_CTRL *GMT, double x, double par[], struct GREENSPLINE_LOOKUP *L) { return (spline2d_lookup (GMT, x, par, L)); }
gradspline2d_Wessel_Becker_lookup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline2d_Wessel_Bercovici(GMT_CTRL *GMT, double r, double *par, GREENSPLINE_LOOKUP *unused) { double v5; double dgdr; 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; v...
GMT_LOCAL double gradspline2d_Wessel_Bercovici (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) { double y, z, cx, t, dgdr; 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; dg...
gradspline2d_Wessel_Bercovici
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline2d_sandwell(GMT_CTRL *GMT, double r, double *par, GREENSPLINE_LOOKUP *unused) { double v5; if (r == 0.0) return 0.0; v5 = log(r); return (v5 + v5 - 1.0) * r; }
GMT_LOCAL double gradspline2d_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 * (2.0 * log (r) - 1.0)); }
gradspline2d_sandwell
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline3d_Mitasova_Mitas(GMT_CTRL *GMT, double r, double *par, GREENSPLINE_LOOKUP *unused) { double v5; double u; if (r == 0.0) return 0.0; u = *par * r; v5 = exp(-u * u) * (u / 1.772453850905516); return (v5 - erf(u * 0.5)) / (u * r); }
GMT_LOCAL double gradspline3d_Mitasova_Mitas (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) { double u, dgdr; gmt_M_unused(GMT); gmt_M_unused(unused); if (r == 0.0) return (0.0); u = par[0] * r; dgdr = ((u/M_SQRT_PI) * exp (-u*u) - erf (0.5 * u)) / (u * r); return (dgdr); }
gradspline3d_Mitasova_Mitas
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline3d_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 (1.0 - (cx_0 + 1.0) * exp(-cx_0)) / (cx_0 * r); }
GMT_LOCAL double gradspline3d_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 ((1.0 - exp (-cx) * (cx + 1.0)) / (cx * r)); }
gradspline3d_Wessel_Bercovici
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gradspline3d_sandwell(GMT_CTRL *GMT, double r, double *par, GREENSPLINE_LOOKUP *unused) { return 1.0; }
GMT_LOCAL double gradspline3d_sandwell (struct GMT_CTRL *GMT, double r, double par[], struct GREENSPLINE_LOOKUP *unused) { gmt_M_unused(GMT); gmt_M_unused(r); gmt_M_unused(par); gmt_M_unused(unused); return (1.0); }
gradspline3d_sandwell
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void grd_ABS(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack, unsigned int last) { float v4; float v5; float a; uint64_t node; a = 0.0; if (stack[last]->constant && stack[last]->factor == 0.0) GMT_Report(GMT->parent, 4u, "Warning, operand == 0!\n"); if (stack[last]->constant) { ...
GMT_LOCAL void grd_ABS (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last) { uint64_t node; float a = 0.0f; if (stack[last]->constant && stack[last]->factor == 0.0) GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Warning, operand == 0!\n"); if (stack[last]->constant) a =...
grd_ABS
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void grd_ACOS(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack, unsigned int last) { float v4; int v5; __m128i v6; int a; uint64_t node; a = 0; GMT->current.io.col_type[1][2] = 1024; if (stack[last]->constant && fabs(stack[last]->factor) > 1.0) GMT_Report(GMT->parent, 4u, "War...
GMT_LOCAL void grd_ACOS (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last) { uint64_t node; float a = 0.0f; GMT->current.io.col_type[GMT_OUT][GMT_Z] = GMT_IS_ANGLE; if (stack[last]->constant && fabs (stack[last]->factor) > 1.0) GMT_Report (GMT->parent, GMT_MSG_VERB...
grd_ACOS
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void grd_ACOSH(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack, unsigned int last) { float v4; __m128i v5; int v6; float a; uint64_t node; a = 0.0; if (stack[last]->constant && fabs(stack[last]->factor) < 1.0) GMT_Report(GMT->parent, 4u, "Warning, operand < 1 for ACOSH!\n"); ...
GMT_LOCAL void grd_ACOSH (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last) { uint64_t node; float a = 0.0f; if (stack[last]->constant && fabs (stack[last]->factor) < 1.0) GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Warning, operand < 1 for ACOSH!\n"); if (stack[l...
grd_ACOSH
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void grd_ACOT(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack, unsigned int last) { float v4; int v5; __m128i v6; __m128i v7; float a; uint64_t node; a = 0.0; GMT->current.io.col_type[1][2] = 1024; if (stack[last]->constant && fabs(stack[last]->factor) > 1.0) GMT_Report(GMT...
GMT_LOCAL void grd_ACOT (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last) { uint64_t node; float a = 0.0f; GMT->current.io.col_type[GMT_OUT][GMT_Z] = GMT_IS_ANGLE; if (stack[last]->constant && fabs (stack[last]->factor) > 1.0) GMT_Report (GMT->parent, GMT_MSG_VE...
grd_ACOT
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void grd_ACOTH(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack, unsigned int last) { float v4; __m128i v5; __m128i v6; int v7; float a; uint64_t node; a = 0.0; if (stack[last]->constant && fabs(stack[last]->factor) <= 1.0) GMT_Report(GMT->parent, 4u, "Warning, |operand| <= 1...
GMT_LOCAL void grd_ACOTH (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last) { uint64_t node; float a = 0.0f; if (stack[last]->constant && fabs (stack[last]->factor) <= 1.0) GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Warning, |operand| <= 1 for ACOTH!\n"); if (stack...
grd_ACOTH
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void grd_ACSC(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack, unsigned int last) { double v4; float v5; __m128i v6; int v7; __m128i v8; __m128i v9; float a; uint64_t node; a = 0.0; GMT->current.io.col_type[1][2] = 1024; if (stack[last]->constant && fabs(stack[last]->factor...
GMT_LOCAL void grd_ACSC (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last) { uint64_t node; float a = 0.0f; GMT->current.io.col_type[GMT_OUT][GMT_Z] = GMT_IS_ANGLE; if (stack[last]->constant && fabs (stack[last]->factor) > 1.0) GMT_Report (GMT->parent, GMT_MSG_VE...
grd_ACSC
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void grd_ACSCH(GMT_CTRL *GMT, GRDMATH_INFO *info, GRDMATH_STACK **stack, unsigned int last) { float v4; int v5; __m128i v6; __m128i v7; float a; uint64_t node; a = 0.0; if (stack[last]->constant) { v4 = asinh(1.0 / stack[last]->factor); a = v4; } for (node = 0; node < info->s...
GMT_LOCAL void grd_ACSCH (struct GMT_CTRL *GMT, struct GRDMATH_INFO *info, struct GRDMATH_STACK *stack[], unsigned int last) { uint64_t node; float a = 0.0f; gmt_M_unused(GMT); if (stack[last]->constant) a = (float)asinh (1.0/stack[last]->factor); for (node = 0; node < info->size; node++) stack[last]->G->data[no...
grd_ACSCH
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0