input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
void gmt_ioblmrc(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double v5; double ya; double xa; double tlon; double tlat; xa = x; ya = y; if (GMT->current.proj.o_spole) { xa = -x; ya = -y; } tlon = *(double *)((char *)&loc_12CA48 + (_QWORD)GMT) * xa; v5 = sinh(*(double *)...
void gmt_ioblmrc (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double tlon, tlat; if (GMT->current.proj.o_spole) { x = -x; y = -y; } tlon = x * GMT->current.proj.j_ix; y += GMT->current.proj.o_shift; tlat = atan (sinh (y * GMT->current.proj.j_ix)); gmt_iobl (GMT, lon, lat, tlo...
gmt_ioblmrc
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_iortho(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double v5; double v6; double ya; double xa; double rho; double cos_c; xa = GMT->current.proj.i_EQ_RAD * x; ya = GMT->current.proj.i_EQ_RAD * y; rho = hypot(xa, ya); if (rho <= GMT->current.proj.rho_max) { cos_c = sqr...
void gmt_iortho (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double rho, cos_c; x *= GMT->current.proj.i_EQ_RAD; y *= GMT->current.proj.i_EQ_RAD; rho = hypot (x, y); if (rho > GMT->current.proj.rho_max) { *lat = *lon = GMT->session.d_NaN; return; } cos_c = sqrt (1.0 - rho * rho);...
gmt_iortho
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_iplrs_sph(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double v5; double v6; double v7; double v8; double v9; double v10; double v11; double v12; double v13; double v14; double central_meridian; double v16; double ya; double xa; double c; xa...
void gmt_iplrs_sph (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double c; if (x == 0.0 && y == 0.0) { *lon = GMT->current.proj.central_meridian; *lat = GMT->current.proj.pole; return; } if (GMT->current.proj.GMT_convert_latitudes) { x *= GMT->current.proj.iDx; y *= GMT->curr...
gmt_iplrs_sph
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_ipolar(GMT_CTRL *GMT, double *x, double *y, double x_i, double y_i) { double v5; if (x_i == 0.0 && y_i == 0.0) v5 = 0.0; else v5 = atan2(y_i, x_i) * 57.29577951308232; *x = v5 + GMT->current.proj.p_base_angle; if (GMT->current.proj.got_azimuths) *x = 90.0 - *x; *y = hypot(x_i, y_i); ...
void gmt_ipolar (struct GMT_CTRL *GMT, double *x, double *y, double x_i, double y_i) { *x = d_atan2d (y_i, x_i) + GMT->current.proj.p_base_angle; if (GMT->current.proj.got_azimuths) *x = 90.0 - (*x); *y = hypot (x_i, y_i); if (GMT->current.proj.got_elevations) *y = 90.0 - (*y); }
gmt_ipolar
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_ipolyconic(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double v5; double central_meridian; double ya; double xa; int n_iter; double phi; double phi0; double tanp; n_iter = 0; xa = GMT->current.proj.i_EQ_RAD * x; ya = 0.0174532925199433 * GMT->curren...
void gmt_ipolyconic (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double B, phi, phi0, tanp, delta; int n_iter = 0; x *= GMT->current.proj.i_EQ_RAD; y *= GMT->current.proj.i_EQ_RAD; y += GMT->current.proj.pole * D2R; if (GMT_PROJ_IS_ZERO (y)) { *lat = y * R2D + GMT->current.proj.pol...
gmt_ipolyconic
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_irobinson(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { *lat = proj_robinson_spline(GMT, fabs(GMT->current.proj.n_i_cy * y), (double *)((char *)&loc_12C1F8 + (_QWORD)GMT), (double *)((char *)&loc_12C0C8 + (_QWORD)...
void gmt_irobinson (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double X, Y; Y = fabs (y * GMT->current.proj.n_i_cy); *lat = proj_robinson_spline (GMT, Y, GMT->current.proj.n_Y, GMT->current.proj.n_phi, GMT->current.proj.n_iy_coeff); X = proj_robinson_spline (GMT, *lat, GMT->current.pro...
gmt_irobinson
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_is_a_blank_line(char *line) { unsigned int i; for (i = 0; line[i] && (line[i] == 32 || line[i] == 9); ++i) ; return line[i] == 10 || line[i] == 13 || !line[i]; }
bool gmt_is_a_blank_line (char *line) { unsigned int i = 0; while (line[i] && (line[i] == ' ' || line[i] == '\t')) i++; if (line[i] == '\n' || line[i] == '\r' || line[i] == '\0') return (true); return (false); }
gmt_is_a_blank_line
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_is_ascii_record(GMT_CTRL *GMT, GMT_OPTION *head) { if (GMT->common.b.active[0] || GMT->common.b.active[1]) return 0; if (*(_QWORD *)((char *)&loc_AD550 + (_QWORD)GMT)) return 0; if (GMT->common.i.active || GMT->common.o.active) return 0; if (GMT->parent->external) { while (head) { ...
bool gmt_is_ascii_record (struct GMT_CTRL *GMT, struct GMT_OPTION *head) { if (GMT->common.b.active[GMT_IN] || GMT->common.b.active[GMT_OUT]) return (false); if (GMT->current.io.ndim > 0) return (false); if (GMT->common.i.active || GMT->common.o.active) return (false); if (GMT->parent->external) { ...
gmt_is_ascii_record
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
grdcontour_contour_type gmt_is_closed(GMT_CTRL *GMT, GMT_GRID *G, double *x, double *y, int n) { long v5; long v6; grdcontour_contour_type closed; int k; double y_min; double y_max; double small_x; closed = grdcontour_contour_type_cont_is_not_closed; small_x = 0....
GMT_LOCAL enum grdcontour_contour_type gmt_is_closed (struct GMT_CTRL *GMT, struct GMT_GRID *G, double *x, double *y, int n) { enum grdcontour_contour_type closed = cont_is_not_closed; int k; double small_x = 0.01 * G->header->inc[GMT_X], small_y = 0.01 * G->header->inc[GMT_Y]; double y_min, y_max; if (fabs (x...
gmt_is_closed
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_is_native_grid(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { int result; long v3; double v4; double v5; off_t nm; double item_size; uint64_t size; uint64_t mx; stat buf; GMT_GRID_HEADER t_head; unsigned long v12; v12 = __readfsqword(0x28u); memset(&t_head, 0, sizeof(t_head)); if (!strcm...
int gmt_is_native_grid (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { uint64_t mx, status, size; off_t nm; double item_size; struct stat buf; struct GMT_GRID_HEADER t_head; gmt_M_memset (&t_head, 1, struct GMT_GRID_HEADER); if (!strcmp (header->name, "=")) return (GMT_GRDIO_PIPE_CODECHECK); if (st...
gmt_is_native_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_is_nc_grid(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { unsigned int v3; unsigned int v4; unsigned int v5; unsigned int v6; unsigned int v7; int ncid; int z_id; int nvars; int ndims; nc_type z_type; int j; int old; int err; char varname[88]; unsigned long v17; v17 = __readfsqword(0...
int gmt_is_nc_grid (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { int ncid, z_id = -1, j = 0, nvars, ndims, err, old = false; nc_type z_type; char varname[GMT_GRID_VARNAME_LEN80]; strncpy (varname, header->varname, GMT_GRID_VARNAME_LEN80-1); if (varname[0]) { j = 0; while (varname[j] && varname[...
gmt_is_nc_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_is_ras_grid(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { FILE *fp; rasterfile h; unsigned long v5; v5 = __readfsqword(0x28u); if (!strcmp(header->name, "=")) return 5; fp = gmt_fopen(GMT, header->name, "rb"); if (!fp) return 7; memset(&h, 0, sizeof(h)); if (customio_read_rasheader(fp, &h...
int gmt_is_ras_grid (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { FILE *fp = NULL; struct rasterfile h; if (!strcmp (header->name, "=")) return (GMT_GRDIO_PIPE_CODECHECK); if ((fp = gmt_fopen (GMT, header->name, "rb")) == NULL) return (GMT_GRDIO_OPEN_FAILED); gmt_M_memset (&h, 1, struct rasterfil...
gmt_is_ras_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmt_is_segment_header(GMT_CTRL *GMT, char *line) { if (*((_BYTE *)&loc_28F5B + (_QWORD)GMT) && gmt_is_a_blank_line(line)) return 2; if (GMT->current.setting.io_nanline[0] && gmtio_is_a_NaN_line(line)) return 2; return *line == GMT->current.setting.io_seg_marker[0]; }
unsigned int gmt_is_segment_header (struct GMT_CTRL *GMT, char *line) { if (GMT->current.setting.io_blankline[GMT_IN] && gmt_is_a_blank_line (line)) return (2); if (GMT->current.setting.io_nanline[GMT_IN] && gmtio_is_a_NaN_line (line)) return (2); if (line[0] == GMT->current.setting.io_seg_marker[GMT_IN]) retu...
gmt_is_segment_header
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_is_srf_grid(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { FILE *fp; char id[5]; unsigned long v5; v5 = __readfsqword(0x28u); if (!strcmp(header->name, "=")) return 5; fp = gmt_fopen(GMT, header->name, "rb"); if (!fp) return 7; if (fread(id, 1u, 4u, fp) <= 3) { gmt_fclose(GMT, fp); r...
int gmt_is_srf_grid (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { FILE *fp = NULL; char id[5]; if (!strcmp (header->name, "=")) return (GMT_GRDIO_PIPE_CODECHECK); if ((fp = gmt_fopen (GMT, header->name, "rb")) == NULL) return (GMT_GRDIO_OPEN_FAILED); if (gmt_M_fread (id, sizeof (char), 4U, fp) < 4U...
gmt_is_srf_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_isinusoidal(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double v5; double v6; *lat = GMT->current.proj.i_EQ_RAD * y; if (doubleAlmostEqualUlps(fabs(*lat), 3.141592653589793, 5)) { v5 = 0.0; } else { v6 = *(double *)((char *)&loc_12BDF0 + (_QWORD)GMT); ...
void gmt_isinusoidal (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { *lat = y * GMT->current.proj.i_EQ_RAD; *lon = (doubleAlmostEqual (fabs (*lat), M_PI)) ? 0.0 : R2D * x / (GMT->current.proj.EQ_RAD * cos (*lat)); if (fabs (*lon) > 180.0) { *lat = *lon = GMT->session.d_NaN; return; } ...
gmt_isinusoidal
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_istereo_sph(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double v5; double v6; double v7; double v8; double cosx; double sinx; double ya; double xa; double *lata; double *lona; GMT_CTRL *GMTa; double sin_c; double cos_c; double rho; double c;...
void gmt_istereo_sph (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double rho, c, sin_c, cos_c; if (GMT->current.proj.GMT_convert_latitudes) { x *= GMT->current.proj.iDx; y *= GMT->current.proj.iDy; } rho = hypot (x, y); if (rho > GMT->current.proj.rho_max) { *lat = *lon = GMT->ses...
gmt_istereo_sph
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_itm(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double v5; double cosx; double sinx; double ya; double xa; double *lata; double *lona; GMT_CTRL *GMTa; double s; double c; double M; double mu; double u2; double phi1; double tan_phi1; double cp2; double C1; ...
void gmt_itm (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double M, mu, u2, s, c, phi1, C1, C12, T1, T12, tmp, tmp2, N1, R_1, D, D2, D3, D5, tan_phi1, cp2; M = y / GMT->current.setting.proj_scale_factor + GMT->current.proj.t_M0; mu = M * GMT->current.proj.t_i1; u2 = 2.0 * mu; sincos (...
gmt_itm
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_itm_sph(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double v5; double cosx; double sinx; double ya; double xa; double *lata; double *lona; GMT_CTRL *GMTa; double sind; double cosd; double xx; double yy; double sinhxx; double coshxx; double phi; double lambda; ...
void gmt_itm_sph (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double xx, yy, sinhxx, coshxx, sind, cosd, lambda, phi; xx = x * GMT->current.proj.t_ir; yy = y * GMT->current.proj.t_ir + GMT->current.proj.t_lat0; sinhxx = sinh (xx); coshxx = cosh (xx); sincos (yy, &sind, &cosd); phi...
gmt_itm_sph
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_itranslin(GMT_CTRL *GMT, double *forw, double inv) { *forw = inv; }
void gmt_itranslin (struct GMT_CTRL *GMT, double *forw, double inv) { gmt_M_unused(GMT); *forw = inv; }
gmt_itranslin
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_itranslind(GMT_CTRL *GMT, double *forw, double inv) { while (inv < -180.00000001) inv = inv + 360.0; while (inv > 180.00000001) inv = inv - 360.0; *forw = GMT->current.proj.central_meridian + inv; }
void gmt_itranslind (struct GMT_CTRL *GMT, double *forw, double inv) { while (inv < -GMT_180) inv += 360.0; while (inv > +GMT_180) inv -= 360.0; *forw = inv + GMT->current.proj.central_meridian; }
gmt_itranslind
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_itranslog10(GMT_CTRL *GMT, double *forw, double inv) { *forw = pow(10.0, inv); }
void gmt_itranslog10 (struct GMT_CTRL *GMT, double *forw, double inv) { gmt_M_unused(GMT); *forw = pow (10.0, inv); }
gmt_itranslog10
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_itranspowx(GMT_CTRL *GMT, double *x, double x_in) { *x = pow(x_in, GMT->current.proj.xyz_ipow[0]); }
void gmt_itranspowx (struct GMT_CTRL *GMT, double *x, double x_in) { *x = pow (x_in, GMT->current.proj.xyz_ipow[GMT_X]); }
gmt_itranspowx
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_itranspowy(GMT_CTRL *GMT, double *y, double y_in) { *y = pow(y_in, GMT->current.proj.xyz_ipow[1]); }
void gmt_itranspowy (struct GMT_CTRL *GMT, double *y, double y_in) { *y = pow (y_in, GMT->current.proj.xyz_ipow[GMT_Y]); }
gmt_itranspowy
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_itranspowz(GMT_CTRL *GMT, double *z, double z_in) { *z = pow(z_in, *(double *)((char *)&loc_12BEC8 + (_QWORD)GMT)); }
void gmt_itranspowz (struct GMT_CTRL *GMT, double *z, double z_in) { *z = pow (z_in, GMT->current.proj.xyz_ipow[GMT_Z]); }
gmt_itranspowz
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_iutm(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double ya; ya = y; if (!GMT->current.proj.north_pole) ya = y - 10000000.0; j_gmt_itm(GMT, lon, lat, x - 500000.0, ya); }
void gmt_iutm (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { x -= GMT_FALSE_EASTING; if (!GMT->current.proj.north_pole) y -= GMT_FALSE_NORTHING; gmt_itm (GMT, lon, lat, x, y); }
gmt_iutm
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_iutm_sph(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { double ya; ya = y; if (!GMT->current.proj.north_pole) ya = y - 10000000.0; j_gmt_itm_sph(GMT, lon, lat, x - 500000.0, ya); }
void gmt_iutm_sph (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) { x -= GMT_FALSE_EASTING; if (!GMT->current.proj.north_pole) y -= GMT_FALSE_NORTHING; gmt_itm_sph (GMT, lon, lat, x, y); }
gmt_iutm_sph
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_iwinkel(GMT_CTRL *P, double *lon, double *lat, double x, double y) { double cosx; double sinx; double ya; double xa; double *lata; double *lona; GMT_CTRL *Pa; int n_iter; double sp_0; double cp; double sl; double cl_0; double sl2; double cl2; double phi0; double lambda0; doubl...
void gmt_iwinkel (struct GMT_CTRL *P, double *lon, double *lat, double x, double y) { int n_iter = 0; double phi0, lambda0, sp, cp, s2p, sl, cl, sl2, cl2, C, D, sq_C, C_32; double f1, f2, df1dp, df1dl, df2dp, df2dl, denom, delta; x *= P->current.proj.i_EQ_RAD; y *= P->current.proj.i_EQ_RAD; *lat = y / M_P...
gmt_iwinkel
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_jacobi(GMT_CTRL *GMT, double *a, unsigned int n, unsigned int m, double *d, double *v, double *b, double *z, unsigned int *nrots) { double v9; unsigned int p; unsigned int pa; unsigned int pb; unsigned int pc; unsigned int pd; unsigned int q; unsigned int qa; unsi...
int gmt_jacobi (struct GMT_CTRL *GMT, double *a, unsigned int n, unsigned int m, double *d, double *v, double *b, double *z, unsigned int *nrots) { unsigned int p, q, pp, pq, mp1, pm, qm, nsweeps, j, jm, i, k; double sum, thresh...
gmt_jacobi
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_k0(GMT_CTRL *GMT, double x) { double v2; double xa; double y; double z; xa = x; if (x < 0.0) xa = -x; if (xa > 2.0) { v2 = exp(COERCE_DOUBLE(*(_QWORD *)&xa ^ 0x8000000000000000LL)); return ((((((0.00053208 * (2.0 / xa) - 0.0025154) * (2.0 / xa) + 0.00587872) * ...
double gmt_k0 (struct GMT_CTRL *GMT, double x) { double y, z, res; gmt_M_unused(GMT); if (x < 0.0) x = -x; if (x <= 2.0) { y = 0.25 * x * x; z = x * x / 14.0625; res = (-log(0.5*x) * (1.0 + z * (3.5156229 + z * (3.0899424 + z * (1.2067492 + z * (0.2659732 + z * (0.360768e-1 + z * 0.45813e-2))))))) + (-M_EU...
gmt_k0
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_k1(GMT_CTRL *GMT, double x) { double v2; double v4; double xa; double y; xa = x; if (x < 0.0) xa = -x; if (xa > 2.0) { v2 = exp(COERCE_DOUBLE(*(_QWORD *)&xa ^ 0x8000000000000000LL)); return ((((((0.00325614 - 2.0 / xa * 0.00068245) * (2.0 / xa) - 0.00780353) * ...
double gmt_k1 (struct GMT_CTRL *GMT, double x) { double y, res; if (x < 0.0) x = -x; if (x <= 2.0) { y = x * x / 4.0; res = (log (0.5 * x) * gmt_i1 (GMT, x)) + (1.0 / x) * (1.0 + y * (0.15443144 + y * (-0.67278579 + y * (-0.18156897 + y * (-0.01919402 + y * (-0.00110404 - y * 0.00004686)))))); } else { y...
gmt_k1
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_kei(GMT_CTRL *GMT, double x) { double v3; double v4; double v5; double v6; double t; double ta; double tb; double alpha; double beta; if (x > 0.0) { if (x > 8.0) { ta = 0.125 * (1.0 / (x * x)) * (-x / 1.414213562373095); alpha = -x / 1.414213562373095 + ta; beta = -...
double gmt_kei (struct GMT_CTRL *GMT, double x) { double t, rxsq, alpha, beta; if (x <= 0.0) { if (x > -GMT_CONV8_LIMIT) return (-0.25 * M_PI); GMT_Report (GMT->parent, GMT_MSG_NORMAL, "GMT DOMAIN ERROR: x < 0 in gmt_kei(x)\n"); return (GMT->session.d_NaN); } if (x <= 8.0) { t = x * 0.125; rxsq ...
gmt_kei
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_ker(GMT_CTRL *GMT, double x) { double v3; double v4; double v5; double v6; double t; double ta; double tb; double alpha; double beta; if (x > 0.0) { if (x > 8.0) { ta = 0.125 * (1.0 / (x * x)) * (-x / 1.414213562373095); alpha = -x / 1.414213562373095 + ta; beta = -...
double gmt_ker (struct GMT_CTRL *GMT, double x) { double t, rxsq, alpha, beta; if (x <= 0.0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "GMT DOMAIN ERROR: x <= 0 in gmt_ker(x)\n"); return (GMT->session.d_NaN); } if (x <= 8.0) { t = 0.125 * x; t *= t; t *= t; return (-log (0.5 * x) * gmt_ber (GMT...
gmt_ker
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_kn(GMT_CTRL *GMT, unsigned int n, double x) { unsigned int j; double bkm; double bk; double tox; double bkp; if (!n) return gmt_k0(GMT, x); if (n == 1) return gmt_k1(GMT, x); tox = 2.0 / x; bkm = gmt_k0(GMT, x); bk = gmt_k1(GMT, x); for (j = 1; j <= n - 1; ++j) { bkp = (dou...
double gmt_kn (struct GMT_CTRL *GMT, unsigned int n, double x) { unsigned int j; double bkm, bk, bkp, tox; if (n == 0) return (gmt_k0 (GMT, x)); if (n == 1) return (gmt_k1 (GMT, x)); tox = 2.0 / x; bkm = gmt_k0 (GMT, x); bk = gmt_k1 (GMT, x); for (j = 1; j <= (n-1); j++) { bkp = bkm + j * tox * bk; bkm...
gmt_kn
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_label_syntax(GMT_CTRL *GMT, unsigned int indent, unsigned int kind) { char *v3; unsigned int i; char *type[3]; char *feature[3]; char pad[24]; unsigned long v9; v9 = __readfsqword(0x28u); type[0] = "Contour"; type[1] = "Line"; type[2] = "Decorated line"; feature[0] = "label"; feature[1...
void gmt_label_syntax (struct GMT_CTRL *GMT, unsigned int indent, unsigned int kind) { unsigned int i; char pad[16], *type[3] = {"Contour", "Line", "Decorated line"}; char *feature[3] = {"label", "label", "symbol"}; pad[0] = '\t'; for (i = 1; i <= indent; i++) pad[i] = ' '; pad[i] = '\0'; gmt_message (GMT, "%s +a...
gmt_label_syntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_lamb(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double ECC; double cosx; double sinx; double *ya; double *xa; double lata; double lona; GMT_CTRL *GMTa; double s; double c; double es_0; double hold2; double hold3; double hold1; double rho; double theta; unsi...
void gmt_lamb (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double rho, theta, hold1, hold2, hold3, es, s, c; gmt_M_wind_lon (GMT, lon) es = GMT->current.proj.ECC * sind (lat); hold2 = pow ((1.0 - es) / (1.0 + es), GMT->current.proj.half_ECC); hold3 = tand (45.0 - 0.5 * lat); hold1 = p...
gmt_lamb
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_lamb_sph(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double v5; double v6; double cosx; double sinx; double *ya; double *xa; double lata; double lona; GMT_CTRL *GMTa; double s; double c; double t; double rho; double theta; unsigned long v19; GMTa = GMT; lon...
void gmt_lamb_sph (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double rho, theta, t, s, c; gmt_M_wind_lon (GMT, lon) if (GMT->current.proj.GMT_convert_latitudes) lat = gmt_M_latg_to_latc (GMT, lat); t = MAX (0.0, tand (45.0 - 0.5 * lat)); rho = GMT->current.proj.l_rF * pow (t, GMT->cu...
gmt_lamb_sph
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_lambeq(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double v5; double v6; double cosx; double sinx; double *ya; double *xa; double lata; double lona; GMT_CTRL *GMTa; double sin_lat; double cos_lat; double sin_lon; double cos_lon; double c; double tmp; double k;...
void gmt_lambeq (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double k, tmp, sin_lat, cos_lat, sin_lon, cos_lon, c; gmt_M_wind_lon (GMT, lon) if (GMT->current.proj.GMT_convert_latitudes) lat = gmt_M_latg_to_lata (GMT, lat); sincosd (lat, &sin_lat, &cos_lat); sincosd (lon, &sin_lon, &co...
gmt_lambeq
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_lat_swap(GMT_CTRL *GMT, double lat, unsigned int itype) { double cosx; double sinx; unsigned int itypea; double lata; GMT_CTRL *GMTa; double cos2phi; double sin2phi; double delta; unsigned long v12; GMTa = GMT; lata = lat; itypea = itype; v12 = __readfsqword(0x28u); if (lat >= 90...
double gmt_lat_swap (struct GMT_CTRL *GMT, double lat, unsigned int itype) { double delta, cos2phi, sin2phi; if (lat >= 90.0) return ( 90.0); if (lat <= -90.0) return (-90.0); if (gmt_M_is_zero (lat)) return (0.0); if (GMT->current.proj.lat_swap_vals.spherical) return (lat); if (itype >= GMT_LATSWAP_N) ...
gmt_lat_swap
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_left_eckert4(GMT_CTRL *GMT, double y) { double v2; double v4; double ya; ya = GMT->current.proj.i_scale[1] * (y - *(double *)((char *)&loc_12BD28 + (_QWORD)GMT)); if (fabs(GMT->current.proj.k4_iy * ya) < 1.0) v2 = asin(GMT->current.proj.k4_iy * ya); else v2 = copysign(1.5707963267...
double gmt_left_eckert4 (struct GMT_CTRL *GMT, double y) { double x, phi; y -= GMT->current.proj.origin[GMT_Y]; y *= GMT->current.proj.i_scale[GMT_Y]; phi = d_asin (y * GMT->current.proj.k4_iy); x = GMT->current.proj.k4_x * D2R * (GMT->common.R.wesn[XLO] - GMT->current.proj.central_meridian) * (1.0 + cos (phi)); ...
gmt_left_eckert4
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_left_eckert6(GMT_CTRL *GMT, double y) { double v3; v3 = GMT->current.proj.k6_r * 0.0174532925199433 * (GMT->common.R.wesn[0] - GMT->current.proj.central_meridian); return GMT->current.proj.origin[0] + GMT->current.proj.scale[0] * ((cos(GMT->current.proj.k6_ir * ...
double gmt_left_eckert6 (struct GMT_CTRL *GMT, double y) { double x, phi; y -= GMT->current.proj.origin[GMT_Y]; y *= GMT->current.proj.i_scale[GMT_Y]; phi = 0.5 * y * GMT->current.proj.k6_ir; x = GMT->current.proj.k6_r * D2R * (GMT->common.R.wesn[XLO] - GMT->current.proj.central_meridian) * (1.0 + cos (phi)); re...
gmt_left_eckert6
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_left_genper(GMT_CTRL *GMT, double y) { if (map_left_circle(GMT, y) >= 0.0) return map_left_circle(GMT, y); else return 0.0; }
GMT_LOCAL double gmt_left_genper (struct GMT_CTRL *GMT, double y) { return (MAX (0.0, map_left_circle (GMT, y))); }
gmt_left_genper
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_left_polyconic(GMT_CTRL *GMT, double y) { double x[2]; *(_QWORD *)&x[1] = __readfsqword(0x28u); proj_ipolyconic_sub(GMT, GMT->current.proj.i_scale[1] * (y - *(double *)((char *)&loc_12BD28 + (_QWORD)GMT)), GMT->common.R.wesn[0], x);...
double gmt_left_polyconic (struct GMT_CTRL *GMT, double y) { double x; y -= GMT->current.proj.origin[GMT_Y]; y *= GMT->current.proj.i_scale[GMT_Y]; proj_ipolyconic_sub (GMT, y, GMT->common.R.wesn[XLO], &x); return (x * GMT->current.proj.scale[GMT_X] + GMT->current.proj.origin[GMT_X]); }
gmt_left_polyconic
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_left_sinusoidal(GMT_CTRL *GMT, double y) { double v3; v3 = *(double *)((char *)&loc_12BDF0 + (_QWORD)GMT) * (GMT->common.R.wesn[0] - GMT->current.proj.central_meridian) * 0.0174532925199433; return GMT->current.proj.origin[0] + GMT->current.proj.scale[0] * (cos(GMT-...
double gmt_left_sinusoidal (struct GMT_CTRL *GMT, double y) { double x, lat; y -= GMT->current.proj.origin[GMT_Y]; y *= GMT->current.proj.i_scale[GMT_Y]; lat = y * GMT->current.proj.i_EQ_RAD; x = GMT->current.proj.EQ_RAD * (GMT->common.R.wesn[XLO] - GMT->current.proj.central_meridian) * D2R * cos (lat); return (x...
gmt_left_sinusoidal
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_left_winkel(GMT_CTRL *GMT, double y) { double c; double phi; double x[2]; *(_QWORD *)&x[1] = __readfsqword(0x28u); proj_iwinkel_sub(GMT, GMT->current.proj.i_scale[1] * (y - *(double *)((char *)&loc_12BD28 + (_QWORD)GMT)), &phi); j_gmt_...
double gmt_left_winkel (struct GMT_CTRL *GMT, double y) { double c, phi, x; y -= GMT->current.proj.origin[GMT_Y]; y *= GMT->current.proj.i_scale[GMT_Y]; proj_iwinkel_sub (GMT, y, &phi); gmt_geo_to_xy (GMT, GMT->current.proj.central_meridian - 180.0, phi, &x, &c); return (x); }
gmt_left_winkel
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_linearx_grid(GMT_CTRL *GMT, PSL_CTRL *PSL, double w, double e, double s, double n, double dval) { char *v7; _BOOL4 v8; double v9; double v10; bool cap; unsigned int idup; unsigned int i; unsigned int ia; unsigned int ib; unsigned int nx; unsigned int nxa; double *x...
void gmt_linearx_grid (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double w, double e, double s, double n, double dval) { double *x = NULL, ys, yn, p_cap = 0.0, cap_start[2] = {0.0, 0.0}, cap_stop[2] = {0.0, 0.0}; unsigned int idup = 0, i, nx; bool cap = false; char *type = (gmt_M_x_is_lon (GMT, GMT_IN)) ? "meridia...
gmt_linearx_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_load_aspatial_string(GMT_CTRL *GMT, GMT_OGR *G, uint64_t col, char *out) { uint64_t k; int64_t id; int64_t ida; size_t len; id = -1; if (GMT->current.io.ogr != GMT_ogr_status_GMT_OGR_TRUE) return 0; for (k = 0; k < *(unsigned int *)((char *)&stru_21510.r_offset + ...
int gmt_load_aspatial_string (struct GMT_CTRL *GMT, struct GMT_OGR *G, uint64_t col, char out[GMT_BUFSIZ]) { uint64_t k; int64_t scol = col, id = GMT_NOTSET; size_t len; if (GMT->current.io.ogr != GMT_OGR_TRUE) return (0); for (k = 0; k < GMT->common.a.n_aspatial; k++) { if (GMT->common.a.col[k] == scol) i...
gmt_load_aspatial_string
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_loaddefaults(GMT_CTRL *GMT, char *file) { unsigned int error; unsigned int rec; int case_val; FILE *fp; char keyword[256]; char value[256]; char line[4104]; unsigned long v10; v10 = __readfsqword(0x28u); error = 0; rec = 0; memset(line, 0, 4096); memset(keyword, 0, sizeof(keyword)); ...
int gmt_loaddefaults (struct GMT_CTRL *GMT, char *file) { static int gmt_version_major = GMT_PACKAGE_VERSION_MAJOR; unsigned int error = 0, rec = 0; char line[GMT_BUFSIZ] = {""}, keyword[GMT_LEN256] = {""}, value[GMT_LEN256] = {""}; FILE *fp = NULL; if ((fp = fopen (file, "r")) == NULL) return (-1); GMT_Report (...
gmt_loaddefaults
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_lon_range_adjust(unsigned int range, double *lon) { switch (range) { case 1u: while (*lon < 0.0) *lon = *lon + 360.0; while (*lon > 360.0) *lon = *lon - 360.0; break; case 2u: while (*lon < 0.0) *lon = *lon + 360.0; while (*lon >= 360.0) *lon = *lon - 360.0; ...
void gmt_lon_range_adjust (unsigned int range, double *lon) { switch (range) { case GMT_IS_0_TO_P360_RANGE: while ((*lon) < 0.0) (*lon) += 360.0; while ((*lon) > 360.0) (*lon) -= 360.0; break; case GMT_IS_0_TO_P360: while ((*lon) < 0.0) (*lon) += 360.0; while ((*lon) >= 360.0) (*lon) -= 360.0; ...
gmt_lon_range_adjust
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_lrand(GMT_CTRL *GMT) { double v1; double rand_0_to_1; rand_0_to_1 = gmt_rand(GMT); if (rand_0_to_1 > 0.5) v1 = -log(1.0 - rand_0_to_1 + 1.0 - rand_0_to_1); else v1 = log(rand_0_to_1 + rand_0_to_1); return v1 / 1.414213562373095; }
double gmt_lrand (struct GMT_CTRL *GMT) { double rand_0_to_1; rand_0_to_1 = gmt_rand (GMT); return (((rand_0_to_1 <= 0.5) ? log (2.0 * rand_0_to_1) : -log (2.0 * (1.0 - rand_0_to_1))) / M_SQRT2); }
gmt_lrand
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_mag3v(GMT_CTRL *GMT, double *a) { return sqrt(*a * *a + a[1] * a[1] + a[2] * a[2]); }
double gmt_mag3v (struct GMT_CTRL *GMT, double *a) { gmt_M_unused(GMT); return (d_sqrt(a[GMT_X]*a[GMT_X] + a[GMT_Y]*a[GMT_Y] + a[GMT_Z]*a[GMT_Z])); }
gmt_mag3v
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_make_rot2d_matrix(double angle, double (*R)[3]) { double cosx; double sinx; double (*Ra)[3]; double anglea; double s; double c; unsigned long v8; anglea = angle; Ra = R; v8 = __readfsqword(0x28u); memset(R, 0, 0x48u); sincos(angle * 0.0174532925199433, &sinx, &cosx); s = sinx; c = ...
GMT_LOCAL void gmt_make_rot2d_matrix (double angle, double R[3][3]) { double s, c; gmt_M_memset (R, 9, double); sincosd (angle, &s, &c); R[0][0] = c; R[0][1] = -s; R[1][0] = s; R[1][1] = c; }
gmt_make_rot2d_matrix
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_make_rot_matrix(GMT_CTRL *GMT, double lonp, double latp, double w, double (*R)[3]) { double E[4]; *(_QWORD *)&E[3] = __readfsqword(0x28u); gmt_geo_to_cart(GMT, latp, lonp, E, 1); gmt_make_rot_matrix2(GMT, E, w, R); }
void gmt_make_rot_matrix (struct GMT_CTRL *GMT, double lonp, double latp, double w, double R[3][3]) { double E[3]; gmt_geo_to_cart (GMT, latp, lonp, E, true); gmt_make_rot_matrix2 (GMT, E, w, R); }
gmt_make_rot_matrix
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_make_rot_matrix2(GMT_CTRL *GMT, double *E, double w, double (*R)[3]) { double cosx; double sinx; double (*Ra)[3]; double wa; double *Ea; GMT_CTRL *GMTa; double sin_w; double cos_w; double c; double E_x; double E_y; double E_z; double E_12c; double E_13c; double E_23c; unsigned l...
void gmt_make_rot_matrix2 (struct GMT_CTRL *GMT, double E[3], double w, double R[3][3]) { double sin_w, cos_w, c, E_x, E_y, E_z, E_12c, E_13c, E_23c; gmt_M_unused(GMT); sincosd (w, &sin_w, &cos_w); c = 1 - cos_w; E_x = E[0] * sin_w; E_y = E[1] * sin_w; E_z = E[2] * sin_w; E_12c = E[0] * E[1] * c; E_1...
gmt_make_rot_matrix2
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void *gmt_malloc_func(GMT_CTRL *GMT, void *ptr, size_t n, size_t *n_alloc, size_t element_size, const char *where) { size_t v6; size_t v7; size_t max_meminc; size_t min_meminc; void *ptra; void *ptrb; size_t in_n_alloc; ptra = ptr; if (n_alloc) v6 = *n_alloc; else v6 =...
void * gmt_malloc_func (struct GMT_CTRL *GMT, void *ptr, size_t n, size_t *n_alloc, size_t element_size, const char *where) { size_t in_n_alloc = (n_alloc) ? *n_alloc : 0U; if (in_n_alloc == 0 || !ptr) { in_n_alloc = (n == 0) ? GMT->session.min_meminc : n; ptr = NULL; } else if (n == ...
gmt_malloc_func
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_map_basemap(GMT_CTRL *GMT) { bool clip_on; unsigned int side; unsigned int uint_tmp; unsigned int uint_tmp_0; PSL_CTRL *PSL; double w; double e; double s; double n; clip_on = 0; PSL = GMT->PSL; if (GMT->common.B.active[0] || GMT->common.B.active[1]) { gmt_setpen(GMT, &GMT->current....
void gmt_map_basemap (struct GMT_CTRL *GMT) { unsigned int side; bool clip_on = false; double w, e, s, n; struct PSL_CTRL *PSL= GMT->PSL; if (!GMT->common.B.active[GMT_PRIMARY] && !GMT->common.B.active[GMT_SECONDARY]) return; gmt_setpen (GMT, &GMT->current.setting.map_frame_pen); w = GMT->common.R.wesn[XLO], ...
gmt_map_basemap
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_map_clip_off(GMT_CTRL *GMT) { PSL_comment(GMT->PSL, "Deactivate Map clip path\n"); PSL_endclipping(GMT->PSL, 1); }
void gmt_map_clip_off (struct GMT_CTRL *GMT) { PSL_comment (GMT->PSL, "Deactivate Map clip path\n"); PSL_endclipping (GMT->PSL, 1); }
gmt_map_clip_off
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_map_clip_on(GMT_CTRL *GMT, double *rgb, unsigned int flag) { bool donut; double *work_x; double *work_y; PSL_CTRL *PSL; uint64_t np; unsigned long v9; v9 = __readfsqword(0x28u); work_x = 0; work_y = 0; PSL = GMT->PSL; np = gmt_map_clip_path(GMT, &work_x, &work_y, &donut); PSL_comment(P...
void gmt_map_clip_on (struct GMT_CTRL *GMT, double rgb[], unsigned int flag) { uint64_t np; bool donut; double *work_x = NULL, *work_y = NULL; struct PSL_CTRL *PSL= GMT->PSL; np = gmt_map_clip_path (GMT, &work_x, &work_y, &donut); PSL_comment (PSL, "Activate Map clip path\n"); if (donut) { PSL_b...
gmt_map_clip_on
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmt_map_clip_path(GMT_CTRL *GMT, double **x, double **y, bool *donut) { int projection; bool v5; bool v6; uint64_t v7; double *v8; double *v9; double *v10; double *v11; int v12; double v13; double v14; double v15; double v16; double v17; double v18; double v19; double v20; d...
uint64_t gmt_map_clip_path (struct GMT_CTRL *GMT, double **x, double **y, bool *donut) { uint64_t i, j, np; bool do_circle = false; double *work_x = NULL, *work_y = NULL, da, r0, s, c, lon, lat; *donut = false; if (GMT->common.R.oblique) np = 4; else { switch (GMT->current.proj.projection) { case G...
gmt_map_clip_path
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_map_outside(GMT_CTRL *GMT, double lon, double lat) { GMT->current.map.prev_x_status = GMT->current.map.this_x_status; GMT->current.map.prev_y_status = GMT->current.map.this_y_status; if (*(_QWORD *)((char *)&loc_12E4C8 + (_QWORD)GMT)) return (*(bool (**)(GMT_CTRL *, double, double))( (char *)...
bool gmt_map_outside (struct GMT_CTRL *GMT, double lon, double lat) { GMT->current.map.prev_x_status = GMT->current.map.this_x_status; GMT->current.map.prev_y_status = GMT->current.map.this_y_status; if (GMT->current.map.outside == NULL) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "gmt_map_outside: FATAL ERROR - ...
gmt_map_outside
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_map_setup(GMT_CTRL *GMT, double *wesn) { _BOOL4 v3; int projection; bool v5; GMT_PLOT_AXIS_ITEM *v6; double v7; double v8; double v9; bool search; unsigned int i; unsigned int ia; char *def_args[2]; unsigned long v14; v14 = __readfsqword(0x28u); if (wesn[1] == *wesn && wesn[3] == we...
int gmt_map_setup (struct GMT_CTRL *GMT, double wesn[]) { unsigned int i; bool search, double_auto[6]; double scale, i_scale; if (wesn[XHI] == wesn[XLO] && wesn[YHI] == wesn[YLO]) Return (GMT_MAP_NO_REGION); if (!GMT->common.J.active) { char *def_args[2] = {"X15c", "Q15c"}; if (GMT->current.setting.run_mode...
gmt_map_setup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmt_map_truncate(GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t start, int side) { if (GMT->current.proj.projection == 105) return map_truncate_tm(GMT, x, y, n, start, side); else return map_truncate_x(GMT, x, y, n, start, side); }
uint64_t gmt_map_truncate (struct GMT_CTRL *GMT, double *x, double *y, uint64_t n, uint64_t start, int side) { if (GMT->current.proj.projection == GMT_TM) return (map_truncate_tm (GMT, x, y, n, start, side)); else return (map_truncate_x (GMT, x, y, n, start, side)); }
gmt_map_truncate
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_mapinsert_syntax(GMT_CTRL *GMT, char option, char *string) { if (*string == 32) GMT_Report(GMT->parent, 1u, "Syntax error -%c option. Correct syntax:\n", (unsigned int)option); gmt_message(GMT, "\t-%c %s\n", (unsigned int)option, string); gmt_message(GMT, "\t Specify the map inser...
void gmt_mapinsert_syntax (struct GMT_CTRL *GMT, char option, char *string) { if (string[0] == ' ') GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error -%c option. Correct syntax:\n", option); gmt_message (GMT, "\t-%c %s\n", option, string); gmt_message (GMT, "\t Specify the map insert region using one of ...
gmt_mapinsert_syntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_mappanel_syntax(GMT_CTRL *GMT, char option, char *string, unsigned int kind) { char *v4; char *type[4]; unsigned long v8; v8 = __readfsqword(0x28u); type[0] = "logo"; type[1] = "image"; type[2] = "legend"; type[3] = "scale"; if (kind > 3) __assert_fail("kind < 4"...
void gmt_mappanel_syntax (struct GMT_CTRL *GMT, char option, char *string, unsigned int kind) { char *type[4] = {"logo", "image", "legend", "scale"}; assert (kind < 4); if (string[0] == ' ') GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error -%c option. Correct syntax:\n", option); gmt_message (GMT, "\t-%c %...
gmt_mappanel_syntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_maprose_syntax(GMT_CTRL *GMT, char option, char *string) { if (*string == 32) GMT_Report(GMT->parent, 1u, "Syntax error -%c option. Correct syntax:\n", (unsigned int)option); gmt_message(GMT, "\t-%c %s\n", (unsigned int)option, string); gmt_message( GMT, "\t Choose between a d...
void gmt_maprose_syntax (struct GMT_CTRL *GMT, char option, char *string) { if (string[0] == ' ') GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error -%c option. Correct syntax:\n", option); gmt_message (GMT, "\t-%c %s\n", option, string); gmt_message (GMT, "\t Choose between a directional (-Td) or magnetic ...
gmt_maprose_syntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_mapscale_syntax(GMT_CTRL *GMT, char option, char *string) { if (*string == 32) GMT_Report(GMT->parent, 1u, "Syntax error -%c option. Correct syntax:\n", (unsigned int)option); gmt_message(GMT, "\t-%c %s\n", (unsigned int)option, string); gmt_refpoint_syntax(GMT, "L", 0, 5u, 3u); gmt...
void gmt_mapscale_syntax (struct GMT_CTRL *GMT, char option, char *string) { if (string[0] == ' ') GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error -%c option. Correct syntax:\n", option); gmt_message (GMT, "\t-%c %s\n", option, string); gmt_refpoint_syntax (GMT, "L", NULL, GMT_ANCHOR_MAPSCALE, 3); gmt_mes...
gmt_mapscale_syntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_match_string_in_file(const char *filename, const char *string) { FILE *fp; char line[4104]; unsigned long v5; v5 = __readfsqword(0x28u); memset(line, 0, 4096); fp = fopen(filename, "r"); if (!fp) return 0; while (fgets(line, 4095, fp)) { if (strstr(line, string)) { fclose(fp); ...
int gmt_match_string_in_file (const char *filename, const char *string) { FILE *fp; char line[BUF_SIZE] = {""}; fp = fopen (filename, "r"); if (fp == NULL) return false; while (fgets (line, BUF_SIZE-1, fp)) { if (strstr (line, string)) { fclose (fp); return true; } } fclose (fp); return fal...
gmt_match_string_in_file
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_matrix_vect_mult(GMT_CTRL *GMT, unsigned int dim, double (*a)[3], double *b, double *c) { unsigned int i; unsigned int j; for (i = 0; i < dim; ++i) { j = 0; c[i] = 0.0; while (j < dim) { c[i] = b[j] * (*a)[3 * i + j] + c[i]; ++j; } } }
void gmt_matrix_vect_mult (struct GMT_CTRL *GMT, unsigned int dim, double a[3][3], double b[3], double c[3]) { unsigned int i, j; gmt_M_unused(GMT); for (i = 0; i < dim; i++) for (j = 0, c[i] = 0.0; j < dim; j++) c[i] += a[i][j] * b[j]; }
gmt_matrix_vect_mult
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_mean_and_std(GMT_CTRL *GMT, double *x, uint64_t n, double *std) { double v4; double v5; double d_NaN; uint64_t k; uint64_t m; double mean; double sum2; double dx_0; m = 0; mean = 0.0; sum2 = 0.0; for (k = 0; k < n; ++k) { ++m; dx_0 = x[k] - mean; if ((m & 0x80000000000000...
double gmt_mean_and_std (struct GMT_CTRL *GMT, double *x, uint64_t n, double *std) { uint64_t k, m = 0; double dx, mean = 0.0, sum2 = 0.0; for (k = 0; k < n; k++) { if (gmt_M_is_dnan (x[k])) continue; m++; dx = x[k] - mean; mean += dx / m; sum2 += dx * (x[k] - mean); } *std = (m > 1) ? sqrt (sum2 / (m...
gmt_mean_and_std
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_mean_weighted(GMT_CTRL *GMT, double *x, double *w, uint64_t n) { uint64_t k; double sum_xw; double sum_w; sum_xw = 0.0; sum_w = 0.0; if (!n) return GMT->session.d_NaN; for (k = 0; k < n; ++k) { sum_w = w[k] + sum_w; sum_xw = w[k] * x[k] + sum_xw; } if (sum_w == 0.0) return ...
double gmt_mean_weighted (struct GMT_CTRL *GMT, double *x, double *w, uint64_t n) { uint64_t k; double sum_xw = 0.0, sum_w = 0.0; if (n == 0) return (GMT->session.d_NaN); for (k = 0; k < n; k++) { sum_w += w[k]; sum_xw += x[k] * w[k]; } if (sum_w == 0.0) return (GMT->session.d_NaN); return (sum_xw / su...
gmt_mean_weighted
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_median(GMT_CTRL *GMT, double *x, uint64_t n, double xmin, double xmax, double m_initial, double *med) { uint64_t v8; double v9; double v10; double v11; double v12; bool finished; int iteration; double lower_bound; double upper_bound; double t_0; double t_1; double lub; d...
int gmt_median (struct GMT_CTRL *GMT, double *x, uint64_t n, double xmin, double xmax, double m_initial, double *med) { double lower_bound, upper_bound, m_guess, t_0, t_1, t_middle; double lub, glb, xx, temp; uint64_t i; int64_t n_above, n_below, n_equal, n_lub, n_glb, one; int iteration = 0; bool finished = fal...
gmt_median
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_median_weighted(GMT_CTRL *GMT, GMT_OBSERVATION *data, uint64_t n) { return gmt_quantile_weighted(GMT, data, n, 0.5); }
double gmt_median_weighted (struct GMT_CTRL *GMT, struct GMT_OBSERVATION *data, uint64_t n) { return gmt_quantile_weighted (GMT, data, n, 0.5); }
gmt_median_weighted
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void *gmt_memory_func(GMT_CTRL *GMT, void *prev_addr, size_t nelem, size_t size, bool align, const char *where) { void *tmp; if (nelem == -1) { gmtlib_report_func(GMT, 1u, where, "Error: Requesting SIZE_MAX number of items (%zu) - " "exceeding...
void *gmt_memory_func (struct GMT_CTRL *GMT, void *prev_addr, size_t nelem, size_t size, bool align, const char *where) { void *tmp = NULL; if (nelem == SIZE_MAX) { gmtlib_report_func (GMT, GMT_MSG_NORMAL, where, "Error: Requesting SIZE_MAX number of items (%" PRIuS ") - exceeding 32-bit counting?\n", ne...
gmt_memory_func
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_merc_sph(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double d_NaN; double v6; double v7; double j_x; double lata; double lona; lata = lat; for (lona = lon - GMT->current.proj.central_meridian; lona < -180.00000001; lona = lona + 360.0) ; while (lona > 180.000000...
void gmt_merc_sph (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { gmt_M_wind_lon (GMT, lon) if (GMT->current.proj.GMT_convert_latitudes) lat = gmt_M_latg_to_latc (GMT, lat); *x = GMT->current.proj.j_x * D2R * lon; *y = (fabs (lat) < 90.0) ? GMT->current.proj.j_x * d_log (GMT, tand (45.0 ...
gmt_merc_sph
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_message(GMT_CTRL *GMT, char *format, ...) { long v2; long v3; long v4; long v5; va_list args; char line[4104]; unsigned long v9; long v10; long v11; long v12; long v13; va_start(args, format); v2 = va_arg(args, _QWORD); v3 = va_arg(args, _QWORD); v4 = va_arg(args, _QWORD); v5 = ...
int gmt_message (struct GMT_CTRL *GMT, char *format, ...) { char line[GMT_BUFSIZ]; va_list args; va_start (args, format); vsnprintf (line, GMT_BUFSIZ, format, args); GMT->parent->print_func (GMT->session.std[GMT_ERR], line); va_end (args); return (0); }
gmt_message
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_mindist_to_point(GMT_CTRL *GMT, double lon, double lat, GMT_DATATABLE *T, uint64_t *id) { uint64_t row; uint64_t seg; double d_min; double d; d_min = 1.797693134862316e308; for (seg = 0; seg < T->n_segments; ++seg) { for (row = 0; row < T->segment[seg]->n_rows; ++...
double gmt_mindist_to_point (struct GMT_CTRL *GMT, double lon, double lat, struct GMT_DATATABLE *T, uint64_t *id) { uint64_t row, seg; double d, d_min; d_min = DBL_MAX; for (seg = 0; seg < T->n_segments; seg++) { for (row = 0; row < T->segment[seg]->n_rows; row++) { d = gmt_distance (GMT, lon, lat, T->segment...
gmt_mindist_to_point
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_mode(GMT_CTRL *GMT, double *x, uint64_t n, uint64_t j, bool sort, int mode_selection, unsigned int *n_multiples, double *mode_est) { unsigned int multiplicity; uint64_t i; double mid_point_sum; double short_length; double length; mid_point_sum = 0.0; short_length = 1.797693134862316e...
int gmt_mode (struct GMT_CTRL *GMT, double *x, uint64_t n, uint64_t j, bool sort, int mode_selection, unsigned int *n_multiples, double *mode_est) { uint64_t i, istop; unsigned int multiplicity; double mid_point_sum = 0.0, length, short_length = DBL_MAX, this_mode; if (n == 0) { *mode_est = GMT->session.d_NaN; ...
gmt_mode
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_mode_f(GMT_CTRL *GMT, float *x, uint64_t n, uint64_t j, bool sort, int mode_selection, unsigned int *n_multiples, double *mode_est) { unsigned int multiplicity; uint64_t i; double mid_point_sum; double short_length; double length; mid_point_sum = 0.0; short_length = ...
int gmt_mode_f (struct GMT_CTRL *GMT, float *x, uint64_t n, uint64_t j, bool sort, int mode_selection, unsigned int *n_multiples, double *mode_est) { uint64_t i, istop; unsigned int multiplicity; double mid_point_sum = 0.0, length, short_length = FLT_MAX, this_mode; if (n == 0) { *mode_est = GMT->session.d_NaN;...
gmt_mode_f
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_mode_weighted(GMT_CTRL *GMT, GMT_OBSERVATION *data, uint64_t n) { uint64_t v4; double top; double wsum; double wsuma; double p_max; double mode; uint64_t i; uint64_t ia; uint64_t ib; uint64_t j; double bottom; if (!n) return GMT->session.d_NaN; qsort(data, n, 8u, (__compar_fn_t...
double gmt_mode_weighted (struct GMT_CTRL *GMT, struct GMT_OBSERVATION *data, uint64_t n) { double top, bottom, wsum, p, p_max, mode; uint64_t i, j; if (n == 0) return (GMT->session.d_NaN); qsort (data, n, sizeof (struct GMT_OBSERVATION), gmtlib_compare_observation); for (wsum = 0.0, i = 0; i < n; i+...
gmt_mode_weighted
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_mollweide(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double cosx; double sinx; double *ya; double *xa; double lata; double lona; GMT_CTRL *GMTa; int i; double c; double s; double phi; double psin_lat; double delta; unsigned long v18; GMTa = ...
void gmt_mollweide (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { int i; double phi, delta, psin_lat, c, s; if (doubleAlmostEqual (fabs (lat), 90.0)) { *x = 0.0; *y = copysign (GMT->current.proj.w_y, lat); return; } gmt_M_wind_lon (GMT, lon) if (GMT->current.proj.GMT_convert_la...
gmt_mollweide
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_n_cart_to_geo(GMT_CTRL *GMT, uint64_t n, double *x, double *y, double *z, double *lon, double *lat) { uint64_t k; double V[4]; *(_QWORD *)&V[3] = __readfsqword(0x28u); for (k = 0; k < n; ++k) { V[0] = x[k]; V[1] = y[k]; V[2] = z[k]; gmt_cart_to_geo(GMT, &lat[k], ...
void gmt_n_cart_to_geo (struct GMT_CTRL *GMT, uint64_t n, double *x, double *y, double *z, double *lon, double *lat) { uint64_t k; double V[3]; for (k = 0; k < n; k++) { V[0] = x[k]; V[1] = y[k]; V[2] = z[k]; gmt_cart_to_geo (GMT, &lat[k], &lon[k], V, true); } }
gmt_n_cart_to_geo
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmt_n_cols_needed_for_gaps(GMT_CTRL *GMT, uint64_t n) { uint64_t result; if (!GMT->common.g.active) return n; result = *(unsigned long *)((char *)&stru_22E00.r_offset + (_QWORD)GMT); if (n >= result) return n; return result; }
static inline uint64_t gmt_n_cols_needed_for_gaps (struct GMT_CTRL *GMT, uint64_t n) { if (GMT->common.g.active) return (MAX (n, GMT->common.g.n_col)); return (n); }
gmt_n_cols_needed_for_gaps
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_native_read_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { int v7; size_t v8; __m128i v9; size_t v10; float *v11; double z_min; size_t v13; bool piping; int first_col; int ...
int gmt_native_read_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { int j, type; bool piping = false; bool check = false; unsigned int err; int first_col, last_col; int first_row, last_row; unsigned i...
gmt_native_read_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_native_read_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { int status; FILE *fp; if (!strcmp(header->name, "=")) { fp = GMT->session.std[0]; } else { fp = gmt_fopen(GMT, header->name, "rb"); if (!fp) return 7; } status = customio_native_read_grd_header(fp, header); gmt_fclos...
int gmt_native_read_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { int status; FILE *fp = NULL; if (!strcmp (header->name, "=")) { #ifdef SET_IO_MODE gmt_setmode (GMT, GMT_IN); #endif fp = GMT->session.std[GMT_IN]; } else if ((fp = gmt_fopen (GMT, header->name, "rb")) == NULL) return...
gmt_native_read_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_native_write_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { int v7; double z_min; double z_max; size_t v10; bool do_header; int first_col; int last_col; int first_row; int ...
int gmt_native_write_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { int err; int i, j, type; bool check = false; bool do_header = true; int first_col, last_col; int first_row, last_row; unsigned i...
gmt_native_write_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_native_write_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { int err; FILE *fp; if (!strcmp(header->name, "=")) { fp = GMT->session.std[1]; } else { fp = gmt_fopen(GMT, header->name, "rb+"); if (!fp) { fp = gmt_fopen(GMT, header->name, "wb"); if (!fp) return 8; } ...
int gmt_native_write_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { int err; FILE *fp = NULL; if (!strcmp (header->name, "=")) { #ifdef SET_IO_MODE gmt_setmode (GMT, GMT_OUT); #endif fp = GMT->session.std[GMT_OUT]; } else if ((fp = gmt_fopen (GMT, header->name, "rb+")) == NULL && (fp =...
gmt_native_write_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
FILE *gmt_nc_fopen(GMT_CTRL *GMT, const char *filename, const char *mode) { char *v4; int v5; char *v6; bool by_value; int ndims; int id; int i; int j; int nvars; int in; size_t n; size_t tmp_pointer; size_t item[2]; double dummy[2]; unsigned int dimids[8]; double t_value[6]; GMT_TIME_...
GMT_LOCAL FILE *gmt_nc_fopen (struct GMT_CTRL *GMT, const char *filename, const char *mode) { char file[GMT_BUFSIZ] = {""}, path[GMT_BUFSIZ] = {""}; int i, j, nvars, dimids[5] = {-1, -1, -1, -1, -1}, ndims, in, id; size_t n, item[2]; size_t tmp_pointer; double t_value[5], dummy[2]; char varnm[20][GMT_LE...
gmt_nc_fopen
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_nc_read_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { int v7; unsigned int stride; size_t v9; double z_min; double z_max; int n_shift; unsigned int width; unsigned int height; unsig...
int gmt_nc_read_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { bool adj_nan_value; int err; int n_shift; unsigned dim[2], dim2[2], origin[2], origin2[2]; unsigned width = 0, height = 0; size_t width...
gmt_nc_read_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_nc_read_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { return gmtnc_grd_info(GMT, header, 114); }
int gmt_nc_read_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { return (gmtnc_grd_info (GMT, header, 'r')); }
gmt_nc_read_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_nc_update_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { return gmtnc_grd_info(GMT, header, 117); }
int gmt_nc_update_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { return (gmtnc_grd_info (GMT, header, 'u')); }
gmt_nc_update_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_nc_write_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { unsigned int type; int v7; unsigned int *v8; __m128i v9; double z_min; double z_max; bool do_round; unsigned int width; unsi...
int gmt_nc_write_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { int status = NC_NOERR; bool adj_nan_value; bool do_round = true; unsigned int width, height, *actual_col = NULL; unsigned int dim[2], origin[2]; int...
gmt_nc_write_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_nc_write_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { return gmtnc_grd_info(GMT, header, 119); }
int gmt_nc_write_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { return (gmtnc_grd_info (GMT, header, 'w')); }
gmt_nc_write_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_near_a_line(GMT_CTRL *GMT, double lon, double lat, uint64_t seg, GMT_DATASEGMENT *S, unsigned int return_mindist, double *dist_min, double *x_near, double *y_near) { return ((bool (*)(GMT_CTRL *, uint64_t, GMT_DATASEGMENT *, _QWORD, double *, doub...
bool gmt_near_a_line (struct GMT_CTRL *GMT, double lon, double lat, uint64_t seg, struct GMT_DATASEGMENT *S, unsigned int return_mindist, double *dist_min, double *x_near, double *y_near) { return (GMT->current.map.near_a_line_func (GMT, lon, lat, seg, S, return_mindist, dist_min, x_near, y_near)); }
gmt_near_a_line
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_near_a_point(GMT_CTRL *GMT, double lon, double lat, GMT_DATATABLE *T, double dist) { return ((bool (*)(GMT_CTRL *, GMT_DATATABLE *, double, double, double))GMT->current.map.near_point_func)(GMT, T, lon, lat, ...
bool gmt_near_a_point (struct GMT_CTRL *GMT, double lon, double lat, struct GMT_DATATABLE *T, double dist) { return (GMT->current.map.near_point_func (GMT, lon, lat, T, dist)); }
gmt_near_a_point
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_near_lines(GMT_CTRL *GMT, double lon, double lat, GMT_DATATABLE *T, unsigned int return_mindist, double *dist_min, double *x_near, double *y_near) { return ((bool (*)(GMT_CTRL *, GMT_DATATABLE *, _QWORD, double *, double *, double *, double, double,...
bool gmt_near_lines (struct GMT_CTRL *GMT, double lon, double lat, struct GMT_DATATABLE *T, unsigned int return_mindist, double *dist_min, double *x_near, double *y_near) { return (GMT->current.map.near_lines_func (GMT, lon, lat, T, return_mindist, dist_min, x_near, y_near)); }
gmt_near_lines
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_normalize2v(GMT_CTRL *GMT, double *a) { double r_length; double r_lengtha; r_length = hypot(*a, a[1]); if (r_length != 0.0) { r_lengtha = 1.0 / r_length; *a = *a * r_lengtha; a[1] = a[1] * r_lengtha; } }
void gmt_normalize2v (struct GMT_CTRL *GMT, double *a) { double r_length; gmt_M_unused(GMT); r_length = hypot (a[GMT_X], a[GMT_Y]); if (r_length != 0.0) { r_length = 1.0 / r_length; a[GMT_X] *= r_length; a[GMT_Y] *= r_length; } }
gmt_normalize2v
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_normalize3v(GMT_CTRL *GMT, double *a) { double r_length; double r_lengtha; r_length = gmt_mag3v(GMT, a); if (r_length != 0.0) { r_lengtha = 1.0 / r_length; *a = *a * r_lengtha; a[1] = a[1] * r_lengtha; a[2] = a[2] * r_lengtha; } }
void gmt_normalize3v (struct GMT_CTRL *GMT, double *a) { double r_length; r_length = gmt_mag3v (GMT,a); if (r_length != 0.0) { r_length = 1.0 / r_length; a[GMT_X] *= r_length; a[GMT_Y] *= r_length; a[GMT_Z] *= r_length; } }
gmt_normalize3v
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_not_numeric(GMT_CTRL *GMT, char *text) { unsigned int i; unsigned int ia; unsigned int k; unsigned int n_digits; unsigned int n_digitsa; unsigned int n_period; unsigned int period; unsigned int n_plus; unsigned int n_minus; n_digits = 0; n_period = 0; period = 0; n_plus = 0; n_minu...
bool gmt_not_numeric (struct GMT_CTRL *GMT, char *text) { unsigned int i, k, n_digits = 0, n_period = 0, period = 0, n_plus = 0, n_minus = 0; static char *valid = "0123456789-+.:WESNT" GMT_LEN_UNITS GMT_DIM_UNITS; gmt_M_unused(GMT); if (!text) return (true); if (!strlen (text)) return (true); if (isalp...
gmt_not_numeric
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_nrand(GMT_CTRL *GMT) { double xmm0_8_2; double xmm0_8_2a; double v3; double v4; double v1; double v2; double r; if (iset_9) { iset_9 = 0; return gset_8; } else { do { do { xmm0_8_2 = gmt_rand(GMT); v1 = xmm0_8_2 + xmm0_8_2 - 1.0; xmm0_8_2a = gmt_ra...
double gmt_nrand (struct GMT_CTRL *GMT) { static int iset = 0; static double gset; double fac, r, v1, v2; if (iset == 0) { do { v1 = 2.0 * gmt_rand (GMT) - 1.0; v2 = 2.0 * gmt_rand (GMT) - 1.0; r = v1 * v1 + v2 * v2; } while (r >= 1.0 || r == 0.0); fac = sqrt (-2.0 * log (r) / r); ...
gmt_nrand
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_obl(GMT_CTRL *GMT, double lon, double lat, double *olon, double *olat) { double v5; double v6; double v7; double v8; double v9; double v10; double p_cross_x[4]; double X[5]; *(_QWORD *)&X[3] = __readfsqword(0x28u); gmt_geo_to_cart(GMT, lat, lon, X, 0); if (fabs(gmt_dot3v(GMT...
void gmt_obl (struct GMT_CTRL *GMT, double lon, double lat, double *olon, double *olat) { double p_cross_x[3], X[3]; gmt_geo_to_cart (GMT, lat, lon, X, false); *olat = d_asin (gmt_dot3v (GMT, X, GMT->current.proj.o_FP)); gmt_cross3v (GMT, GMT->current.proj.o_FP, X, p_cross_x); gmt_normalize3v (GMT, p_cross_x)...
gmt_obl
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_oblmrc(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double d_NaN; double v6; double v7; double j_x; double tlon; double tlat[2]; *(_QWORD *)&tlat[1] = __readfsqword(0x28u); gmt_obl(GMT, lon * 0.0174532925199433, lat * 0.0174532925199433, &tlon, tlat); *x = tlon * GMT->curre...
void gmt_oblmrc (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double tlon, tlat; gmt_obl (GMT, lon * D2R, lat * D2R, &tlon, &tlat); *x = GMT->current.proj.j_x * tlon; *y = (fabs (tlat) < M_PI_2) ? GMT->current.proj.j_x * d_log (GMT, tan (M_PI_4 + 0.5 * tlat)) - GMT->current.proj.o_sh...
gmt_oblmrc
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0