Home
last modified time | relevance | path

Searched refs:sqr (Results 1 – 25 of 69) sorted by relevance

123

/third_party/boost/libs/spirit/classic/phoenix/test/
Dmore_expressions_tests.cpp31 function<sqr_> sqr; variable
65 BOOST_TEST((sqr(arg1) + arg2 - arg3)(i100, i50, i20) == ((i100*i100) + i50 - i20)); in main()
69 BOOST_TEST((sqr(sqr(arg1)))(i100) == (i100*i100*i100*i100)); in main()
79 BOOST_TEST((sqr(sqr(sqr(sqr(arg1)))))(d10) == 1e16); in main()
80 BOOST_TEST((sqr(sqr(arg1)) / arg1 / arg1)(d5) == 25); in main()
Dfunctors_tests.cpp41 function<sqr_> sqr; variable
82 BOOST_TEST(sqr(arg1)(i5) == (i5*i5)); in main()
86 BOOST_TEST((sqr(arg1) + 5)(i5) == ((i5*i5)+5)); in main()
/third_party/boost/boost/geometry/formulas/
Ddifferential_quantities.hpp94 CT const ep2 = e2 / math::sqr(one_minus_f); in apply()
116 CT const cos_alp0_sqr = c1 - math::sqr(sin_alp0); in apply()
122 CT const dn1 = math::sqrt(c1 + ep2 * math::sqr(sin_bet1)); in apply()
123 CT const dn2 = math::sqrt(c1 + ep2 * math::sqr(sin_bet2)); in apply()
184 … CT const sin_4sig1 = c2 * sin_2sig1 * (math::sqr(cos_sig1) - math::sqr(sin_sig1)); // sin(4sig1) in J12_f()
185 … CT const sin_4sig2 = c2 * sin_2sig2 * (math::sqr(cos_sig2) - math::sqr(sin_sig2)); // sin(4sig2) in J12_f()
212 CT const cos_alp0_quad = math::sqr(cos_alp0_sqr); in J12_f()
213 CT const sin3_2sig1 = math::sqr(sin_2sig1) * sin_2sig1; in J12_f()
214 CT const sin3_2sig2 = math::sqr(sin_2sig2) * sin_2sig2; in J12_f()
270 … CT const sin_4sig1 = c2 * sin_2sig1 * (math::sqr(cos_sig1) - math::sqr(sin_sig1)); // sin(4sig1) in J12_ep_sqr()
[all …]
Dvincenty_inverse.hpp110 CT const temp_den_U1 = math::sqrt(c1 + math::sqr(tan_U1)); in apply()
111 CT const temp_den_U2 = math::sqrt(c1 + math::sqr(tan_U2)); in apply()
145 …sin_sigma = math::sqrt(math::sqr(cos_U2 * sin_lambda) + math::sqr(cos_U1 * sin_U2 - sin_U1 * cos_U… in apply()
148 cos2_alpha = c1 - math::sqr(sin_alpha); in apply()
150 cos2_2sigma_m = math::sqr(cos_2sigma_m); in apply()
180 CT sqr_u = cos2_alpha * ( math::sqr(radius_a / radius_b) - c1 ); // above (1) in apply()
185 CT const sin2_sigma = math::sqr(sin_sigma); in apply()
Dthomas_inverse.hpp104 CT const sin2_theta_m = math::sqr(sin_theta_m); in apply()
105 CT const cos2_theta_m = math::sqr(cos_theta_m); in apply()
106 CT const sin2_d_theta_m = math::sqr(sin_d_theta_m); in apply()
107 CT const cos2_d_theta_m = math::sqr(cos_d_theta_m); in apply()
109 CT const sin2_d_lambda_m = math::sqr(sin_d_lambda_m); in apply()
131 CT const D = c4 * math::sqr(T); in apply()
137 CT const f_sqr = math::sqr(f); in apply()
Dkarney_inverse.hpp151 CT const ep2 = e2 / math::sqr(one_minus_f); in apply()
236 CT const dn1 = sqrt(c1 + ep2 * math::sqr(sin_beta1)); in apply()
237 CT const dn2 = sqrt(c1 + ep2 * math::sqr(sin_beta2)); in apply()
333 m12x = math::sqr(dnm) * b * sin(sigma12 / dnm); in apply()
620 CT sin_beta_m2 = math::sqr(sin_beta1 + sin_beta2); in newton_start()
622 sin_beta_m2 /= sin_beta_m2 + math::sqr(cos_beta1 + cos_beta2); in newton_start()
638 sin_beta12 + cos_beta2 * sin_beta1 * math::sqr(sin_omega12) / (c1 + cos_omega12) : in newton_start()
639 sin_beta12a - cos_beta2 * sin_beta1 * math::sqr(sin_omega12) / (c1 - cos_omega12); in newton_start()
648 (cos_omega12 >= c0 ? math::sqr(sin_omega12) / in newton_start()
659 math::sqr(cos_beta1)) in newton_start()
[all …]
Dvertex_longitude.hpp124 CT const cos_alp1 = math::sqrt(c1 - math::sqr(sin_alp1)); in apply()
126 CT const norm = math::sqrt(math::sqr(cos_alp1) + math::sqr(sin_alp1 * sin_bet1)); in apply()
132 CT const cos_alp0 = math::sqrt(c1 - math::sqr(sin_alp0)); in apply()
133 CT const cos_alp2 = math::sqrt(c1 - math::sqr(sin_alp2)); in apply()
139 CT const sin_sig1 = math::sqrt(c1 - math::sqr(cos_sig1)); in apply()
142 CT const sin_sig2 = math::sqrt(c1 - math::sqr(cos_sig2)); in apply()
167 CT const k2 = math::sqr(ep * cos_alp0); in apply()
Dgeographic.hpp51 calc_t const N = c1 / math::sqrt(c1 - e_sqr * math::sqr(sin_lat)); in geo_to_cart3d()
78 calc_t const N = c1 / math::sqrt(c1 - e_sqr * math::sqr(sin_lat)); in geo_to_cart3d()
107 calc_t const xy_l = math::sqrt(math::sqr(x) + math::sqr(y)); in cart3d_to_geo()
190 coord_t const b_sqr = math::sqr(formula::unit_spheroid_b<coord_t>(spheroid)); in projected_to_surface()
230 coord_t const b_sqr = math::sqr(formula::unit_spheroid_b<coord_t>(spheroid)); in projected_to_surface()
236 coord_t const delta = math::sqr(param_b) - c4 * param_a*param_c; in projected_to_surface()
353 coord_t dot_n1_n2_sqr = math::sqr(dot_n1_n2); in planes_spheroid_intersection()
Dvincenty_direct.hpp96 CT const sin_alpha_sqr = math::sqr(sin_alpha); in apply()
123 CT const sin_sigma_sqr = math::sqr(sin_sigma); in apply()
125 cos_2sigma_m_sqr = math::sqr(cos_2sigma_m); in apply()
143 …one_min_f * math::sqrt(sin_alpha_sqr + math::sqr(sin_U1 * sin_sigma - cos_U1 * cos_sigma * cos_azi… in apply()
Dgnomonic_spheroid.hpp83 CT const rho = math::sqrt(math::sqr(x) + math::sqr(y)); // use hypot? in inverse()
100 CT const ds = drho * math::sqr(M); // drho/ds = 1/M^2 in inverse()
Dandoyer_inverse.hpp103 CT const K = math::sqr(sin_lat1-sin_lat2); in apply()
104 CT const L = math::sqr(sin_lat1+sin_lat2); in apply()
185 U = (f/ c2)*math::sqr(cos_lat1)*sin_2A; in apply()
203 V = (f/ c2)*math::sqr(cos_lat2)*sin_2B; in apply()
Dauthalic_radius_sqr.hpp43 return math::sqr<ResultType>(get_radius<0>(geometry)); in apply()
52 ResultType const a2 = math::sqr<ResultType>(get_radius<0>(geometry)); in apply()
Dkarney_direct.hpp102 CT const ep2 = e2 / math::sqr(one_minus_f); in apply()
120 CT const k2 = math::sqr(cos_alpha0) * ep2; in apply()
246 CT const dn1 = math::sqrt(c1 + ep2 * math::sqr(sin_beta1)); in apply()
247 CT const dn2 = math::sqrt(c1 + k2 * math::sqr(sin_sigma2)); in apply()
Dthomas_direct.hpp108 CT const C2 = f * (c1 - math::sqr(M)) / c4; // lower-case c2 in the technical report in apply()
147 X = math::sqr(C2) * sin_d * cos_d * (2 * math::sqr(V) - c1); in apply()
/third_party/ffmpeg/libavfilter/
Daf_acrusher.c58 double sqr; member
125 const double sqr = s->sqr; in bitreduction() local
169 y = sqr * log(fabs(in)) + sqr * sqr; in bitreduction()
174 k = in / fabs(in) * exp(k / sqr - sqr); in bitreduction()
176 double x = exp(k / sqr - sqr); in bitreduction()
177 k = FFSIGN(in) * (x + (exp((k + 1) / sqr - sqr) - x) * in bitreduction()
180 double x = exp(k / sqr - sqr); in bitreduction()
181 k = in / fabs(in) * (x - (x - exp((k - 1) / sqr - sqr)) * in bitreduction()
311 s->sqr = sqrt(s->coeff / 2); in config_input()
/third_party/openssl/crypto/modes/asm/
Dghash-sparcv9.pl358 ($Hhl,$Hlo,$Hhi,$Xlo,$Xhi,$xE1,$sqr, $C0,$C1,$C2,$C3,$V)=
421 sll $C0,3,$sqr
422 srlx $V,$sqr,$sqr ! ·0xE0 [implicit &(7<<3)]
423 xor $C0,$sqr,$sqr
424 sllx $sqr,57,$sqr ! ($C0·0xE1)<<1<<56 [implicit &0x7f]
428 xor $sqr,$Xlo,$Xlo ! real destination is $C1
502 sll $C0,3,$sqr
503 srlx $V,$sqr,$sqr ! ·0xE0 [implicit &(7<<3)]
504 xor $C0,$sqr,$sqr
505 sllx $sqr,57,$sqr ! ($C0·0xE1)<<1<<56 [implicit &0x7f]
[all …]
/third_party/boost/libs/units/example/
Dmeasurement.hpp30 Y sqr(Y val) in sqr() function
35 using sqr_namespace::sqr;
130 uncertainty_ = std::sqrt(sqr(uncertainty_)+sqr(source.uncertainty_)); in operator +=()
142 uncertainty_ = std::sqrt(sqr(uncertainty_)+sqr(source.uncertainty_)); in operator -=()
155 std::sqrt(sqr(uncertainty_/value_)+ in operator *=()
156 sqr(source.uncertainty_/source.value_)); in operator *=()
169 std::sqrt(sqr(uncertainty_/value_)+ in operator /=()
170 sqr(source.uncertainty_/source.value_)); in operator /=()
/third_party/boost/libs/phoenix/test/bind/
Dbind_function_object_tests_phx2.cpp27 struct sqr struct
94 BOOST_TEST(bind(sqr(), arg1)(i5) == (i5*i5)); in main()
98 BOOST_TEST((bind(sqr(), arg1) + 5)(i5) == ((i5*i5)+5)); in main()
103 BOOST_TEST(bind(sqr(), arg1)(ic5) == (ic5*ic5)); in main()
106 sqr s; in main()
Dbind_function_object_tests.cpp30 struct sqr struct
119 BOOST_TEST(bind(sqr(), arg1)(i5) == (i5*i5)); in main()
123 BOOST_TEST((bind(sqr(), arg1) + 5)(i5) == ((i5*i5)+5)); in main()
128 BOOST_TEST(bind(sqr(), arg1)(ic5) == (ic5*ic5)); in main()
131 sqr s; in main()
/third_party/boost/libs/phoenix/test/function/
Dfunction_tests_phx2.cpp44 function<sqr_impl> sqr; variable
104 BOOST_TEST(sqr(arg1)(i5) == (i5*i5)); in main()
108 BOOST_TEST((sqr(arg1) + 5)(i5) == ((i5*i5)+5)); in main()
113 BOOST_TEST(sqr(arg1)(ic5) == (ic5*ic5)); in main()
Dfunction_tests.cpp49 boost::phoenix::function<sqr_impl> sqr; variable
125 BOOST_TEST(sqr(arg1)(i5) == (i5*i5)); in main()
129 BOOST_TEST((sqr(arg1) + 5)(i5) == ((i5*i5)+5)); in main()
137 BOOST_TEST(sqr(arg1)(ic5) == (ic5*ic5)); in main()
/third_party/openssl/crypto/bn/asm/
Dx86_64-gcc.c104 # undef sqr
105 # define sqr(r0,r1,a) \ macro
176 sqr(r[0], r[1], a[0]); in bn_sqr_words()
177 sqr(r[2], r[3], a[1]); in bn_sqr_words()
178 sqr(r[4], r[5], a[2]); in bn_sqr_words()
179 sqr(r[6], r[7], a[3]); in bn_sqr_words()
185 sqr(r[0], r[1], a[0]); in bn_sqr_words()
188 sqr(r[2], r[3], a[1]); in bn_sqr_words()
191 sqr(r[4], r[5], a[2]); in bn_sqr_words()
/third_party/boost/libs/geometry/doc/other/maxima/
Dgeod.mac63 CT eps2 = math::sqr(eps);
96 CT const eps2 = math::sqr(eps);
147 CT eps2 = math::sqr(eps);
177 CT const eps2 = math::sqr(eps);
196 CT const eps2 = math::sqr(eps);
215 const CT n2 = math::sqr(n);
/third_party/boost/boost/math/special_functions/
Dhypergeometric_1F1.hpp98 T sqr = 4 * a * z + b * b - 2 * b * z + z * z; in hypergeometric_1F1_divergent_fallback() local
99 T iterations_to_convergence = sqr > 0 ? T(0.5f * (-sqrt(sqr) - b + z)) : T(-a - b); in hypergeometric_1F1_divergent_fallback()
213 T sqr = 4 * a * z + b * b - 2 * b * z + z * z; in is_convergent_negative_z_series() local
214 T iterations_to_convergence = sqr > 0 ? T(0.5f * (-sqrt(sqr) - b + z)) : T(-a + b); in is_convergent_negative_z_series()
216 iterations_to_convergence = 0.5f * (sqrt(sqr) - b + z); in is_convergent_negative_z_series()
/third_party/boost/boost/random/detail/
Dpolynomial.hpp179 static digit_t sqr(digit_t val) { in sqr() function in boost::random::detail::polynomial_ops
190 static void sqr(digit_t * val, std::size_t size) in sqr() function in boost::random::detail::polynomial_ops
196 val[(size - i - 1) * 2] = sqr(x & mask); in sqr()
197 val[(size - i - 1) * 2 + 1] = sqr(x >> bits/2); in sqr()
267 sqr(out, n); in mod_pow_x()

123