Home
last modified time | relevance | path

Searched refs:fac (Results 1 – 25 of 60) sorted by relevance

123

/third_party/boost/boost/format/
Dparsing.hpp43 char wrap_narrow(const Facet& fac, Ch c, char deflt) { in wrap_narrow() argument
44 return const_or_not(fac).narrow(c, deflt); in wrap_narrow()
48 bool wrap_isdigit(const Facet& fac, Ch c) { in wrap_isdigit() argument
50 return fac.is(std::ctype<Ch>::digit, c); in wrap_isdigit()
52 ignore_unused(fac); in wrap_isdigit()
59 Iter wrap_scan_notdigit(const Facet & fac, Iter beg, Iter end) { in wrap_scan_notdigit() argument
61 for( ; beg!=end && wrap_isdigit(fac, *beg); ++beg) ; in wrap_scan_notdigit()
72 const Facet& fac) in str2int() argument
77 for(it=start; it != last && wrap_isdigit(fac, *it); ++it ) { in str2int()
78 char cur_ch = wrap_narrow(fac, *it, 0); // cant fail. in str2int()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DColorStateTests.cpp256 RGBA8 mix(const RGBA8& col1, const RGBA8& col2, std::array<float, 4> fac) { in mix() argument
257 float r = static_cast<float>(col1.r) * (1.f - fac[0]) + static_cast<float>(col2.r) * fac[0]; in mix()
258 float g = static_cast<float>(col1.g) * (1.f - fac[1]) + static_cast<float>(col2.g) * fac[1]; in mix()
259 float b = static_cast<float>(col1.b) * (1.f - fac[2]) + static_cast<float>(col2.b) * fac[2]; in mix()
260 float a = static_cast<float>(col1.a) * (1.f - fac[3]) + static_cast<float>(col2.a) * fac[3]; in mix()
267 RGBA8 mix(const RGBA8& col1, const RGBA8& col2, const RGBA8& fac) { in mix() argument
269 static_cast<float>(fac.r) / 255.f, in mix()
270 static_cast<float>(fac.g) / 255.f, in mix()
271 static_cast<float>(fac.b) / 255.f, in mix()
272 static_cast<float>(fac.a) / 255.f, in mix()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DColorStateTests.cpp265 RGBA8 mix(const RGBA8& col1, const RGBA8& col2, std::array<float, 4> fac) { in mix() argument
266 float r = static_cast<float>(col1.r) * (1.f - fac[0]) + static_cast<float>(col2.r) * fac[0]; in mix()
267 float g = static_cast<float>(col1.g) * (1.f - fac[1]) + static_cast<float>(col2.g) * fac[1]; in mix()
268 float b = static_cast<float>(col1.b) * (1.f - fac[2]) + static_cast<float>(col2.b) * fac[2]; in mix()
269 float a = static_cast<float>(col1.a) * (1.f - fac[3]) + static_cast<float>(col2.a) * fac[3]; in mix()
276 RGBA8 mix(const RGBA8& col1, const RGBA8& col2, const RGBA8& fac) { in mix() argument
278 static_cast<float>(fac.r) / 255.f, in mix()
279 static_cast<float>(fac.g) / 255.f, in mix()
280 static_cast<float>(fac.b) / 255.f, in mix()
281 static_cast<float>(fac.a) / 255.f, in mix()
[all …]
/third_party/boost/libs/numeric/odeint/doc/
Dcontrolled_stepper_table.qbk32 ['fac = max( 1 / 6 , min( 5 , pow( val , 1 / 4 ) / 0.9 ) ]
36 ['val > 1 : dt[subl new] = dt[subl current] / fac ]
38 ['val < 1 : dt[subl new] = dt[subl current] / max( fac , fac2 ) ]
50 fac = std::max( fac , fac_pred );
51 dt_new = dt / fac;
54 fac = max( fac2 , min( fac1 , pow( err , 0.25 ) / safe ) )
/third_party/boost/libs/log/src/
Dsyslog_backend.cpp74 BOOST_LOG_API facility make_facility(int fac) in make_facility() argument
76 if (BOOST_UNLIKELY((static_cast< unsigned int >(fac) & 7u) != 0u in make_facility()
77 || static_cast< unsigned int >(fac) > (23u * 8u))) in make_facility()
81 return static_cast< facility >(fac); in make_facility()
191 native(syslog::facility const& fac, std::string const& ident) : in native()
192 implementation(convert_facility(fac)), in native()
226 static int convert_facility(syslog::facility const& fac) in convert_facility()
294 std::size_t n = static_cast< unsigned int >(fac) / 8u; in convert_facility()
431 explicit udp_socket_based(syslog::facility const& fac, asio::ip::udp const& protocol) : in udp_socket_based()
432 implementation(fac), in udp_socket_based()
[all …]
Dcode_conversion.cpp43 std::codecvt< LocalCharT, char, std::mbstate_t > const& fac,
50 return fac.in(state, pSrcBegin, pSrcEnd, pSrcBegin, pDstBegin, pDstEnd, pDstBegin);
56 std::codecvt< LocalCharT, char, std::mbstate_t > const& fac,
63 return fac.out(state, pSrcBegin, pSrcEnd, pSrcBegin, pDstBegin, pDstEnd, pDstBegin);
69 …ceCharT* end, std::basic_string< TargetCharT >& converted, std::size_t max_size, FacetT const& fac)
81 fac,
/third_party/boost/boost/dynamic_bitset/
Dconfig.hpp63 #define BOOST_DYNAMIC_BITSET_WIDEN_CHAR(fac, c) \ argument
64 (fac.widen(c))
68 #define BOOST_DYNAMIC_BITSET_WIDEN_CHAR(fac, c) c argument
/third_party/toybox/toys/pending/
Dsyslogd.c103 char *fac = tk, *lvl; in resolve_config() local
108 tk = strchr(fac, '.'); in resolve_config()
114 char *nfac = strchr(fac, ','); in resolve_config()
117 if (*fac == '*') { in resolve_config()
119 if (fac[1]) return -1; in resolve_config()
121 if ((i = logger_lookup(0, fac)) == -1) return -1; in resolve_config()
124 if (nfac) fac = nfac + 1; in resolve_config()
323 int olen = len, fac, lvl; in logmsg() local
342 fac = LOG_FAC(pri); in logmsg()
361 if (!((tf->facility[lvl] & (1 << fac)) || (tf->level[fac] & (1<<lvl)))) { in logmsg()
/third_party/boost/boost/numeric/odeint/stepper/
Drosenbrock4_controller.hpp135 value_type fac = max BOOST_PREVENT_MACRO_SUBSTITUTION ( in try_step() local
139 value_type dt_new = dt / fac; in try_step()
151 fac = max BOOST_PREVENT_MACRO_SUBSTITUTION ( fac , fac_pred ); in try_step()
152 dt_new = dt / fac; in try_step()
Dbulirsch_stoer_dense_out.hpp443 value_type fac; in calc_h_opt() local
445 fac = static_cast<value_type>(1)/facmin; in calc_h_opt()
448 fac = STEPFAC2 / pow BOOST_PREVENT_MACRO_SUBSTITUTION( error / STEPFAC1 , expo ); in calc_h_opt()
449fac = max BOOST_PREVENT_MACRO_SUBSTITUTION( static_cast<value_type>( facmin/STEPFAC4 ) , min BOOST… in calc_h_opt()
451 return h*fac; in calc_h_opt()
540 … void calculate_finite_difference( size_t j , size_t kappa , value_type fac , const DerivIn &dxdt ) in calculate_finite_difference() argument
546 … typename operations_type::template scale_sum1< value_type >( fac ) ); in calculate_finite_difference()
554 … typename operations_type::template scale_sum1< value_type >( fac ) ); in calculate_finite_difference()
564 … sign * fac * boost::math::binomial_coefficient< value_type >( kappa , c ) ) ); in calculate_finite_difference()
569 … typename operations_type::template scale_sum2< value_type , value_type >( 1.0 , sign * fac ) ); in calculate_finite_difference()
Dbulirsch_stoer.hpp421 value_type fac; in calc_h_opt() local
423 fac=1.0/facmin; in calc_h_opt()
426 fac = STEPFAC2 / pow BOOST_PREVENT_MACRO_SUBSTITUTION( error / STEPFAC1 , expo ); in calc_h_opt()
427fac = max BOOST_PREVENT_MACRO_SUBSTITUTION( static_cast<value_type>(facmin/STEPFAC4) , min BOOST_P… in calc_h_opt()
429 return h*fac; in calc_h_opt()
/third_party/boost/libs/log/test/run/
Dform_date_time.cpp195 facet* fac = new facet(); in BOOST_AUTO_TEST_CASE_TEMPLATE() local
196 fac->time_duration_format(formats::default_time_duration_format().c_str()); in BOOST_AUTO_TEST_CASE_TEMPLATE()
197 strm2.imbue(std::locale(strm2.getloc(), fac)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
206 facet* fac = new facet(); in BOOST_AUTO_TEST_CASE_TEMPLATE() local
207 fac->time_duration_format(formats::time_duration_format().c_str()); in BOOST_AUTO_TEST_CASE_TEMPLATE()
208 strm2.imbue(std::locale(strm2.getloc(), fac)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
/third_party/boost/libs/detail/test/
Dtest_utf8_codecvt.cpp258 …std::codecvt<wchar_t, char, std::mbstate_t> const& fac = std::use_facet< std::codecvt<wchar_t, cha… in test_main() local
261 …int res = fac.length(mbs, reinterpret_cast< const char* >(td::utf8_encoding), reinterpret_cast< co… in test_main()
267 …std::codecvt<wchar_t, char, std::mbstate_t> const& fac = std::use_facet< std::codecvt<wchar_t, cha… in test_main() local
273 …int res = fac.length(mbs, reinterpret_cast< const char* >(td::utf8_encoding), reinterpret_cast< co… in test_main()
/third_party/boost/boost/geometry/srs/projections/proj/
Dlsat.hpp125 T fac; in fwd() local
132 fac = lampp + sin(lampp) * half_pi; in fwd()
134 fac = lampp - sin(lampp) * half_pi; in fwd()
141 lamdp = atan(xlam) + fac; in fwd()
178 T lamt, sdsq, s, lamdp, phidp, sppsq, dd, sd, sl, fac, scl, sav, spp; in inv() local
194fac = exp(sqrt(1. + s * s / this->m_proj_parm.xj / this->m_proj_parm.xj) * (xy_y - in inv()
196 phidp = 2. * (atan(fac) - fourth_pi); in inv()
/third_party/flutter/skia/third_party/externals/sdl/src/core/windows/
DSDL_directx.h42 #define MAKE_HRESULT(sev,fac,code) \ argument
43 ((HRESULT)(((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))))
/third_party/ffmpeg/libavcodec/
Daacsbr.c82 float temp1, temp2, fac; in sbr_dequant() local
97 fac = temp1 / (1.0f + temp2); in sbr_dequant()
98 sbr->data[0].env_facs[e][k] = fac; in sbr_dequant()
99 sbr->data[1].env_facs[e][k] = fac * temp2; in sbr_dequant()
106 float fac; in sbr_dequant() local
108 fac = temp1 / (1.0f + temp2); in sbr_dequant()
109 sbr->data[0].noise_facs[e][k] = fac; in sbr_dequant()
110 sbr->data[1].noise_facs[e][k] = fac * temp2; in sbr_dequant()
Dcelp_filters.c51 const float *lagged, int lag, float fac, int n) in ff_celp_circ_addf() argument
55 out[k] = in[k] + fac * lagged[n + k - lag]; in ff_celp_circ_addf()
57 out[k] = in[k] + fac * lagged[ k - lag]; in ff_celp_circ_addf()
Daacsbr_fixed.c163 SoftFloat temp1, temp2, fac; in sbr_dequant() local
182 fac = av_div_sf(temp1, av_add_sf(FLOAT_1, temp2)); in sbr_dequant()
183 sbr->data[0].env_facs[e][k] = fac; in sbr_dequant()
184 sbr->data[1].env_facs[e][k] = av_mul_sf(fac, temp2); in sbr_dequant()
189 SoftFloat temp1, temp2, fac; in sbr_dequant() local
197 fac = av_div_sf(temp1, av_add_sf(FLOAT_1, temp2)); in sbr_dequant()
198 sbr->data[0].noise_facs[e][k] = fac; in sbr_dequant()
199 sbr->data[1].noise_facs[e][k] = av_mul_sf(fac, temp2); in sbr_dequant()
/third_party/boost/boost/geometry/srs/projections/
Dfactory.hpp314 static factory<srs::detail::proj4_parameters, T, projections::parameters<T> > const fac; in create_new() local
315 return fac.create_new(params, parameters); in create_new()
323 static factory<srs::dpar::parameters<T>, T, projections::parameters<T> > const fac; in create_new() local
324 return fac.create_new(params, parameters); in create_new()
/third_party/gstreamer/gstplugins_bad/sys/decklink/linux/
DLinuxCOM.h68 #define MAKE_HRESULT(sev,fac,code) ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<… argument
/third_party/boost/libs/random/test/
Dstatistic_tests.hpp39 inline T fac(int k) in fac() function
55 return result / fac<T>(n-k); in binomial()
65 return sum / fac<T>(m); in stirling2()
220 return 1.0/fac<double>(classes()); in probability()
222 return static_cast<double>(r+1)/fac<double>(r+2); in probability()
348 return 1-fac<double>(d)/ in probability()
352 return fac<double>(d)/ in probability()
365 : equidistribution_experiment(fac<int>(t)), t(t) in permutation_experiment()
/third_party/boost/libs/optional/doc/
D16_in_place_factories.qbk86 W ( TypedInPlaceFactory2 const& fac ) { fac.construct(&wrapped_) ; }
126 W ( InPlaceFactory const& fac ) { fac.template <X>construct(&wrapped_) ; }
/third_party/boost/boost/date_time/
Ddate_parsing.hpp261 std::ctype<wchar_t> const& fac = std::use_facet<std::ctype<wchar_t> >(loc); in from_stream_type() local
263 ss << fac.narrow(*beg++, 'X'); // 'X' will cause exception to be thrown in from_stream_type()
291 std::ctype<wchar_t> const& fac = std::use_facet<std::ctype<wchar_t> >(loc); in from_stream_type() local
293 ss << fac.narrow(*wsb++, 'X'); // 'X' will cause exception to be thrown in from_stream_type()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLDirectCompositionTest.cpp66 void *fac = nullptr; in testSetUp() local
67 hr = mRoHelper.GetActivationFactory(act, __uuidof(IActivationFactory), &fac); in testSetUp()
72 compositorFactory.Attach((IActivationFactory *)fac); in testSetUp()
/third_party/ffmpeg/libavfilter/
Dvf_colorspace.c301 double mai[3][3], fac[3][3], tmp[3][3]; in fill_whitepoint_conv_table() local
311 fac[0][0] = rd / rs; in fill_whitepoint_conv_table()
312 fac[1][1] = gd / gs; in fill_whitepoint_conv_table()
313 fac[2][2] = bd / bs; in fill_whitepoint_conv_table()
314 fac[0][1] = fac[0][2] = fac[1][0] = fac[1][2] = fac[2][0] = fac[2][1] = 0.0; in fill_whitepoint_conv_table()
315 ff_matrix_mul_3x3(tmp, ma, fac); in fill_whitepoint_conv_table()

123