Home
last modified time | relevance | path

Searched refs:phi (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/third_party/boost/boost/geometry/srs/projections/impl/
Dpj_apply_gridshift.hpp71 indx.phi = int_floor(in_lat /= ct.del.phi); in nad_intr()
73 frct.phi = in_lat - indx.phi; in nad_intr()
89 if (indx.phi < 0) { in nad_intr()
90 if (indx.phi == -1 && frct.phi > 0.99999999999) { in nad_intr()
91 ++indx.phi; in nad_intr()
92 frct.phi = 0.; in nad_intr()
95 } else if ((in = indx.phi + 1) >= ct.lim.phi) { in nad_intr()
96 if (in == ct.lim.phi && frct.phi < 1e-11) { in nad_intr()
97 --indx.phi; in nad_intr()
98 frct.phi = 1.; in nad_intr()
[all …]
Dpj_gridinfo.hpp105 struct lp_t { double lam, phi; }; member
106 struct flp_t { float lam, phi; }; member
107 struct ilp_t { boost::int32_t lam, phi; }; member
202 std::size_t a_size = ct.lim.lam * ct.lim.phi; in pj_gridinfo_load_ctable()
233 std::size_t a_size = ct.lim.lam * ct.lim.phi; in pj_gridinfo_load_ctable2()
276 gi.ct.cvs.resize(gi.ct.lim.lam * gi.ct.lim.phi); in pj_gridinfo_load_ntv1()
278 for (boost::int32_t row = 0; row < gi.ct.lim.phi; row++ ) in pj_gridinfo_load_ntv1()
296 cvs.phi = (float) (row_buf[i*2] * s2r); in pj_gridinfo_load_ntv1()
326 gi.ct.cvs.resize(gi.ct.lim.lam * gi.ct.lim.phi); in pj_gridinfo_load_ntv2()
328 for (boost::int32_t row = 0; row < gi.ct.lim.phi; row++ ) in pj_gridinfo_load_ntv2()
[all …]
/third_party/boost/boost/math/special_functions/
Dellint_3.hpp45 T ellint_pi_imp(T v, T phi, T k, T vc, const Policy& pol) in ellint_pi_imp() argument
53 T sphi = sin(fabs(phi)); in ellint_pi_imp()
65 return (k == 0) ? phi : ellint_f_imp(phi, k, pol); in ellint_pi_imp()
77 return tan(phi); in ellint_pi_imp()
81 result = sqrt(1 - m * sphi * sphi) * tan(phi) - ellint_e_imp(phi, k, pol); in ellint_pi_imp()
83 result += ellint_f_imp(phi, k, pol); in ellint_pi_imp()
86 if(phi == constants::half_pi<T>()) in ellint_pi_imp()
97 if((phi > constants::half_pi<T>()) || (phi < 0)) in ellint_pi_imp()
108 if(fabs(phi) > 1 / tools::epsilon<T>()) in ellint_pi_imp()
118 result = 2 * fabs(phi) * ellint_pi_imp(v, k, vc, pol) / constants::pi<T>(); in ellint_pi_imp()
[all …]
Dellint_2.hpp36 typename tools::promote_args<T1, T2>::type ellint_2(T1 k, T2 phi, const Policy& pol);
45 T ellint_e_imp(T phi, T k, const Policy& pol) in ellint_e_imp() argument
52 if (phi == 0) in ellint_e_imp()
55 if(phi < 0) in ellint_e_imp()
57 phi = fabs(phi); in ellint_e_imp()
63 if(phi >= tools::max_value<T>()) in ellint_e_imp()
68 else if(phi > 1 / tools::epsilon<T>()) in ellint_e_imp()
72 result = 2 * phi * ellint_e_imp(k, pol) / constants::pi<T>(); in ellint_e_imp()
76 return invert ? T(-phi) : phi; in ellint_e_imp()
80 return invert ? T(-sin(phi)) : T(sin(phi)); in ellint_e_imp()
[all …]
Dellint_1.hpp34 typename tools::promote_args<T1, T2>::type ellint_1(T1 k, T2 phi, const Policy& pol);
43 T ellint_f_imp(T phi, T k, const Policy& pol) in ellint_f_imp() argument
50 BOOST_MATH_INSTRUMENT_VARIABLE(phi); in ellint_f_imp()
55 if(phi < 0) in ellint_f_imp()
57 BOOST_MATH_INSTRUMENT_VARIABLE(phi); in ellint_f_imp()
58 phi = fabs(phi); in ellint_f_imp()
64 if(phi >= tools::max_value<T>()) in ellint_f_imp()
70 else if(phi > 1 / tools::epsilon<T>()) in ellint_f_imp()
74 result = 2 * phi * ellint_k_imp(k, pol) / constants::pi<T>(); in ellint_f_imp()
87 T rphi = boost::math::tools::fmod_workaround(phi, T(constants::half_pi<T>())); in ellint_f_imp()
[all …]
Dspherical_harmonic.hpp51 T spherical_harmonic_r(unsigned n, int m, T theta, T phi, const Policy& pol) in spherical_harmonic_r() argument
73 prefix *= cos(m * phi); in spherical_harmonic_r()
78 T spherical_harmonic_i(unsigned n, int m, T theta, T phi, const Policy& pol) in spherical_harmonic_i() argument
100 prefix *= sin(m * phi); in spherical_harmonic_i()
105 std::complex<T> spherical_harmonic(unsigned n, int m, U theta, U phi, const Policy& pol) in spherical_harmonic() argument
136 U r = prefix * cos(m * phi); in spherical_harmonic()
137 U i = prefix * sin(m * phi); in spherical_harmonic()
153 spherical_harmonic(unsigned n, int m, T1 theta, T2 phi, const Policy& pol) in spherical_harmonic() argument
157 …<result_type, value_type>(n, m, static_cast<value_type>(theta), static_cast<value_type>(phi), pol); in spherical_harmonic()
162 spherical_harmonic(unsigned n, int m, T1 theta, T2 phi) in spherical_harmonic() argument
[all …]
Dellint_d.hpp36 typename tools::promote_args<T1, T2>::type ellint_d(T1 k, T2 phi, const Policy& pol);
45 T ellint_d_imp(T phi, T k, const Policy& pol) in ellint_d_imp() argument
52 if(phi < 0) in ellint_d_imp()
54 phi = fabs(phi); in ellint_d_imp()
60 if(phi >= tools::max_value<T>()) in ellint_d_imp()
65 else if(phi > 1 / tools::epsilon<T>()) in ellint_d_imp()
69 result = 2 * phi * ellint_d_imp(k, pol) / constants::pi<T>(); in ellint_d_imp()
76 T rphi = boost::math::tools::fmod_workaround(phi, T(constants::half_pi<T>())); in ellint_d_imp()
77 T m = boost::math::round((phi - rphi) / constants::half_pi<T>()); in ellint_d_imp()
148 inline typename tools::promote_args<T1, T2>::type ellint_d(T1 k, T2 phi, const boost::false_type&) in ellint_d() argument
[all …]
Dheuman_lambda.hpp30 T heuman_lambda_imp(T phi, T k, const Policy& pol) in heuman_lambda_imp() argument
42 T sinp = sin(phi); in heuman_lambda_imp()
43 T cosp = cos(phi); in heuman_lambda_imp()
48 if(fabs(phi) <= constants::half_pi<T>()) in heuman_lambda_imp()
59 …_domain_error<T>(function, "When 1-k^2 == 1 then phi must be < Pi/2, but got phi = %1%", phi, pol); in heuman_lambda_imp()
62 ratio = ellint_f_imp(phi, rkp, pol) / ellint_k_imp(rkp, pol); in heuman_lambda_imp()
63 … result = ratio + ellint_k_imp(k, pol) * jacobi_zeta_imp(phi, rkp, pol) / constants::half_pi<T>(); in heuman_lambda_imp()
71 inline typename tools::promote_args<T1, T2>::type heuman_lambda(T1 k, T2 phi, const Policy& pol) in heuman_lambda() argument
75 …ast<result_type, Policy>(detail::heuman_lambda_imp(static_cast<value_type>(phi), static_cast<value… in heuman_lambda()
79 inline typename tools::promote_args<T1, T2>::type heuman_lambda(T1 k, T2 phi) in heuman_lambda() argument
[all …]
Djacobi_zeta.hpp29 T jacobi_zeta_imp(T phi, T k, const Policy& pol) in jacobi_zeta_imp() argument
36 if(phi < 0) in jacobi_zeta_imp()
38 phi = fabs(phi); in jacobi_zeta_imp()
43 T sinp = sin(phi); in jacobi_zeta_imp()
44 T cosp = cos(phi); in jacobi_zeta_imp()
58 inline typename tools::promote_args<T1, T2>::type jacobi_zeta(T1 k, T2 phi, const Policy& pol) in jacobi_zeta() argument
62 …_cast<result_type, Policy>(detail::jacobi_zeta_imp(static_cast<value_type>(phi), static_cast<value… in jacobi_zeta()
66 inline typename tools::promote_args<T1, T2>::type jacobi_zeta(T1 k, T2 phi) in jacobi_zeta() argument
68 return boost::math::jacobi_zeta(k, phi, policies::policy<>()); in jacobi_zeta()
/third_party/ltp/tools/sparse/sparse-src/
Dunssa.c37 static int simplify_phi_node(struct instruction *phi, pseudo_t tmp) in simplify_phi_node() argument
39 pseudo_t target = phi->target; in simplify_phi_node()
44 FOR_EACH_PTR(phi->phi_list, src) { in simplify_phi_node()
49 if (def->bb == phi->bb) in simplify_phi_node()
59 phi->bb = NULL; in simplify_phi_node()
63 static void replace_phi_node(struct instruction *phi) in replace_phi_node() argument
69 tmp->type = phi->target->type; in replace_phi_node()
70 tmp->ident = phi->target->ident; in replace_phi_node()
74 simplify_phi_node(phi, tmp); in replace_phi_node()
77 FOR_EACH_PTR(phi->phi_list, p) { in replace_phi_node()
[all …]
Dmemops.c23 pseudo_t phi; in rewrite_load_instruction() local
29 FOR_EACH_PTR(dominators, phi) { in rewrite_load_instruction()
31 new = phi->def->phi_src; in rewrite_load_instruction()
32 else if (new != phi->def->phi_src) in rewrite_load_instruction()
34 } END_FOR_EACH_PTR(phi); in rewrite_load_instruction()
42 FOR_EACH_PTR(dominators, phi) { in rewrite_load_instruction()
43 kill_instruction(phi->def); in rewrite_load_instruction()
44 } END_FOR_EACH_PTR(phi); in rewrite_load_instruction()
65 pseudo_t phi; in find_dominating_parents() local
96 phi = phisrc->target; in find_dominating_parents()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_phis_to_scalar.c50 should_lower_phi(nir_phi_instr *phi, struct lower_phis_to_scalar_state *state);
146 should_lower_phi(nir_phi_instr *phi, struct lower_phis_to_scalar_state *state) in should_lower_phi() argument
149 if (phi->dest.ssa.num_components == 1) in should_lower_phi()
155 struct hash_entry *entry = _mesa_hash_table_search(state->phi_table, phi); in should_lower_phi()
163 entry = _mesa_hash_table_insert(state->phi_table, phi, (void *)(intptr_t)1); in should_lower_phi()
167 nir_foreach_phi_src(src, phi) { in should_lower_phi()
180 entry = _mesa_hash_table_search(state->phi_table, phi); in should_lower_phi()
210 nir_phi_instr *phi = nir_instr_as_phi(instr); in lower_phis_to_scalar_block() local
212 if (!should_lower_phi(phi, state)) in lower_phis_to_scalar_block()
215 unsigned bit_size = phi->dest.ssa.bit_size; in lower_phis_to_scalar_block()
[all …]
Dnir_opt_phi_precision.c195 try_move_narrowing_dst(nir_builder *b, nir_phi_instr *phi) in try_move_narrowing_dst() argument
199 assert(phi->dest.is_ssa); in try_move_narrowing_dst()
202 if (phi->dest.ssa.bit_size != 32) in try_move_narrowing_dst()
208 nir_foreach_use (use, &phi->dest.ssa) { in try_move_narrowing_dst()
219 if (!list_is_empty(&phi->dest.ssa.if_uses)) in try_move_narrowing_dst()
229 phi->dest.ssa.num_components, in try_move_narrowing_dst()
234 nir_foreach_phi_src (src, phi) { in try_move_narrowing_dst()
250 nir_foreach_use (use, &phi->dest.ssa) { in try_move_narrowing_dst()
262 b->cursor = nir_after_instr(&phi->instr); in try_move_narrowing_dst()
304 find_widening_op(nir_phi_instr *phi, unsigned *bit_size) in find_widening_op() argument
[all …]
/third_party/mesa3d/src/amd/compiler/
Daco_lower_phis.cpp110 aco_ptr<Pseudo_instruction> phi{ in get_ssa() local
113 phi->operands[i] = ops[i]; in get_ssa()
114 phi->definitions[0] = Definition(op.getTemp()); in get_ssa()
115 block.instructions.emplace(block.instructions.begin(), std::move(phi)); in get_ssa()
196 init_any_pred_defined(Program* program, ssa_state* state, Block* block, aco_ptr<Instruction>& phi) in init_any_pred_defined() argument
200 if (phi->operands[i].isUndefined()) in init_any_pred_defined()
203 if (phi->operands[i].isConstant()) in init_any_pred_defined()
204 defined = phi->operands[i].constantValue() ? pred_defined::const_1 : pred_defined::const_0; in init_any_pred_defined()
253 aco_ptr<Instruction>& phi) in lower_divergent_bool_phi() argument
267 phi->opcode = aco_opcode::p_linear_phi; in lower_divergent_bool_phi()
[all …]
/third_party/cmsis/CMSIS/DSP/Source/FilteringFunctions/
Darm_levinson_durbin_f32.c64 void arm_levinson_durbin_f32(const float32_t *phi, in arm_levinson_durbin_f32() argument
72 a[0] = phi[1] / phi[0]; in arm_levinson_durbin_f32()
74 e = phi[0] - phi[1] * a[0]; in arm_levinson_durbin_f32()
91 pRevPhi = &phi[p-3]; in arm_levinson_durbin_f32()
92 pPhi = &phi[1]; in arm_levinson_durbin_f32()
122 suma += a[i] * phi[p - i]; in arm_levinson_durbin_f32()
123 sumb += a[i] * phi[i + 1]; in arm_levinson_durbin_f32()
129 k = (phi[p+1] - suma)/(phi[0] - sumb); in arm_levinson_durbin_f32()
220 void arm_levinson_durbin_f32(const float32_t *phi, in arm_levinson_durbin_f32() argument
227 a[0] = phi[1] / phi[0]; in arm_levinson_durbin_f32()
[all …]
Darm_levinson_durbin_f16.c64 void arm_levinson_durbin_f16(const float16_t *phi, in arm_levinson_durbin_f16() argument
72 a[0] = (_Float16)phi[1] / (_Float16)phi[0]; in arm_levinson_durbin_f16()
74 e = (_Float16)phi[0] - (_Float16)phi[1] * (_Float16)a[0]; in arm_levinson_durbin_f16()
91 pRevPhi = &phi[p-7]; in arm_levinson_durbin_f16()
92 pPhi = &phi[1]; in arm_levinson_durbin_f16()
122 suma += (_Float16)a[i] * (_Float16)phi[p - i]; in arm_levinson_durbin_f16()
123 sumb += (_Float16)a[i] * (_Float16)phi[i + 1]; in arm_levinson_durbin_f16()
129 k = ((_Float16)phi[p+1] - suma)/((_Float16)phi[0] - sumb); in arm_levinson_durbin_f16()
218 void arm_levinson_durbin_f16(const float16_t *phi, in arm_levinson_durbin_f16() argument
225 a[0] = (_Float16)phi[1] / (_Float16)phi[0]; in arm_levinson_durbin_f16()
[all …]
Darm_levinson_durbin_q31.c124 void arm_levinson_durbin_q31(const q31_t *phi, in arm_levinson_durbin_q31() argument
134 a[0] = divide(phi[1], phi[0]); in arm_levinson_durbin_q31()
138 e = phi[0] - mul32x32(phi[1],a[0]); in arm_levinson_durbin_q31()
155 pRevPhi = &phi[p-3]; in arm_levinson_durbin_q31()
156 pPhi = &phi[1]; in arm_levinson_durbin_q31()
183 suma += ((q63_t)a[i] * phi[p - i]); in arm_levinson_durbin_q31()
184 sumb += ((q63_t)a[i] * phi[i + 1]); in arm_levinson_durbin_q31()
196 k = divide(phi[p+1]-(q31_t)suma,phi[0] - (q31_t)sumb); in arm_levinson_durbin_q31()
304 void arm_levinson_durbin_q31(const q31_t *phi, in arm_levinson_durbin_q31() argument
312 a[0] = divide(phi[1], phi[0]); in arm_levinson_durbin_q31()
[all …]
/third_party/boost/libs/numeric/odeint/test/
Dadaptive_adams_coefficients.cpp70 BOOST_CHECK_SMALL(coeff.phi[2][i].m_v[0] + 1, 1e-15); in BOOST_AUTO_TEST_CASE_TEMPLATE()
72 BOOST_CHECK_SMALL(coeff.phi[2][i].m_v[0] - 1, 1e-14); in BOOST_AUTO_TEST_CASE_TEMPLATE()
74 BOOST_CHECK_SMALL(coeff.phi[2][i].m_v[0] + 1, 1e-14); in BOOST_AUTO_TEST_CASE_TEMPLATE()
76 BOOST_CHECK_SMALL(coeff.phi[2][i].m_v[0], 1e-15); in BOOST_AUTO_TEST_CASE_TEMPLATE()
109 BOOST_CHECK_EQUAL(c1.phi[0][0].m_v[0], c2.phi[0][0].m_v[0]); in BOOST_AUTO_TEST_CASE()
110 BOOST_CHECK(&(c1.phi[0][0].m_v) != &(c2.phi[0][0].m_v)); in BOOST_AUTO_TEST_CASE()
113 deriv_type *p1 = &(c3.phi[0][0].m_v); in BOOST_AUTO_TEST_CASE()
116 BOOST_CHECK(p1 == (&(c3.phi[0][0].m_v))); in BOOST_AUTO_TEST_CASE()
117 BOOST_CHECK_EQUAL(c1.phi[0][0].m_v[0], c3.phi[0][0].m_v[0]); in BOOST_AUTO_TEST_CASE()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dif_conversion.cpp51 dominators, &block, &vn_table](Instruction* phi) { in Process() argument
53 if (!CheckType(phi->type_id())) return; in Process()
59 if (!CheckPhiUsers(phi, &block)) return; in Process()
65 BasicBlock* inc0 = GetIncomingBlock(phi, 0u); in Process()
73 true_value = GetIncomingValue(phi, 0u); in Process()
74 false_value = GetIncomingValue(phi, 1u); in Process()
76 true_value = GetIncomingValue(phi, 1u); in Process()
77 false_value = GetIncomingValue(phi, 0u); in Process()
106 context()->KillNamesAndDecorates(phi); in Process()
107 context()->ReplaceAllUsesWith(phi->result_id(), in Process()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dif_conversion.cpp51 dominators, &block, &vn_table](Instruction* phi) { in Process() argument
53 if (!CheckType(phi->type_id())) return; in Process()
59 if (!CheckPhiUsers(phi, &block)) return; in Process()
65 BasicBlock* inc0 = GetIncomingBlock(phi, 0u); in Process()
73 true_value = GetIncomingValue(phi, 0u); in Process()
74 false_value = GetIncomingValue(phi, 1u); in Process()
76 true_value = GetIncomingValue(phi, 1u); in Process()
77 false_value = GetIncomingValue(phi, 0u); in Process()
106 context()->KillNamesAndDecorates(phi); in Process()
107 context()->ReplaceAllUsesWith(phi->result_id(), in Process()
[all …]
/third_party/spirv-tools/source/opt/
Dif_conversion.cpp51 dominators, &block, &vn_table](Instruction* phi) { in Process() argument
53 if (!CheckType(phi->type_id())) return; in Process()
59 if (!CheckPhiUsers(phi, &block)) return; in Process()
65 BasicBlock* inc0 = GetIncomingBlock(phi, 0u); in Process()
73 true_value = GetIncomingValue(phi, 0u); in Process()
74 false_value = GetIncomingValue(phi, 1u); in Process()
76 true_value = GetIncomingValue(phi, 1u); in Process()
77 false_value = GetIncomingValue(phi, 0u); in Process()
106 context()->KillNamesAndDecorates(phi); in Process()
107 context()->ReplaceAllUsesWith(phi->result_id(), in Process()
[all …]
/third_party/ffmpeg/libavcodec/
Dsbrdsp.c103 float phi[3][2][2], int lag)
113 phi[2-lag][1][0] = real_sum + x[ 0][0] * x[lag][0] + x[ 0][1] * x[lag][1];
114 phi[2-lag][1][1] = imag_sum + x[ 0][0] * x[lag][1] - x[ 0][1] * x[lag][0];
116 phi[0][0][0] = real_sum + x[38][0] * x[39][0] + x[38][1] * x[39][1];
117 phi[0][0][1] = imag_sum + x[38][0] * x[39][1] - x[38][1] * x[39][0];
123 phi[2][1][0] = real_sum + x[ 0][0] * x[ 0][0] + x[ 0][1] * x[ 0][1];
124 phi[1][0][0] = real_sum + x[38][0] * x[38][0] + x[38][1] * x[38][1];
128 static void sbr_autocorrelate_c(const float x[40][2], float phi[3][2][2])
130 autocorrelate(x, phi, 0);
131 autocorrelate(x, phi, 1);
[all …]
/third_party/mesa3d/src/compiler/nir/tests/
Dopt_if_tests.cpp124 nir_phi_instr *const phi = nir_phi_instr_create(bld.shader); in TEST_F() local
126 nir_phi_instr_add_src(phi, then_block, nir_src_for_ssa(one)); in TEST_F()
128 nir_ssa_dest_init(&phi->instr, &phi->dest, in TEST_F()
131 nir_builder_instr_insert(&bld, &phi->instr); in TEST_F()
146 nir_phi_instr *phi = nir_phi_instr_create(bld.shader); in TEST_F() local
150 nir_ssa_dest_init(&phi->instr, &phi->dest, in TEST_F()
153 nir_phi_instr_add_src(phi, x->parent_instr->block, nir_src_for_ssa(x)); in TEST_F()
155 nir_ssa_def *y = nir_iadd(&bld, &phi->dest.ssa, two); in TEST_F()
157 nir_imul(&bld, &phi->dest.ssa, two), 1); in TEST_F()
159 nir_phi_instr_add_src(phi, nir_cursor_current_block(bld.cursor), nir_src_for_ssa(y)); in TEST_F()
[all …]
/third_party/boost/libs/math/doc/sf/
Dellint_legendre.qbk20 ``__sf_result`` ellint_1(T1 k, T2 phi);
23 ``__sf_result`` ellint_1(T1 k, T2 phi, const ``__Policy``&);
36 ['F([phi], k)] and its complete counterpart ['K(k) = F([pi]/2, k)].
45 ``__sf_result`` ellint_1(T1 k, T2 phi);
48 ``__sf_result`` ellint_1(T1 k, T2 phi, const ``__Policy``&);
50 Returns the incomplete elliptic integral of the first kind ['F([phi], k)]:
54 Requires k[super 2]sin[super 2](phi) < 1, otherwise returns the result of __domain_error.
121 ``__sf_result`` ellint_2(T1 k, T2 phi);
124 ``__sf_result`` ellint_2(T1 k, T2 phi, const ``__Policy``&);
137 ['E([phi], k)] and its complete counterpart ['E(k) = E([pi]/2, k)].
[all …]
/third_party/skia/src/shaders/gradients/
DSkSweepGradient.cpp77 skvm::F32 phi = slope * poly(s, -7.0547382347285747528076171875e-3f, in transformT() local
81 phi = select( xabs < yabs, (1/4.0f) - phi, phi); in transformT()
82 phi = select(coord.x < 0.0f, (1/2.0f) - phi, phi); in transformT()
83 phi = select(coord.y < 0.0f, (1/1.0f) - phi, phi); in transformT()
85 skvm::F32 t = select(is_NaN(phi), p->splat(0.0f) in transformT()
86 , phi); in transformT()

12345678910>>...18