input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
int do_spectrum(GMT_CTRL *GMT, GMT_GRID *GridX, GMT_GRID *GridY, double *par, bool give_wavelength, bool km, bool normalize, char *file, GMT_FFT_WAVENUMBER *K) { uint64_t v9; signed long size; double v11; size_t v12; long v14; double v15; long v16; uint64_t v17; double ...
GMT_LOCAL int do_spectrum (struct GMT_CTRL *GMT, struct GMT_GRID *GridX, struct GMT_GRID *GridY, double *par, bool give_wavelength, bool km, bool normalize, char *file, struct GMT_FFT_WAVENUMBER *K) { uint64_t dim[GMT_DIM_SIZE] = {1, 1, 0, 0}; uint64_t k, nk, ifreq, *nused = NULL; unsigned int col; float *X...
do_spectrum
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int do_the_filter(GMTAPI_CTRL *C, FILTER1D_INFO *F) { double v2; double v3; double *v4; uint64_t *v5; long v6; double v7; uint64_t v8; double v9; double v10; uint64_t half_n_f_wts; double v12; double v13; long v14; double v15; uint64_t v16; double v17; long v18; double v19; double ...
GMT_LOCAL int do_the_filter (struct GMTAPI_CTRL *C, struct FILTER1D_INFO *F) { uint64_t i_row, left, right, n_l, n_r; uint64_t i_t_output = 0, n_in_filter, n_for_call, n_good_ones; uint64_t iq, i_col, diff; int64_t i_f_wt; bool *good_one = NULL; double t_time, delta_time, wt, val, med, scl, small, symmetry; dou...
do_the_filter
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void doctor_geo_increments(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { double v2; unsigned int side; double scale; double inc; double inca; double round_inc; double slop; for (side = 0; side <= 1; ++side) { if (header->inc[side] >= 0.01666666666666667) v2 = 60.0; else v2 = 3600.0; ...
GMT_LOCAL void doctor_geo_increments (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { double round_inc, scale, inc, slop; unsigned int side; static char *type[2] = {"longitude", "latitude"}; for (side = GMT_X; side <= GMT_Y; side++) { scale = (header->inc[side] < GMT_MIN2DEG) ? 3600.0 : 60.0; inc ...
doctor_geo_increments
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool doubleAlmostEqualUlps(double A, double B, int maxUlpsDiff) { if (fabs(A) <= 1.110223024625157e-15 && fabs(B) <= 1.110223024625157e-15) __assert_fail("(fabs(A) > 5 * DBL_EPSILON) || (fabs(B) > 5 * DBL_EPSILON)", "/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/" "...
bool doubleAlmostEqualUlps(double A, double B, int maxUlpsDiff) { union Double_t uA, uB; bool signedA, signedB; int64_t ulpsDiff; assert ( (fabs(A) > 5 * DBL_EPSILON) || (fabs(B) > 5 * DBL_EPSILON) ); uA.f = A; uB.f = B; signedA = (uA.i >> 63) != 0; signedB = (uB.i >> 63) != 0; if (signedA ...
doubleAlmostEqualUlps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool doubleAlmostEqualUlpsAndAbs(double A, double B, double maxDiff, int maxUlpsDiff) { if (maxDiff >= fabs(A - B)) return 1; if (A < 0.0 == B < 0.0) return (long)abs64(*(_QWORD *)&A - *(_QWORD *)&B) <= maxUlpsDiff; return 0; }
bool doubleAlmostEqualUlpsAndAbs(double A, double B, double maxDiff, int maxUlpsDiff) { double absDiff; union Double_t uA, uB; bool signedA, signedB; int64_t ulpsDiff; absDiff = fabs(A - B); if (absDiff <= maxDiff) return true; uA.f = A; uB.f = B; signedA = (uA.i >> 63) != 0; signedB = (u...
doubleAlmostEqualUlpsAndAbs
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void draw_clip_contours(GMT_CTRL *GMT, PSL_CTRL *PSL, double *xx, double *yy, uint64_t nn, double *rgb, unsigned int id, unsigned int flag) { uint64_t nnb; uint64_t i; if (nn > 1 || flag > 1) { for (i = 0; i < nn; ++i) j_gmt_geo_to_xy(GMT, xx[i], yy[i], &...
GMT_LOCAL void draw_clip_contours (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double *xx, double *yy, uint64_t nn, double rgb[], unsigned int id, unsigned int flag) { uint64_t i; double x, y; if (nn < 2 && flag < 2) return; for (i = 0; i < nn; i++) { x = xx[i]; y = yy[i]; gmt_geo_to_xy (GMT, x, y, &xx[i], &y...
draw_clip_contours
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void drawbase(GMT_CTRL *GMT, PSL_CTRL *PSL, double x0, double x1, double y0) { GMT_PEN faint_pen; unsigned long v6; v6 = __readfsqword(0x28u); gmt_init_pen(GMT, &faint_pen, 0.0); gmt_setpen(GMT, &faint_pen); PSL_plotsegment(PSL, x0, y0, x1, y0); }
GMT_LOCAL void drawbase (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x0, double x1, double y0) { struct GMT_PEN faint_pen; gmt_init_pen (GMT, &faint_pen, 0.0); gmt_setpen (GMT, &faint_pen); PSL_plotsegment (PSL, x0, y0, x1, y0); }
drawbase
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void ellipse_point(GMT_CTRL *GMT, double lon, double lat, double center, double sinp, double cosp, double major, double minor, double cos_azimuth, double sin_azimuth, double angle, double *plon, double *plat) { double v13; double v14; double v15; double v...
void ellipse_point (struct GMT_CTRL *GMT, double lon, double lat, double center, double sinp, double cosp, double major, double minor, double cos_azimuth, double sin_azimuth, double angle, double *plon, double *plat) { double x, y, x_prime, y_prime, rho, c, sin_c, cos_c; sincos (angle, &y, &x); x *= major; y *= mi...
ellipse_point
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void eval_add(double *x, double c, double *out, uint64_t n) { uint64_t k; for (k = 0; k < n; ++k) out[k] = x[k] + c; }
GMT_LOCAL void eval_add (double *x, double c, double *out, uint64_t n) { uint64_t k; for (k = 0; k < n; k++) out[k] = x[k] + c; }
eval_add
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void eval_product(double *x, double *y, double *xy, uint64_t n) { uint64_t k; for (k = 0; k < n; ++k) xy[k] = y[k] * x[k]; }
GMT_LOCAL void eval_product (double *x, double *y, double *xy, uint64_t n) { uint64_t k; for (k = 0; k < n; k++) xy[k] = x[k] * y[k]; }
eval_product
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double eval_sumprod2(double *x, double *y, uint64_t n) { uint64_t k; double sum; sum = 0.0; for (k = 0; k < n; ++k) sum = y[k] * x[k] + sum; return sum; }
GMT_LOCAL double eval_sumprod2 (double *x, double *y, uint64_t n) { uint64_t k; double sum = 0.0; for (k = 0; k < n; k++) sum += x[k] * y[k]; return (sum); }
eval_sumprod2
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double eval_sumprod3(double *x, double *y, double *z, uint64_t n) { uint64_t k; double sum; sum = 0.0; for (k = 0; k < n; ++k) sum = z[k] * (x[k] * y[k]) + sum; return sum; }
GMT_LOCAL double eval_sumprod3 (double *x, double *y, double *z, uint64_t n) { uint64_t k; double sum = 0.0; for (k = 0; k < n; k++) sum += x[k] * y[k] * z[k]; return (sum); }
eval_sumprod3
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fft_1d_brenner(GMT_CTRL *GMT, float *data, unsigned int n, int direction, unsigned int mode) { int v5; int ksign; int ndim; int n_signed; int kmode; float *work; size_t work_size; unsigned long v13; v13 = __readfsqword(0x28u); ndim = 1; n_signed = n; kmode = mode; work_...
GMT_LOCAL int fft_1d_brenner (struct GMT_CTRL *GMT, float *data, unsigned int n, int direction, unsigned int mode) { int ksign, ndim = 1, n_signed = n, kmode = mode; size_t work_size = 0; float *work = NULL; ksign = (dire...
fft_1d_brenner
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fft_1d_fftwf(GMT_CTRL *GMT, float *data, unsigned int n, int direction, unsigned int mode) { fftwf_plan plan; plan = gmt_fftwf_plan_dft(GMT, 0, n, (fftwf_complex *)data, direction); fftwf_execute(plan); fftwf_destroy_plan(plan); return 0; }
GMT_LOCAL int fft_1d_fftwf (struct GMT_CTRL *GMT, float *data, unsigned int n, int direction, unsigned int mode) { fftwf_plan plan = NULL; gmt_M_unused(mode); plan = gmt_fftwf_plan_dft(GMT, 0, n, (fftwf_complex*)data, direction); fftwf_execute(plan); fftwf_destroy_plan(plan); return GMT_NOERROR; }
fft_1d_fftwf
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fft_1d_kiss(GMT_CTRL *GMT, float *data, unsigned int n, int direction, unsigned int mode) { kiss_fft_state *config; config = kiss_fft_alloc(n, direction == 1, 0, 0); kiss_fft(config, (const kiss_fft_cpx *)data, (kiss_fft_cpx *)data); free(config); return 0; }
GMT_LOCAL int fft_1d_kiss (struct GMT_CTRL *GMT, float *data, unsigned int n, int direction, unsigned int mode) { kiss_fft_cpx *fin, *fout; kiss_fft_cfg config; gmt_M_unused(GMT); gmt_M_unused(mode); config = kiss_fft_alloc(n, direction == GMT_FFT_INV, NULL, NULL); fin = fout = (kiss_fft_cpx *)data; kiss_fft (...
fft_1d_kiss
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fft_1d_selection(GMT_CTRL *GMT, uint64_t n) { if (GMT->current.setting.fft) { if (GMT->session.fft1d[GMT->current.setting.fft]) return GMT->current.setting.fft; GMT_Report(GMT->parent, 1u, "Desired FFT Algorithm (%s) not configured - choosing suitable " "alternative.\n"...
GMT_LOCAL int fft_1d_selection (struct GMT_CTRL *GMT, uint64_t n) { if (GMT->current.setting.fft != k_fft_auto) { if (GMT->session.fft1d[GMT->current.setting.fft]) return GMT->current.setting.fft; GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Desired FFT Algorithm (%s) not configured - choosing suitable alter...
fft_1d_selection
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fft_2d_brenner(GMT_CTRL *GMT, float *data, unsigned int n_columns, unsigned int n_rows, int direction, unsigned int mode) { int v6; int ksign; int ndim; int kmode; float *work; size_t work_size; int nn[2]; unsigned long v14; v14 = __readfsqword(0x28u); ndim = 2; nn[0] = n_c...
GMT_LOCAL int fft_2d_brenner (struct GMT_CTRL *GMT, float *data, unsigned int n_columns, unsigned int n_rows, int direction, unsigned int mode) { int ksign, ndim = 2, nn[2] = {n_columns, n_rows}, kmode = mode; size_t work_size = 0; float *wo...
fft_2d_brenner
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fft_2d_fftwf(GMT_CTRL *GMT, float *data, unsigned int n_columns, unsigned int n_rows, int direction, unsigned int mode) { fftwf_plan plan; plan = gmt_fftwf_plan_dft(GMT, n_rows, n_columns, (fftwf_complex *)data, direction); fftwf_execute(plan); fftwf_destroy_pla...
GMT_LOCAL int fft_2d_fftwf (struct GMT_CTRL *GMT, float *data, unsigned int n_columns, unsigned int n_rows, int direction, unsigned int mode) { fftwf_plan plan = NULL; gmt_M_unused(mode); plan = gmt_fftwf_plan_dft(GMT, n_rows, n_columns, (fftwf_complex*)data, direction); fftwf_execute(plan); fftwf_destroy...
fft_2d_fftwf
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fft_2d_kiss(GMT_CTRL *GMT, float *data, unsigned int n_columns, unsigned int n_rows, int direction, unsigned int mode) { kiss_fftnd_state *config; int dim[2]; unsigned long v9; v9 = __readfsqword(0x28u); dim[0] = n_rows; dim[1] = n_columns; config = kiss_fftnd_alloc(dim, 2, direction ...
GMT_LOCAL int fft_2d_kiss (struct GMT_CTRL *GMT, float *data, unsigned int n_columns, unsigned int n_rows, int direction, unsigned int mode) { const int dim[2] = {n_rows, n_columns}; const int dimcount = 2; kiss_fft_cpx *fin, *fout; kiss_fftnd_cfg config; gmt_M_unused(GMT); gmt_M_unused(mode); config = ...
fft_2d_kiss
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fft_2d_selection(GMT_CTRL *GMT, unsigned int n_columns, unsigned int n_rows) { if (GMT->current.setting.fft) { if (GMT->session.fft2d[GMT->current.setting.fft]) return GMT->current.setting.fft; GMT_Report(GMT->parent, 1u, "Desired FFT Algorithm (%s) not configured...
GMT_LOCAL int fft_2d_selection (struct GMT_CTRL *GMT, unsigned int n_columns, unsigned int n_rows) { if (GMT->current.setting.fft != k_fft_auto) { if (GMT->session.fft2d[GMT->current.setting.fft]) return GMT->current.setting.fft; GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Desired FFT Algorithm (%s) not con...
fft_2d_selection
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fft_Singleton_list(GMTAPI_CTRL *API) { unsigned int k; char message[24]; unsigned long v3; v3 = __readfsqword(0x28u); memset(message, 0, 16); GMT_Message(API, 0, "\t\"Good\" numbers for FFT dimensions [Singleton, 1967]:\n"); for (k = 0; k <= 0x74; ++k) { snprintf(message, 0x10u, "\...
GMT_LOCAL void fft_Singleton_list (struct GMTAPI_CTRL *API) { unsigned int k; char message[GMT_LEN16] = {""}; GMT_Message (API, GMT_TIME_NONE, "\t\"Good\" numbers for FFT dimensions [Singleton, 1967]:\n"); for (k = 0; k < N_SINGLETON_LIST; k++) { snprintf (message, GMT_LEN16, "\t%d", Singleton_list[k]); if ((k+...
fft_Singleton_list
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fft_brenner_fourt_f(float *data, int *nn, int *ndim, int *ksign, int *iform, float *work) { int v10; float v11; float v12; float v13; float v14; long v15; bool v18; float v19; float v20; float v25; float v26; float v36; float v37; double cosx; double sinx; flo...
GMT_LOCAL int fft_brenner_fourt_f (float *data, int *nn, int *ndim, int *ksign, int *iform, float *work) { int i__1, i__2, i__3, i__4, i__5, i__6, i__7, i__8, i__9, i__10, i__11, i__12; double cos(double), sin(double); static int j1rg2, idiv, irem, ipar, kmin, imin, jmin, lmax, mmax, ima...
fft_brenner_fourt_f
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
size_t fft_brenner_worksize(GMT_CTRL *GMT, unsigned int n_columns, unsigned int n_rows) { unsigned int prime_factors; unsigned int v4; size_t v5; unsigned int n_factorsa; unsigned int n_factors; unsigned int nonsymx; unsigned int nonsymy; unsigned int nonsym; size_t storage...
GMT_LOCAL size_t fft_brenner_worksize (struct GMT_CTRL *GMT, unsigned int n_columns, unsigned int n_rows) { unsigned int f[32], n_factors, nonsymx, nonsymy, nonsym; size_t storage, ntotal; n_factors = gmt_get_prime_factors (GMT, n_columns, f); nonsymx = ...
fft_brenner_worksize
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fft_fftwf_export_wisdom_to_filename(GMT_CTRL *GMT) { const char *filename; filename = fft_fftwf_wisdom_filename(GMT); if (!filename) filename = "fftwf_wisdom"; if ((unsigned int)fftwf_export_wisdom_to_filename(filename)) GMT_Report(GMT->parent, 5u, "Exported FFTW Wisdom to file: %s\n", filename); ...
GMT_LOCAL void fft_fftwf_export_wisdom_to_filename (struct GMT_CTRL *GMT) { char *filename = fft_fftwf_wisdom_filename(GMT); int status; if (filename == NULL) filename = FFTWF_WISDOM_FILENAME; status = fftwf_export_wisdom_to_filename (filename); if (status) GMT_Report (GMT->parent, GMT_MSG_LONG_VERBOSE, "...
fft_fftwf_export_wisdom_to_filename
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fft_fftwf_import_wisdom_from_filename(GMT_CTRL *GMT) { const char **filename; char *filenames[3]; unsigned long v3; v3 = __readfsqword(0x28u); filename = (const char **)filenames; if (!already_imported_100) { fftwf_import_system_wisdom(); filenames[0] = "fftwf_wisdom"; filenames[1] = fft_f...
GMT_LOCAL void fft_fftwf_import_wisdom_from_filename (struct GMT_CTRL *GMT) { static bool already_imported = false; char *filenames[3], **filename = filenames; int status; if (already_imported) return; fftwf_import_system_wisdom (); filenames[0] = FFTWF_WISDOM_FILENAME; filenames[1] = fft_fftwf_wisdom_...
fft_fftwf_import_wisdom_from_filename
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *fft_fftwf_wisdom_filename(GMT_CTRL *GMT) { char hostname[264]; unsigned long v3; v3 = __readfsqword(0x28u); if (!wisdom_file_101[0]) { if (!GMT->session.CACHEDIR || access(GMT->session.CACHEDIR, 7)) return 0; strncpy(wisdom_file_101, GMT->session.CACHEDIR, 0x1000u); strcpy(&wisdom_file_...
GMT_LOCAL char *fft_fftwf_wisdom_filename (struct GMT_CTRL *GMT) { static char wisdom_file[PATH_MAX+256] = "\0"; char hostname[257]; if (*wisdom_file == '\0') { if (GMT->session.CACHEDIR == NULL || access (GMT->session.CACHEDIR, R_OK|W_OK|X_OK)) return NULL; else { strncpy (wisdom_file, GMT->sessi...
fft_fftwf_wisdom_filename
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *fft_file_name_with_suffix(GMT_CTRL *GMT, char *name, char *suffix) { uint64_t i; uint64_t ia; uint64_t j; size_t len; size_t lenb; size_t lena; len = strlen(name); if (len) { for (i = len; i && name[i] != 47 && name[i] != 92; --i) ; if (i) ++i; for (j = len; j && name[j] !...
GMT_LOCAL char *fft_file_name_with_suffix (struct GMT_CTRL *GMT, char *name, char *suffix) { static char file[GMT_LEN256] = {""}; uint64_t i, j; size_t len; if ((len = strlen (name)) == 0) { snprintf (file, GMT_LEN256, "tmpgrid_%s.grd", suffix); GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Created grid has no n...
fft_file_name_with_suffix
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMTAPI_CTRL *fft_get_api_ptr(GMTAPI_CTRL *ptr) { return ptr; }
static inline struct GMTAPI_CTRL * fft_get_api_ptr (struct GMTAPI_CTRL *ptr) {return (ptr);}
fft_get_api_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_FFT_WAVENUMBER *fft_get_fftwave_ptr(GMT_FFT_WAVENUMBER *ptr) { return ptr; }
static inline struct GMT_FFT_WAVENUMBER * fft_get_fftwave_ptr (struct GMT_FFT_WAVENUMBER *ptr) {return (ptr);}
fft_get_fftwave_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t fft_get_non_symmetric_f(unsigned int *f, unsigned int n) { unsigned int i; unsigned int j; unsigned int retval; i = 0; j = 1; retval = 1; if (n == 1) return *f; while (i < n) { while (j < n && f[j] == f[i]) ++j; if ((((_BYTE)j - (_BYTE)i) & 1) != 0) retval *= f[i]; ...
GMT_LOCAL uint64_t fft_get_non_symmetric_f (unsigned int *f, unsigned int n) { unsigned int i = 0, j = 1, retval = 1; if (n == 1) return (f[0]); while (i < n) { while (j < n && f[j] == f[i]) j++; if ((j-i)%2) retval *= f[i]; i = j; j = i + 1; } if (retval == 1) retval = 0; return (retval); }
fft_get_non_symmetric_f
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fft_grd_save_fft(GMT_CTRL *GMT, GMT_GRID *G, GMT_FFT_INFO *F) { long v3; signed long nm; double v5; size_t v6; float v7; float v8; float v9; long v10; int row_in; int col_in; unsigned int k; unsigned int ka; unsigned int mode; int nx_2; int ny_2; float i_scale; int row_out; floa...
GMT_LOCAL void fft_grd_save_fft (struct GMT_CTRL *GMT, struct GMT_GRID *G, struct GMT_FFT_INFO *F) { uint64_t i_ij, o_ij, offset; int row_in, col_in, row_out, col_out, nx_2, ny_2; size_t len; unsigned int k, pad[4], mode, wmode[2] = {GMT_GRID_IS_COMPLEX_REAL, GMT_GRID_IS_COMPLEX_IMAG}; double wesn[4], inc[2];...
fft_grd_save_fft
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fft_grd_save_taper(GMT_CTRL *GMT, GMT_GRID *Grid, char *suffix) { const char *file; unsigned int pad[4]; GMT_GRID_HEADER save; unsigned long v7; v7 = __readfsqword(0x28u); if (Grid->header->arrangement == 1) { GMT_Report(GMT->parent, 4u, "Demultiplexing complex grid before saving ca...
GMT_LOCAL void fft_grd_save_taper (struct GMT_CTRL *GMT, struct GMT_GRID *Grid, char *suffix) { unsigned int pad[4]; struct GMT_GRID_HEADER save; char *file = NULL; if (Grid->header->arrangement == GMT_GRID_IS_INTERLEAVED) { GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Demultiplexing complex grid before sa...
fft_grd_save_taper
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double fft_kr(uint64_t k, GMT_FFT_WAVENUMBER *K) { double v2; double v3; v2 = fft_ky(k, K); v3 = fft_kx(k, K); return hypot(v3, v2); }
GMT_LOCAL double fft_kr (uint64_t k, struct GMT_FFT_WAVENUMBER *K) { return (hypot (fft_kx (k, K), fft_ky (k, K))); }
fft_kr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double fft_kx(uint64_t k, GMT_FFT_WAVENUMBER *K) { int64_t ii; ii = (k >> 1) % K->nx2; if (ii > K->nx2 / 2) LODWORD(ii) = ii - K->nx2; return K->delta_kx * (double)(int)ii; }
GMT_LOCAL double fft_kx (uint64_t k, struct GMT_FFT_WAVENUMBER *K) { int64_t ii = (k/2)%(K->nx2); if (ii > (K->nx2)/2) ii -= (K->nx2); return (ii * K->delta_kx); }
fft_kx
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double fft_ky(uint64_t k, GMT_FFT_WAVENUMBER *K) { int64_t jj; jj = (k >> 1) / K->nx2; if (jj > K->ny2 / 2) LODWORD(jj) = jj - K->ny2; return K->delta_ky * (double)(int)jj; }
GMT_LOCAL double fft_ky (uint64_t k, struct GMT_FFT_WAVENUMBER *K) { int64_t jj = (k/2)/(K->nx2); if (jj > (K->ny2)/2) jj -= (K->ny2); return (jj * K->delta_ky); }
fft_ky
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fft_save2d(GMT_CTRL *GMT, GMT_GRID *G, unsigned int direction, GMT_FFT_WAVENUMBER *K) { if (G && K && K->info) { if (!direction && K->info->save[0]) fft_grd_save_taper(GMT, G, K->info->suffix); if (direction == 1 && K->info->save[1]) fft_grd_save_fft(GMT, G, K->info); } }
GMT_LOCAL void fft_save2d (struct GMT_CTRL *GMT, struct GMT_GRID *G, unsigned int direction, struct GMT_FFT_WAVENUMBER *K) { if (G == NULL || (K == NULL || K->info == NULL)) return; if (direction == GMT_IN && K->info->save[GMT_IN]) fft_grd_save_taper (GMT, G, K->info->suffix); if (direction == GMT_OUT && K->in...
fft_save2d
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fft_taper2d(GMT_CTRL *GMT, GMT_GRID *Grid, GMT_FFT_INFO *F) { float v3; float v4; float v5; int v6; uint32_t n_columns; __m128i v8; float v9; float v10; float v11; long v12; float v13; uint32_t n_rows; int v15; __m128i v16; float v17; long v18; int im; int ima; int jm; int j...
GMT_LOCAL void fft_taper2d (struct GMT_CTRL *GMT, struct GMT_GRID *Grid, struct GMT_FFT_INFO *F) { int il1, ir1, il2, ir2, jb1, jb2, jt1, jt2, im, jm, j, end_i, end_j, min_i, min_j, one; int i, i_data_start, j_data_start, mx, i_width, j_width, width_percent; unsigned int ju, start_component = 0, stop_component = ...
fft_taper2d
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int file_is_known(GMT_CTRL *GMT, char *file) { int j; FILE *fp; unsigned char c[4]; unsigned char magic_ras[4]; unsigned char magic_ps[4]; unsigned long v8; v8 = __readfsqword(0x28u); *(_DWORD *)magic_ras = -1788172711; *(_DWORD *)magic_ps = 1397760293; if (!file || !*file) return -1; if (!st...
GMT_LOCAL int file_is_known (struct GMT_CTRL *GMT, char *file) { FILE *fp = NULL; unsigned char c[4], magic_ras[4] = {0x59, 0xa6, 0x6a, 0x95}, magic_ps[4] = {'%', '!', 'P', 'S'}; int j; if (file == NULL || file[0] == '\0') return -1; if (gmt_M_file_is_memory (file)) return (0); j = (int)strlen(file) - 1; wh...
file_is_known
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int64_t file_line_reader(GMT_CTRL *GMT, char **L, size_t *size, FILE *fp, char *notused1, uint64_t *notused2) { int64_t v7; int c; int64_t out; char *line; out = 0; line = *L; while (1) { c = fgetc(fp); if (c <= 0) break; if (c == 13 || c == 10) { if (out)...
GMT_LOCAL int64_t file_line_reader (struct GMT_CTRL *GMT, char **L, size_t *size, FILE *fp, char *notused1, uint64_t *notused2) { int c; int64_t out = 0; char *line = *L; if (notused1 == NULL){}; if (notused2 == NULL){}; while ((c = fgetc (fp)) > 0) { if (c == '\r' || c == '\n') { if (!out) c...
file_line_reader
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void file_rewind(FILE *fp, uint64_t *notused) { rewind(fp); }
void file_rewind (FILE *fp, uint64_t *notused) { if (notused == NULL){}; rewind (fp); }
file_rewind
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int fill_boxes(GMT_CTRL *GMT, PSHISTOGRAM_INFO *F, double *data, double *weights, uint64_t n) { double v5; double v7; double v8; double d_NaN; double v10; double v11; double v12; double v13; double v14; double v15; double v16; double v17; double v18; double add_half; double ...
GMT_LOCAL int fill_boxes (struct GMT_CTRL *GMT, struct PSHISTOGRAM_INFO *F, double *data, double *weights, uint64_t n) { double add_half = 0.0, w, b0, b1, count_sum; uint64_t ibox, i; int64_t sbox; F->n_boxes = lrint (ceil(((F->wesn[XHI] - F->wesn[XLO]) / F->box_width) + 0.5)); if (F->center_box) { F->n_boxes...
fill_boxes
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fill_in_forecast(SURFACE_INFO *C) { float v1; float v2; float v3; int ii; int iia; int jj; int jja; int i; int ia; int j; int ja; unsigned char *iu; float *u; double old_size; uint64_t index_0; uint64_t index_0a; uint64_t index_0b; uint64_t index_1a; uint64_t index_1; uint64...
GMT_LOCAL void fill_in_forecast (struct SURFACE_INFO *C) { uint64_t index_0, index_1, index_2, index_3, index_new; int ii, jj, i, j; unsigned char *iu = C->iu; double delta_x, delta_y, a0, a1, a2, a3, old_size, a0_plus_a1_dx, a2_plus_a3_dx; float *u = C->Grid->data; old_size = 1.0 / (double)C->old_grid;...
fill_in_forecast
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fillcell(GMT_CTRL *GMT, double x0, double y0, double y1, double *xoff, double *d_gap, unsigned int n_cols, char **fill) { double y0a; unsigned int col; double dim[2]; GMT_FILL F; unsigned long v15; v15 = __readfsqword(0x28u); dim[1] = *d_gap + y1 - y0; y0a = 0.5 * (y0 + y1 + *d_gap);...
GMT_LOCAL void fillcell (struct GMT_CTRL *GMT, double x0, double y0, double y1, double xoff[], double *d_gap, unsigned int n_cols, char *fill[]) { unsigned int col; double dim[2]; struct GMT_FILL F; dim[1] = y1 - y0 + *d_gap; y0 = 0.5 * (y0 + y1 + *d_gap); for (col = 0; col < n_cols; col++) { if (!fill[col]) c...
fillcell
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void filter_cols(GMT_CTRL *GMT, double **data, uint64_t begin, uint64_t end, unsigned int d_col, unsigned int n_cols, unsigned int *cols, double filter_width, double *fwork) { double v9; bool hilow; uint64_t i; uint64_t ia; uint64_t ib; uint64_t j; uint64_t k; uint64_t ...
GMT_LOCAL void filter_cols (struct GMT_CTRL *GMT, double *data[], uint64_t begin, uint64_t end, unsigned int d_col, unsigned int n_cols, unsigned int cols[], double filter_width, double *fwork) { uint64_t i, j, k, p, istart, istop, ndata; int64_t kk; bool hilow; double half_width, dt, sum, **w = NULL; if (filter_...
filter_cols
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double *filterxy_setup(GMT_CTRL *GMT) { unsigned int i; unsigned int ia; double sum; double *fwork; sum = 0.0; fwork = (double *)gmt_memory_func(GMT, 0, 0x3E8u, 8u, 0, "filterxy_setup"); for (i = 0; i <= 0x3E7; ++i) { fwork[i] = cos((double)(int)i * 0.003141592653589793) + 1.0; sum = fwork[i] + s...
GMT_LOCAL double *filterxy_setup (struct GMT_CTRL *GMT) { unsigned int i; double tmp, sum = 0.0, *fwork = NULL; fwork = gmt_M_memory (GMT, NULL, SPLITXYZ_F_RES, double); tmp = M_PI / SPLITXYZ_F_RES; for (i = 0; i < SPLITXYZ_F_RES; i++) { fwork[i] = 1.0 + cos (i * tmp); sum += fwork[i]; } for (i = 1; i < SP...
filterxy_setup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void find_nearest_point(SURFACE_INFO *C) { float v1; int i; int j; float z_at_node; int block_i; int block_j; uint64_t k; uint64_t last_index; uint64_t briggs_index; SURFACE_BRIGGS *b; float *u; unsigned char *iu; GMT_GRID_HEADER *h; uint64_t iu_index; double dx_0; double dx_0a; double...
GMT_LOCAL void find_nearest_point (struct SURFACE_INFO *C) { uint64_t ij_v2, k, last_index, iu_index, briggs_index; int i, j, block_i, block_j; double x0, y0, dx, dy, dxpdy, xys, xy1, btemp, *b = NULL; float z_at_node, *u = C->Grid->data; unsigned char *iu = C->iu; struct GMT_GRID_HEADER *h = C->Grid->header; ...
find_nearest_point
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int find_unique_color(GMT_CTRL *GMT, unsigned char *rgba, size_t n, int *r, int *g, int *b) { bool trans; int idx; size_t i; size_t j; unsigned char *table; trans = 0; table = (unsigned char *)gmt_memory_func(GMT, 0, 0x1000000u, 1u, 0, "fin...
GMT_LOCAL int find_unique_color (struct GMT_CTRL *GMT, unsigned char *rgba, size_t n, int *r, int *g, int *b) { size_t i, j; int idx; bool trans = false; unsigned char *table = NULL; table = gmt_M_memory (GMT, NULL, 256*256*256, unsigned char); *r = *g = *b = 0; for (i = j = 0; i < n; i++, j+=4) { if (rgb...
find_unique_color
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void fix_format(char *unit, char *format) { unsigned int v2; unsigned int v3; unsigned int i; unsigned int j; char text[64]; char new_format[4104]; unsigned long v8; v8 = __readfsqword(0x28u); memset(text, 0, sizeof(text)); memset(new_format, 0, 4096); if (unit && *unit) { if (strchr(unit, 37...
GMT_LOCAL void fix_format (char *unit, char *format) { unsigned int i, j; char text[GMT_LEN64] = {""}, new_format[GMT_BUFSIZ] = {""}; if (unit && unit[0]) { if (!strchr (unit, '%')) strncpy (text, unit, GMT_LEN64-1); else { for (i = j = 0; i < strlen (unit); i++) { text[j++] = unit[i]; if (un...
fix_format
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void flat_project_setup(double alat, double alon, double blat, double blon, double plat, double plon, double *azim, double *e, bool two_pts, bool pole_set) { double v10; double v11; if (two_pts) { if (blon - alon == 0.0 && blat - alat == 0.0) v10 = 0.0; ...
GMT_LOCAL void flat_project_setup (double alat, double alon, double blat, double blon, double plat, double plon, double *azim, double *e, bool two_pts, bool pole_set) { if (two_pts) *azim = 90.0 - d_atan2d (blat - alat, blon - alon); else if (pole_set) *azim = 180.0 - d_atan2d (plat - alat, plon - alon); ...
flat_project_setup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool floatAlmostEqualUlps(float A, float B, int maxUlpsDiff) { if (fabs(A) <= 0.00000059604645 && fabs(B) <= 0.00000059604645) __assert_fail("(fabs(A) > 5 * FLT_EPSILON) || (fabs(B) > 5 * FLT_EPSILON)", "/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/" "src/common_ma...
bool floatAlmostEqualUlps(float A, float B, int maxUlpsDiff) { union Float_t uA, uB; bool signedA, signedB; int32_t ulpsDiff; assert ( (fabs(A) > 5 * FLT_EPSILON) || (fabs(B) > 5 * FLT_EPSILON) ); uA.f = A; uB.f = B; signedA = (uA.i >> 31) != 0; signedB = (uB.i >> 31) != 0; if (signedA != s...
floatAlmostEqualUlps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool floatAlmostEqualUlpsAndAbs(float A, float B, float maxDiff, int maxUlpsDiff) { if (maxDiff >= fabs(A - B)) return 1; if (A < 0.0 == B < 0.0) return (int)abs32(LODWORD(A) - LODWORD(B)) <= maxUlpsDiff; return 0; }
bool floatAlmostEqualUlpsAndAbs(float A, float B, float maxDiff, int maxUlpsDiff) { float absDiff; union Float_t uA, uB; bool signedA, signedB; int32_t ulpsDiff; absDiff = fabsf(A - B); if (absDiff <= maxDiff) return true; uA.f = A; uB.f = B; signedA = (uA.i >> 31) != 0; signedB = (uB.i >...
floatAlmostEqualUlpsAndAbs
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int found_a_near_segment(LINK *S, uint64_t id, int order, double cutoff, bool nn_check, double nn_dist) { if (S[S[id].buddy[order].id].used) return 0; if (S[id].buddy[order].dist > cutoff) return 0; if (!nn_check) return 1; return S[id].buddy[order].next_dist > nn_dist; }
GMT_LOCAL int found_a_near_segment (struct LINK *S, uint64_t id, int order, double cutoff, bool nn_check, double nn_dist) { if (S[S[id].buddy[order].id].used) return (false); if (S[id].buddy[order].dist > cutoff) return (false); if (!nn_check) return (true); if (S[id].buddy[order].next_dist > nn_dist) r...
found_a_near_segment
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int found_unsupported_format(GMT_CTRL *GMT, GMT_GRID_HEADER *h, char *file) { unsigned int type; unsigned int i; unsigned long v7; v7 = __readfsqword(0x28u); for (i = 0; i <= 7; ++i) { if (gmt_grd_format_decoder(GMT, not_supported_6[i], &type)) { GMT_Report(GMT->parent, 5u, "Very o...
GMT_LOCAL int found_unsupported_format (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, char *file) { unsigned int i, type; #ifdef HAVE_GDAL static char *not_supported[N_NOT_SUPPORTED] = {"rb", "rf", "sf", "sd", "af", "ei", "ef", "gd"}; #else static char *not_supported[N_NOT_SUPPORTED] = {"rb", "rf", "sf", "sd", ...
found_unsupported_format
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void free_from_gdalread(GMT_CTRL *GMT, GMT_GDALREAD_OUT_CTRL *from_gdalread) { int i; gmt_free_func(GMT, from_gdalread->ColorMap, 0, "free_from_gdalread"); from_gdalread->ColorMap = 0; for (i = 0; i < from_gdalread->RasterCount; ++i) { free(from_gdalread->band_field_names[i].DataType); from_gdalread->b...
static inline void free_from_gdalread (struct GMT_CTRL *GMT, struct GMT_GDALREAD_OUT_CTRL *from_gdalread) { int i; gmt_M_free (GMT, from_gdalread->ColorMap); for (i = 0; i < from_gdalread->RasterCount; i++) gmt_M_str_free (from_gdalread->band_field_names[i].DataType); gmt_M_str_free (from_gdalread->ProjRefPROJ4)...
free_from_gdalread
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void free_lookup(GMT_CTRL *GMT, GREENSPLINE_LOOKUP **Lptr, unsigned int mode) { GREENSPLINE_LOOKUP *L; L = *Lptr; if (*Lptr) { gmt_free_func(GMT, L->y, 0, "free_lookup"); L->y = 0; gmt_free_func(GMT, L->c, 0, "free_lookup"); L->c = 0; gmt_free_func(GMT, L->A, 0, "free_lookup"); L->A = 0; ...
GMT_LOCAL void free_lookup (struct GMT_CTRL *GMT, struct GREENSPLINE_LOOKUP **Lptr, unsigned int mode) { struct GREENSPLINE_LOOKUP *L = *Lptr; if (L == NULL) return; gmt_M_free (GMT, L->y); gmt_M_free (GMT, L->c); gmt_M_free (GMT, L->A); if (mode == 0) { gmt_M_free (GMT, L->B); gmt_M_free (GMT, L->C); }...
free_lookup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void free_node(GMT_CTRL *GMT, NEARNEIGHBOR_NODE *node) { if (node) { gmt_free_func(GMT, node->distance, 0, "free_node"); node->distance = 0; gmt_free_func(GMT, node->datum, 0, "free_node"); node->datum = 0; gmt_free_func(GMT, node, 0, "free_node"); } }
GMT_LOCAL void free_node (struct GMT_CTRL *GMT, struct NEARNEIGHBOR_NODE *node) { if (!node) return; gmt_M_free (GMT, node->distance); gmt_M_free (GMT, node->datum); gmt_M_free (GMT, node); }
free_node
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void free_sort_list(GMT_CTRL *GMT, GMTMATH_INFO *info) { uint64_t v2; uint64_t s; if (info->Q) { for (s = 0;; ++s) { v2 = info->local ? info->T->n_segments : 1LL; if (v2 <= s) break; gmt_free_func(GMT, info->Q[s], 0, "free_sort_list"); info->Q[s] = 0; } gmt_free_func(G...
GMT_LOCAL void free_sort_list (struct GMT_CTRL *GMT, struct GMTMATH_INFO *info) { uint64_t s; if (info->Q == NULL) return; for (s = 0; s < ((info->local) ? info->T->n_segments : 1); s++) gmt_M_free (GMT, info->Q[s]); gmt_M_free (GMT, info->Q); }
free_sort_list
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void free_space_filter1d(GMT_CTRL *GMT, FILTER1D_INFO *F) { uint64_t i; uint64_t ia; if (F) { if (F->robust || F->filter_type > 3) { for (i = 0; i < F->n_cols; ++i) { gmt_free_func(GMT, F->work[i], 0, "free_space_filter1d"); F->work[i] = 0; } gmt_free_func(GMT, F->work, 0, "...
GMT_LOCAL void free_space_filter1d (struct GMT_CTRL *GMT, struct FILTER1D_INFO *F) { uint64_t i; if (!F) return; if (F->robust || (F->filter_type > FILTER1D_CONVOLVE) ) { for (i = 0; i < F->n_cols; ++i) gmt_M_free (GMT, F->work[i]); gmt_M_free (GMT, F->work); } for (i = 0; i < F->n_cols; ++i) gmt_M_free (GMT, ...
free_space_filter1d
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void free_space_spectrum1d(GMT_CTRL *GMT, SPECTRUM1D_INFO *C) { gmt_free_func(GMT, C->spec, 0, "free_space_spectrum1d"); C->spec = 0; gmt_free_func(GMT, C->datac, 0, "free_space_spectrum1d"); C->datac = 0; }
GMT_LOCAL void free_space_spectrum1d (struct GMT_CTRL *GMT, struct SPECTRUM1D_INFO *C) { gmt_M_free (GMT, C->spec); gmt_M_free (GMT, C->datac); }
free_space_spectrum1d
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int free_them_grids(GMTAPI_CTRL *API, GMT_GRID **G, char **grdfile, uint64_t n) { uint64_t k; for (k = 0; k < n; ++k) { free(grdfile[k]); grdfile[k] = 0; if (GMT_Destroy_Data(API, &G[k])) return API->error; } return 0; }
GMT_LOCAL int free_them_grids (struct GMTAPI_CTRL *API, struct GMT_GRID **G, char **grdfile, uint64_t n) { uint64_t k; for (k = 0; k < n; k++) { gmt_M_str_free (grdfile[k]); if (GMT_Destroy_Data (API, &G[k]) != GMT_NOERROR) return (API->error); } return (GMT_NOERROR); }
free_them_grids
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
size_t fwrite_callback(void *buffer, size_t size, size_t nmemb, void *stream) { if (!stream) return fwrite(buffer, size, nmemb, *((FILE **)stream + 1)); if (*((_QWORD *)stream + 1)) return fwrite(buffer, size, nmemb, *((FILE **)stream + 1)); *((_QWORD *)stream + 1) = fopen(*(const char **)stream, "wb"); ...
static size_t fwrite_callback (void *buffer, size_t size, size_t nmemb, void *stream) { struct FtpFile *out = (struct FtpFile *)stream; if (out && !out->fp) { out->fp = fopen (out->filename, "wb"); if (!out->fp) return -1; } return fwrite (buffer, size, nmemb, out->fp); }
fwrite_callback
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool fwrite_check(GMT_CTRL *GMT, const void *ptr, size_t size, size_t nitems, FILE *stream) { char message[264]; unsigned long v9; v9 = __readfsqword(0x28u); if (nitems == fwrite(ptr, size, nitems, stream)) return 0; memset(message, 0, 256); snprintf(message, 0x100u, "%s: error writin...
static inline bool fwrite_check (struct GMT_CTRL *GMT, const void *ptr, size_t size, size_t nitems, FILE *stream) { if (fwrite (ptr, size, nitems, stream) != nitems) { char message[GMT_LEN256] = {""}; snprintf (message, GMT_LEN256, "%s: error writing %" PRIuS " bytes to stream.\n", __func__, size * nitems); G...
fwrite_check
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gauss_weight(F_INFO *f_info, double freq, int j) { double v3; double v4; double v5; double v6; double lo; if (f_info->llambda[j] == -1.0) { v4 = 0.0; } else { v3 = pow(f_info->llambda[j] * freq, 2.0); v4 = exp(v3 * -0.6931471805599453); } lo = v4; if (f_info->hlambda[j] == -1.0) ...
GMT_LOCAL double gauss_weight (struct F_INFO *f_info, double freq, int j) { double hi, lo; lo = (f_info->llambda[j] == -1.0) ? 0.0 : exp (-M_LN2 * pow (freq * f_info->llambda[j], 2.0)); hi = (f_info->hlambda[j] == -1.0) ? 1.0 : exp (-M_LN2 * pow (freq * f_info->hlambda[j], 2.0)); return (hi - lo); }
gauss_weight
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gaussian_weight(double radius, double half_width) { if (radius <= half_width) return exp(-4.5 * radius * radius / (half_width * half_width)); else return 0.0; }
GMT_LOCAL double gaussian_weight (double radius, double half_width) { return ((radius > half_width) ? 0.0 : exp (-4.5 * radius * radius / (half_width * half_width))); }
gaussian_weight
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gdal_free_from(GMT_CTRL *GMT, GMT_GDALREAD_OUT_CTRL *from_gdalread) { int i; if (from_gdalread->band_field_names) { for (i = 0; i < from_gdalread->RasterCount; ++i) { if (from_gdalread->band_field_names[i].DataType) { free(from_gdalread->band_field_names[i].DataType); from_gdalread->...
GMT_LOCAL void gdal_free_from (struct GMT_CTRL *GMT, struct GMT_GDALREAD_OUT_CTRL *from_gdalread) { int i; if (from_gdalread->band_field_names) { for (i = 0; i < from_gdalread->RasterCount; i++ ) if (from_gdalread->band_field_names[i].DataType) gmt_M_str_free (from_gdalread->band_field_names[i].DataType); ...
gdal_free_from
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *get_Bsetting(GMT_OPTION *B) { char *c; const char *g; size_t sofar; size_t len; if (!B) return 0; g = get_gridint(B); if (!g) return B->arg + 1; c = strstr(B->arg, g); if (c) *c = 0; strncpy(bopt_1, (const char *)B->arg + 1, 0x3Fu); if (c) *c = 103; sofar = strlen(bopt_1);...
GMT_LOCAL char * get_Bsetting (struct GMT_OPTION *B) { size_t len, sofar; char *c = NULL, *g = NULL; static char bopt[GMT_LEN64] = {""}; if (B == NULL) return NULL; if ((g = get_gridint (B)) == NULL) return (&B->arg[1]); c = strstr (B->arg, g); if (c) c[0] = '\0'; strncpy (bopt, &B->arg[1], 63U); if (c)...
get_Bsetting
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int get_L(double x, double p, double err) { double v3; double v4; double v5; double Lf; double lam; double s; double c; double pp; double gam; s = sqrt((1.0 - x) * 0.5); c = sqrt((x + 1.0) * 0.5); pp = p * p; if (s == 0.0) { Lf = p / sqrt(err); } else if (c == 0.0) { Lf = p...
GMT_LOCAL unsigned int get_L (double x, double p, double err) { unsigned int L_max; double s, c, pp, Lf, gam, lam; s = sqrt (0.5 * (1 - x)); c = sqrt (0.5 * (1 + x)); pp = p * p; if (s == 0.0) Lf = p / sqrt (err); else if (c == 0.0) Lf = pow (pp / err, 0.333333333); else { gam = 0.00633262522 ...
get_L
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int get_args(GMT_CTRL *GMT, char *arg, double *par, char *msg) { int m; char txt_a[32]; char txt_b[32]; char txt_c[40]; unsigned long v11; v11 = __readfsqword(0x28u); m = __isoc99_sscanf(arg, "%[^/]/%[^/]/%s", txt_a, txt_b, txt_c); if (m <= 0) { GMT_Report(GMT->parent, 1u, "GMT Error: %s\n", msg); ...
GMT_LOCAL int get_args (struct GMT_CTRL *GMT, char *arg, double par[], char *msg) { int m; char txt_a[32], txt_b[32], txt_c[32]; m = sscanf (arg, "%[^/]/%[^/]/%s", txt_a, txt_b, txt_c); if (m < 1) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "GMT Error: %s\n", msg); m = -1; } par[0] = atof (txt_a); if (m >= 2)...
get_args
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void get_azpole(GMT_CTRL *GMT, double *A, double *P, double az) { double tmp[4]; double B[4]; double R[3][3]; unsigned long v8; v8 = __readfsqword(0x28u); B[0] = 0.0; B[1] = 0.0; B[2] = 1.0; gmt_cross3v(GMT, A, B, tmp); gmt_normalize3v(GMT, tmp); gmt_make_rot_matrix2(GMT, A, ...
GMT_LOCAL void get_azpole (struct GMT_CTRL *GMT, double A[3], double P[3], double az) { double R[3][3], tmp[3], B[3] = {0.0, 0.0, 1.0}; gmt_cross3v (GMT, A, B, tmp); gmt_normalize3v (GMT, tmp); gmt_make_rot_matrix2 (GMT, A, -az, R); gmt_matrix_vect_mult (GMT, 3U, R, tmp, P); }
get_azpole
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void get_bisector(GMT_CTRL *GMT, double *A, double *B, double *P) { unsigned int i; double Paa[4]; double M[4]; *(_QWORD *)&M[3] = __readfsqword(0x28u); for (i = 0; i <= 2; ++i) M[i] = B[i] + A[i]; gmt_normalize3v(GMT, M); gmt_cross3v(GMT, A, B, Paa); gmt_normalize3v(GMT, Paa); gmt_cross3v(GMT, M...
GMT_LOCAL void get_bisector (struct GMT_CTRL *GMT, double A[3], double B[3], double P[3]) { unsigned int i; double Pa[3], M[3]; for (i = 0; i < 3; i++) M[i] = A[i] + B[i]; gmt_normalize3v (GMT, M); gmt_cross3v (GMT, A, B, Pa); gmt_normalize3v (GMT, Pa); gmt_cross3v (GMT, M, Pa, P); gmt_nor...
get_bisector
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int get_byte_size(GMT_CTRL *GMT, char type) { unsigned int result; int ksize; switch (type) { case 'b': ksize = 0; goto LABEL_7; case 'c': case 'u': ksize = 1; goto LABEL_7; case 'd': case 'h': case 'i': ksize = 2; goto LABEL_7; case 'l': ksize = 4; LABEL_7: ...
GMT_LOCAL unsigned int get_byte_size (struct GMT_CTRL *GMT, char type) { int ksize; switch (type) { case 'b': ksize = 0; break; case 'c': case 'u': ksize = 1; break; case 'd': case 'h': case 'i': ksize = 2; break; case 'l': ksize = 4; break; default: GMT_Report (GMT->parent, GMT_MSG_N...
get_byte_size
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void get_cart_cellarea(GMT_CTRL *GMT, GMT_GRID *G) { long v2; long v3; float v4; unsigned int row; signed int col; unsigned int last_row; unsigned int last_col; uint64_t node; double row_weight; double col_weight; double area; last_row = G->header->n_rows - 1; last_col = G->header->n_columns ...
GMT_LOCAL void get_cart_cellarea (struct GMT_CTRL *GMT, struct GMT_GRID *G) { uint64_t node; unsigned int row, col, last_row = G->header->n_rows - 1, last_col = G->header->n_columns - 1; double row_weight = 1.0, col_weight = 1.0, area = G->header->inc[GMT_X] * G->header->inc[GMT_Y]; gmt_M_unused(GMT); gmt_M_row...
get_cart_cellarea
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
float get_cell(float x, CELL *cell, unsigned int n_cells_m1, unsigned int last_cell) { int low; low = 0; while (1) { if (x >= cell[last_cell].low && cell[last_cell].high >= x) return (float)(int)last_cell; if (x >= cell[low].low && cell[low].high >= x) return (float)low; if...
GMT_LOCAL float get_cell (float x, struct CELL *cell, unsigned int n_cells_m1, unsigned int last_cell) { unsigned int low, high, i; low = 0; high = n_cells_m1; i = last_cell; do { if (cell[i].low <= x && cell[i].high >= x) { return ((float)i); } else if (cell[low].low <= x && cell[low].high >= x) { r...
get_cell
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double get_chisq_1d(TREND1D_DATA *data, uint64_t n_data, unsigned int n_model) { double v3; double v4; uint64_t i; double chi; signed long nu; chi = 0.0; for (i = 0; i < n_data; ++i) { if (data[i].w == 1.0) v3 = data[i].r * data[i].r + chi; else v3 = data[i].w * (data[i].r * data[i].r...
GMT_LOCAL double get_chisq_1d (struct TREND1D_DATA *data, uint64_t n_data, unsigned int n_model) { uint64_t i, nu; double chi = 0.0; for (i = 0; i < n_data; i++) { if (data[i].w == 1.0) chi += (data[i].r * data[i].r); else chi += (data[i].r * data[i].r * data[i].w); } nu = n_data - n_model; if (nu > 1...
get_chisq_1d
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double get_chisq_2d(TREND2D_DATA *data, uint64_t n_data, unsigned int n_model) { double v3; double v4; uint64_t i; double chi; signed long nu; chi = 0.0; for (i = 0; i < n_data; ++i) { if (data[i].w == 1.0) v3 = data[i].r * data[i].r + chi; else v3 = data[i].w * (data[i].r * data[i].r...
GMT_LOCAL double get_chisq_2d (struct TREND2D_DATA *data, uint64_t n_data, unsigned int n_model) { uint64_t i, nu; double chi = 0.0; for (i = 0; i < n_data; i++) { if (data[i].w == 1.0) chi += (data[i].r * data[i].r); else chi += (data[i].r * data[i].r * data[i].w); } nu = n_data - n_model; if (nu > 1...
get_chisq_2d
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GRDVIEW_CONT *get_cont_struct(GMT_CTRL *GMT, uint64_t bin, GRDVIEW_BIN *binij, double value) { GRDVIEW_CONT *cont; GRDVIEW_CONT *new_cont; if (!binij[bin].first_cont) binij[bin].first_cont = (GRDVIEW_CONT *)gmt_memory_func( GMT, 0, 1u, 0x18u, 0, "get_cont_struct"); for...
GMT_LOCAL struct GRDVIEW_CONT *get_cont_struct (struct GMT_CTRL *GMT, uint64_t bin, struct GRDVIEW_BIN *binij, double value) { struct GRDVIEW_CONT *cont, *new_cont; if (!binij[bin].first_cont) binij[bin].first_cont = gmt_M_memory (GMT, NULL, 1, struct GRDVIEW_CONT); for (cont = binij[bin].first_cont; cont->next_co...
get_cont_struct
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int get_data_region(GMT_CTRL *GMT, GMT_TEXTSET *D, double *wesn) { unsigned int v3; unsigned int v5; unsigned int tbl; unsigned int ix; unsigned int way; double x; double y; uint64_t row; uint64_t seg; double y_min; double y_max; GMT_QUAD *Q; char T[2][64]; unsigned long v19; v19 = __read...
GMT_LOCAL int get_data_region (struct GMT_CTRL *GMT, struct GMT_TEXTSET *D, double wesn[]) { unsigned int tbl, ix, iy, way; uint64_t row, seg; char T[2][GMT_LEN64]; double x, y, y_min = 90.0, y_max = -90.0; struct GMT_QUAD *Q = gmt_quad_init (GMT, 1); ix = GMT->current.setting.io_lonlat_toggle[GMT_IN]; iy = 1 ...
get_data_region
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_DATASET *get_dataset_pointer(GMTAPI_CTRL *API, GMT_DATASET *Din, unsigned int geometry) { GMT_DATASET *D; uint64_t dim[5]; unsigned long v6; v6 = __readfsqword(0x28u); dim[0] = 1; dim[1] = 64; dim[2] = 2; dim[3] = 2; if (Din) return Din; D = (GMT_DATASET *)G...
GMT_LOCAL struct GMT_DATASET *get_dataset_pointer (struct GMTAPI_CTRL *API, struct GMT_DATASET *Din, unsigned int geometry) { uint64_t dim[GMT_DIM_SIZE] = {1, GMT_SMALL_CHUNK, 2, 2}; struct GMT_DATASET *D = NULL; if (Din) return Din; if (D == NULL && (D = GMT_Create_Data (API, GMT_IS_DATASET, geometry, 0, dim, NU...
get_dataset_pointer
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double get_dircosine(GMT_CTRL *GMT, double *D, double *X0, double *X1, unsigned int dim, bool baz) { double cosx; double sinx; bool baza; unsigned int dima; double *X1a; double *X0a; double *Da; GMT_CTRL *GMTa; int ii; double C; double az; double N[4]; GMTa = GMT; Da = ...
GMT_LOCAL double get_dircosine (struct GMT_CTRL *GMT, double *D, double *X0, double *X1, unsigned int dim, bool baz) { int ii; double az, C = 0.0, N[3]; switch (dim) { case 1: C = 1.0; break; case 2: az = gmt_az_backaz (GMT, X0[GMT_X], X0[GMT_Y], X1[GMT_X], X1[GMT_Y], baz); sincosd (az, &N[G...
get_dircosine
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int get_dist_units(GMT_CTRL *GMT, char *args, char *unit, unsigned int *mode) { unsigned int v4; size_t v5; size_t v6; char v7; char this_unit; unsigned int pos; unsigned int pos2; unsigned int id; unsigned int error; unsigned int this_mode; size_t k; size_t ...
GMT_LOCAL unsigned int get_dist_units (struct GMT_CTRL *GMT, char *args, char *unit, unsigned int *mode) { unsigned int id, pos = 0, pos2 = 0, error = 0, l_mode[3], this_mode = 0; size_t len, k, kk, s; char *c = NULL, p[GMT_BUFSIZ] = {""}, modifiers[GMT_BUFSIZ] = {""}, p2[GMT_BUFSIZ] = {""}, this_unit = 0, l_unit[...
get_dist_units
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double get_filter_weight(uint64_t k, F_INFO *f_info, GMT_FFT_WAVENUMBER *K) { double v3; v3 = gmt_fft_any_wave(k, f_info->k_type, K); return ((double (*)(F_INFO *, _QWORD, double))f_info->filter)( f_info, f_info->k_type, v3); }
GMT_LOCAL double get_filter_weight (uint64_t k, struct F_INFO *f_info, struct GMT_FFT_WAVENUMBER *K) { double freq, return_value; freq = gmt_fft_any_wave (k, f_info->k_type, K); return_value = f_info->filter (f_info, freq, f_info->k_type); return (return_value); }
get_filter_weight
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void get_geo_cellarea(GMT_CTRL *GMT, GMT_GRID *G) { double v2; long v3; float v4; long v5; float v6; double v7; double v8; long v9; float v10; unsigned int row; signed int col; signed int cola; signed int colb; unsigned int j; unsigned int first_row; unsigned int last_row; unsigned int...
GMT_LOCAL void get_geo_cellarea (struct GMT_CTRL *GMT, struct GMT_GRID *G) { uint64_t node; unsigned int row, col, j, first_row = 0, last_row = G->header->n_rows - 1, last_col = G->header->n_columns - 1; double lat, area, f, row_weight, col_weight = 1.0, R2 = pow (0.001 * GMT->current.proj.mean_radius, 2....
get_geo_cellarea
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *get_gridint(GMT_OPTION *B) { unsigned int k; char *c; char *g; k = 1; if (!B) return 0; c = strchr(B->arg, 43); if (c) *c = 0; g = strchr(B->arg, 103); if (g) { gopt_2[0] = 103; while (g[k] && ((*__ctype_b_loc())[g[k]] & 0x800) != 0) { gopt_2[k] = g[k]; ++k; } ...
GMT_LOCAL char * get_gridint (struct GMT_OPTION *B) { unsigned int k = 1; char *c = NULL, *g = NULL; static char gopt[GMT_LEN32] = {""}; if (B == NULL) return NULL; if ((c = strchr (B->arg, '+'))) c[0] = '\0'; if ((g = strchr (B->arg, 'g')) == NULL) { if (c) c[0] = '+'; return NULL; } gopt[0] = 'g';...
get_gridint
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int get_input_format_version(GMT_CTRL *GMT, char *buffer, int mode) { int k; int ka; int kb; char size[256]; char angle[256]; char font[256]; char just[256]; char spacing[256]; char width[256]; char pjust[256]; char txt[4096]; unsigned long v16; v16 = __readfsqword(0x28u); memset(size, 0, s...
GMT_LOCAL int get_input_format_version (struct GMT_CTRL *GMT, char *buffer, int mode) { int n, k; char size[GMT_LEN256] = {""}, angle[GMT_LEN256] = {""}, font[GMT_LEN256] = {""}, just[GMT_LEN256] = {""}, txt[GMT_BUFSIZ] = {""}; char spacing[GMT_LEN256] = {""}, width[GMT_LEN256] = {""}, pjust[GMT_LEN256] = {""};...
get_input_format_version
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double get_intensity(GMT_GRID *I, uint64_t k) { return 0.25 * (float)(I->data[k - I->header->mx + 1] + (float)((float)(I->data[k] + I->data[k + 1]) + I->data[k - I->header->mx])); }
GMT_LOCAL double get_intensity (struct GMT_GRID *I, uint64_t k) { return (0.25 * (I->data[k] + I->data[k+1] + I->data[k-I->header->mx] + I->data[k-I->header->mx+1])); }
get_intensity
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int get_loc_scl(GMT_CTRL *GMT, double *data, uint64_t n, double *stats) { double v5; double v6; uint64_t v7; double v8; unsigned int n_multiples; uint64_t i; uint64_t j; double dx_0; unsigned long v15; v15 = __readfsqword(0x28u); n_multiples = 0; if (n <= 2) return -1; gmt_sort_array(GMT,...
GMT_LOCAL int get_loc_scl (struct GMT_CTRL *GMT, double *data, uint64_t n, double *stats) { uint64_t i, j; unsigned int n_multiples = 0; double dx; if (n < 3) return (-1); gmt_sort_array (GMT, data, n, GMT_DOUBLE); j = n/2; stats[1] = (n%2) ? data[j] : (0.5 * (data[j] + data[j-1])); gmt_mode (GMT, d...
get_loc_scl
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int get_max_L(GMT_CTRL *GMT, double p, double err) { double v3; v3 = sqrt(err); return lrint(p / v3 + 10.0); }
GMT_LOCAL unsigned int get_max_L (struct GMT_CTRL *GMT, double p, double err) { gmt_M_unused(GMT); return ((unsigned int)lrint (p / sqrt (err) + 10.0)); }
get_max_L
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GRDVIEW_POINT *get_point(GMT_CTRL *GMT, double x, double y) { GRDVIEW_POINT *result; result = (GRDVIEW_POINT *)gmt_memory_func(GMT, 0, 1u, 0x18u, 0, "get_point"); result->x = x; result->y = y; return result; }
GMT_LOCAL struct GRDVIEW_POINT *get_point (struct GMT_CTRL *GMT, double x, double y) { struct GRDVIEW_POINT *point = gmt_M_memory (GMT, NULL, 1, struct GRDVIEW_POINT); point->x = x; point->y = y; return (point); }
get_point
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int get_psl_encoding(const char *encoding) { int k; int match; k = 0; match = 0; while (PSL_ISO_name[k]) { match = strcmp(encoding, PSL_ISO_name[k]); if (!match) break; ++k; } if (match) return -1; else return k; }
GMT_LOCAL int get_psl_encoding (const char *encoding) { int k = 0, match = 0; while (PSL_ISO_name[k] && (match = strcmp (encoding, PSL_ISO_name[k])) != 0) k++; return (match == 0) ? k : -1; }
get_psl_encoding
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double get_radius(GMT_CTRL *GMT, double *X0, double *X1, unsigned int dim) { double v4; double r; r = 0.0; if (dim == 3) { v4 = hypot(*X0 - *X1, X0[1] - X1[1]); return hypot(v4, X0[2] - X1[2]); } else if (dim <= 3) { if (dim == 1) { return fabs(*X0 - *X1); } else if (dim == 2) { r...
GMT_LOCAL double get_radius (struct GMT_CTRL *GMT, double *X0, double *X1, unsigned int dim) { double r = 0.0; switch (dim) { case 1: r = fabs (X0[GMT_X] - X1[GMT_X]); break; case 2: r = gmt_distance (GMT, X0[GMT_X], X0[GMT_Y], X1[GMT_X], X1[GMT_Y]); break; case 3: r = hypot (X0[GMT_X] - X1[...
get_radius
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void get_rgb_lookup(GMT_CTRL *GMT, GMT_PALETTE *P, int index, double *rgb) { if (index >= 0) { if (P->data[index].skip) { memcpy(rgb, GMT->current.setting.ps_page_rgb, 0x20u); P->skip = 1; } else { memcpy(rgb, P->data[index].rgb_low, 0x20u); P->skip = 0; } } else { memcpy(rgb...
GMT_LOCAL void get_rgb_lookup (struct GMT_CTRL *GMT, struct GMT_PALETTE *P, int index, double *rgb) { if (index < 0) { gmt_M_rgb_copy (rgb, P->bfn[index+3].rgb); P->skip = P->bfn[index+3].skip; } else if (P->data[index].skip) { gmt_M_rgb_copy (rgb, GMT->current.setting.ps_page_rgb); P->skip = true; } ...
get_rgb_lookup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void get_robust_estimates(GMT_CTRL *GMT, FILTER1D_INFO *F, uint64_t j, uint64_t n, int both) { double *v5; double *v6; double temp; uint64_t i; double low; double high; double last; uint64_t n_smooth; unsigned long v16; v16 = __readfsqword(0x28u); if (F->filter_type <= 5...
GMT_LOCAL void get_robust_estimates (struct GMT_CTRL *GMT, struct FILTER1D_INFO *F, uint64_t j, uint64_t n, int both) { uint64_t i, n_smooth; bool sort_me = true; double low, high, last, temp; if (F->filter_type > FILTER1D_MODE) temp = gmt_extreme (GMT, F->work[j], n, F->extreme, F->kind, F->way); else if (F->f...
get_robust_estimates
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double get_scale_factor(unsigned int regression, double slope) { double slopea; double f; f = 1.0; slopea = fabs(slope); if (regression == 3) return sqrt(1.0 / slopea); if (regression <= 3) { if (regression == 2) { return sqrt(1.0 / (slopea * slopea + 1.0)); } else if (regression) { ...
GMT_LOCAL double get_scale_factor (unsigned int regression, double slope) { double f = 1.0; slope = fabs (slope); switch (regression) { case GMTREGRESS_X: f = 1.0 / slope; break; case GMTREGRESS_Y: f = 1.0; break; case GMTREGRESS_XY: f = sqrt (1.0 / (1.0 + slope * slope)); break; case GMTREGRESS_RMA:...
get_scale_factor
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int get_side(double x, double y, double x_left, double y_bottom, double *inc, double *inc2) { double del_x; double del_y; del_x = x - x_left; if (x - x_left > *inc2) del_x = *inc - del_x; del_y = y - y_bottom; if (y - y_bottom > inc2[1]) del_y = inc[1] - del_y; if (...
GMT_LOCAL unsigned int get_side (double x, double y, double x_left, double y_bottom, double inc[], double inc2[]) { double del_x, del_y; unsigned int side; del_x = x - x_left; if (del_x > inc2[GMT_X]) del_x = inc[GMT_X] - del_x; del_y = y - y_bottom; if (del_y > inc2[GMT_Y]) del_y = inc[GMT_Y] - del_y; if (d...
get_side
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double get_small_circle(GMT_CTRL *GMT, FITCIRCLE_DATA *data, uint64_t ndata, double *center, double *gcpole, double *scpole, int norm, double *work, int mode, double slat) { double v11; double v12; double v13; double v14; double v15; double v16; double v17; ...
GMT_LOCAL double get_small_circle (struct GMT_CTRL *GMT, struct FITCIRCLE_DATA *data, uint64_t ndata, double *center, double *gcpole, double *scpole, int norm, double *work, int mode, double slat) { uint64_t i, j; double temppole[3], a[3], b[3], oldpole[3]; double trypos, tryneg, afit, bfit, afactor, bfactor, f...
get_small_circle
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_TEXTSET *get_textset_pointer(GMTAPI_CTRL *API, GMT_TEXTSET *Din, unsigned int geometry) { GMT_TEXTSET *D; uint64_t dim[5]; unsigned long v6; v6 = __readfsqword(0x28u); dim[0] = 1; dim[1] = 1; dim[2] = 64; dim[3] = 0; if (Din) return Din; D = (GMT_TEXTSET *)G...
GMT_LOCAL struct GMT_TEXTSET *get_textset_pointer (struct GMTAPI_CTRL *API, struct GMT_TEXTSET *Din, unsigned int geometry) { uint64_t dim[GMT_DIM_SIZE] = {1, 1, GMT_SMALL_CHUNK, 0}; struct GMT_TEXTSET *D = NULL; if (Din) return Din; if ((D = GMT_Create_Data (API, GMT_IS_TEXTSET, geometry, 0, dim, NULL, NULL, 0, 0...
get_textset_pointer
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void get_the_fill(GMT_FILL *f, GMT_CUSTOM_SYMBOL_ITEM *s, GMT_PEN *cp, GMT_FILL *cf_0) { if (s->fill) { memcpy(f, s->fill, sizeof(GMT_FILL)); } else if (cf_0) { memcpy(f, cf_0, sizeof(GMT_FILL)); } else { f->rgb[0] = -1.0; } if (f->rgb[0] >= 0.0 && s->var_pen < 0 && (abs32(s->var...
GMT_LOCAL void get_the_fill (struct GMT_FILL *f, struct GMT_CUSTOM_SYMBOL_ITEM *s, struct GMT_PEN *cp, struct GMT_FILL *cf) { if (s->fill) gmt_M_memcpy (f, s->fill, 1, struct GMT_FILL); else if (cf) gmt_M_memcpy (f, cf, 1, struct GMT_FILL); else f->rgb[0] = -1; if (f->rgb[0] >= 0.0 && s->var_pen < 0 && (a...
get_the_fill
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void get_the_pen(GMT_PEN *p, GMT_CUSTOM_SYMBOL_ITEM *s, GMT_PEN *cp, GMT_FILL *f) { if (s->pen) { memcpy(p, s->pen, sizeof(GMT_PEN)); } else if (cp) { memcpy(p, cp, sizeof(GMT_PEN)); } if (s->var_pen < 0 && (abs32(s->var_pen) & 1) != 0) { if (f) memcpy(p->rgb, f, sizeof(p->rgb...
GMT_LOCAL void get_the_pen (struct GMT_PEN *p, struct GMT_CUSTOM_SYMBOL_ITEM *s, struct GMT_PEN *cp, struct GMT_FILL *f) { if (s->pen) { gmt_M_memcpy (p, s->pen, 1, struct GMT_PEN); } else if (cp) { gmt_M_memcpy (p, cp, 1, struct GMT_PEN); } if (s->var_pen < 0 && (abs(s->var_pen) & GMT_USE_FILL_RGB) && f) ...
get_the_pen
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int get_triangle_crossings(GMT_CTRL *GMT, PSCONTOUR *P, unsigned int n_conts, double *x, double *y, double *z, int *ind, double small, double **xc, double **yc, double **zc, unsigned int **v, unsigned int **cindex) { double v14; double...
GMT_LOCAL int get_triangle_crossings (struct GMT_CTRL *GMT, struct PSCONTOUR *P, unsigned int n_conts, double *x, double *y, double *z, int *ind, double small, double **xc, double **yc, double **zc, unsigned int **v, unsigned int **cindex) { unsigned int i, j, k, k2, i1, nx, n_ok, *vout = NULL, *cind = NULL, *c...
get_triangle_crossings
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double get_z(GMT_PALETTE *P, double x, double *width, unsigned int n) { unsigned int i; double tmp; i = 0; for (tmp = *width; i < n && x > tmp; tmp = width[i] + tmp) ++i; if (i == n) return P->data[P->n_colors - 1].z_high; else return (P->data[i].z_high - P->data[i].z_low) * (x - tmp + width[i]...
GMT_LOCAL double get_z (struct GMT_PALETTE *P, double x, double *width, unsigned int n) { unsigned int i = 0; double tmp; tmp = width[0]; while (i < n && x > tmp) tmp += width[++i]; if (i == n) return (P->data[P->n_colors-1].z_high); return (P->data[i].z_low + (x - tmp + width[i]) * (P->data[i].z_high - P->data[...
get_z
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0