/third_party/lwip/src/core/ |
D | inet_chksum.c | 82 u32_t acc; in lwip_standard_chksum() local 86 acc = 0; in lwip_standard_chksum() 97 acc += src; in lwip_standard_chksum() 103 acc += src; in lwip_standard_chksum() 106 acc = (acc >> 16) + (acc & 0x0000ffffUL); in lwip_standard_chksum() 107 if ((acc & 0xffff0000UL) != 0) { in lwip_standard_chksum() 108 acc = (acc >> 16) + (acc & 0x0000ffffUL); in lwip_standard_chksum() 113 return lwip_htons((u16_t)acc); in lwip_standard_chksum() 260 inet_cksum_pseudo_base(struct pbuf *p, u8_t proto, u16_t proto_len, u32_t acc) in inet_cksum_pseudo_base() argument 269 acc += LWIP_CHKSUM(q->payload, q->len); in inet_cksum_pseudo_base() [all …]
|
/third_party/openssl/crypto/bn/ |
D | bn_nist.c | 363 NIST_INT64 acc; /* accumulator */ in BN_nist_mod_192() local 367 acc = rp[0]; in BN_nist_mod_192() 368 acc += bp[3 * 2 - 6]; in BN_nist_mod_192() 369 acc += bp[5 * 2 - 6]; in BN_nist_mod_192() 370 rp[0] = (unsigned int)acc; in BN_nist_mod_192() 371 acc >>= 32; in BN_nist_mod_192() 373 acc += rp[1]; in BN_nist_mod_192() 374 acc += bp[3 * 2 - 5]; in BN_nist_mod_192() 375 acc += bp[5 * 2 - 5]; in BN_nist_mod_192() 376 rp[1] = (unsigned int)acc; in BN_nist_mod_192() [all …]
|
/third_party/boost/libs/accumulators/test/ |
D | tail.cpp | 38 …t<int, stats<tag::tail_weights<right>, tag::tail_variate<int, tag::covariate1, right> >, int > acc( in test_right_tail() local 42 acc(010, weight = 2, covariate1 = 3); in test_right_tail() 43 check_tail(tail(acc), "\10"); in test_right_tail() 44 check_tail(tail_variate(acc), "\3"); in test_right_tail() 45 check_tail(tail_weights(acc), "\2"); in test_right_tail() 47 acc(020, weight = 7, covariate1 = 1); in test_right_tail() 48 check_tail(tail(acc), "\20\10"); in test_right_tail() 49 check_tail(tail_variate(acc), "\1\3"); in test_right_tail() 50 check_tail(tail_weights(acc), "\7\2"); in test_right_tail() 52 acc(014, weight = 6, covariate1 = 4); in test_right_tail() [all …]
|
D | droppable.cpp | 27 accumulator_set<int, stats<droppable<tag::mean> > > acc, test_acc(sample = 0); in test_stat() local 29 acc(1); in test_stat() 30 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_stat() 31 BOOST_CHECK_EQUAL(1u, count(acc)); in test_stat() 32 BOOST_CHECK_EQUAL(1, sum(acc)); in test_stat() 34 acc(0); in test_stat() 35 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_stat() 36 BOOST_CHECK_EQUAL(2u, count(acc)); in test_stat() 37 BOOST_CHECK_EQUAL(1, sum(acc)); in test_stat() 39 acc.drop<tag::mean>(); in test_stat() [all …]
|
D | external_accumulator.cpp | 26 accumulator_set<int, stats<tag::mean, tag::external<tag::sum, my::tag::sum_acc> > > acc; in test_stat() local 29 acc(1); in test_stat() 31 BOOST_CHECK_CLOSE(1., mean(acc, my::sum_acc = sum_acc), 1e-5); in test_stat() 32 BOOST_CHECK_EQUAL(1u, count(acc)); in test_stat() 35 acc(0); in test_stat() 37 BOOST_CHECK_CLOSE(0.5, mean(acc, my::sum_acc = sum_acc), 1e-5); in test_stat() 38 BOOST_CHECK_EQUAL(2u, count(acc)); in test_stat() 39 BOOST_CHECK_EQUAL(1, sum(acc, my::sum_acc = sum_acc)); in test_stat() 41 acc(2); in test_stat() 43 BOOST_CHECK_CLOSE(1., mean(acc, my::sum_acc = sum_acc), 1e-5); in test_stat() [all …]
|
D | rolling_mean.cpp | 34 test_rolling_mean_test_impl(accumulator_set_type& acc) in test_rolling_mean_test_impl() argument 36 acc(1); in test_rolling_mean_test_impl() 37 BOOST_CHECK_CLOSE(1., rolling_mean(acc), 1e-5); in test_rolling_mean_test_impl() 39 acc(2); in test_rolling_mean_test_impl() 40 BOOST_CHECK_CLOSE(1.5, rolling_mean(acc), 1e-5); in test_rolling_mean_test_impl() 42 acc(3); in test_rolling_mean_test_impl() 43 BOOST_CHECK_CLOSE(2., rolling_mean(acc), 1e-5); in test_rolling_mean_test_impl() 45 acc(4); in test_rolling_mean_test_impl() 46 BOOST_CHECK_CLOSE(2.5, rolling_mean(acc), 1e-5); in test_rolling_mean_test_impl() 48 acc(5); in test_rolling_mean_test_impl() [all …]
|
D | rolling_count.cpp | 23 accumulator_set<int, stats<tag::rolling_count> > acc(tag::rolling_window::window_size = 3); in test_stat() local 25 BOOST_CHECK_EQUAL(0u, rolling_count(acc)); in test_stat() 27 acc(1); in test_stat() 28 BOOST_CHECK_EQUAL(1u, rolling_count(acc)); in test_stat() 30 acc(1); in test_stat() 31 BOOST_CHECK_EQUAL(2u, rolling_count(acc)); in test_stat() 33 acc(1); in test_stat() 34 BOOST_CHECK_EQUAL(3u, rolling_count(acc)); in test_stat() 36 acc(1); in test_stat() 37 BOOST_CHECK_EQUAL(3u, rolling_count(acc)); in test_stat() [all …]
|
D | sum.cpp | 25 …t<int, stats<tag::sum, tag::sum_of_weights, tag::sum_of_variates<int, tag::covariate1> >, int> acc; in test_stat() local 27 acc(1, weight = 2, covariate1 = 3); in test_stat() 28 BOOST_CHECK_EQUAL(2, sum(acc)); in test_stat() 29 BOOST_CHECK_EQUAL(2, sum_of_weights(acc)); in test_stat() 30 BOOST_CHECK_EQUAL(3, sum_of_variates(acc)); in test_stat() 32 acc(2, weight = 4, covariate1 = 6); in test_stat() 33 BOOST_CHECK_EQUAL(10, sum(acc)); in test_stat() 34 BOOST_CHECK_EQUAL(6, sum_of_weights(acc)); in test_stat() 35 BOOST_CHECK_EQUAL(9, sum_of_variates(acc)); in test_stat() 37 acc(3, weight = 6, covariate1 = 9); in test_stat() [all …]
|
D | rolling_sum.cpp | 23 accumulator_set<int, stats<tag::rolling_sum> > acc(tag::rolling_window::window_size = 3); in test_stat() local 25 BOOST_CHECK_EQUAL(0, rolling_sum(acc)); in test_stat() 27 acc(1); in test_stat() 28 BOOST_CHECK_EQUAL(1, rolling_sum(acc)); in test_stat() 30 acc(2); in test_stat() 31 BOOST_CHECK_EQUAL(3, rolling_sum(acc)); in test_stat() 33 acc(3); in test_stat() 34 BOOST_CHECK_EQUAL(6, rolling_sum(acc)); in test_stat() 36 acc(4); in test_stat() 37 BOOST_CHECK_EQUAL(9, rolling_sum(acc)); in test_stat() [all …]
|
D | count.cpp | 23 accumulator_set<int, stats<tag::count> > acc; in test_stat() local 25 acc(1); in test_stat() 26 BOOST_CHECK_EQUAL(1u, count(acc)); in test_stat() 28 acc(1); in test_stat() 29 BOOST_CHECK_EQUAL(2u, count(acc)); in test_stat() 31 acc(1); in test_stat() 32 BOOST_CHECK_EQUAL(3u, count(acc)); in test_stat() 34 acc(1); in test_stat() 35 BOOST_CHECK_EQUAL(4u, count(acc)); in test_stat() 37 acc(1); in test_stat() [all …]
|
D | rolling_variance.cpp | 58 void rolling_variance_test_impl(accumulator_set_type& acc) in rolling_variance_test_impl() argument 61 acc(1.2); in rolling_variance_test_impl() 62 BOOST_CHECK_CLOSE(rolling_variance(acc),0.0,1e-10); in rolling_variance_test_impl() 65 acc(2.3); in rolling_variance_test_impl() 66 BOOST_CHECK_CLOSE(rolling_variance(acc),0.605,1e-10); in rolling_variance_test_impl() 69 acc(3.4); in rolling_variance_test_impl() 70 BOOST_CHECK_CLOSE(rolling_variance(acc),1.21,1e-10); in rolling_variance_test_impl() 73 acc(4.5); in rolling_variance_test_impl() 74 BOOST_CHECK_CLOSE(rolling_variance(acc),2.01666666666667,1e-10); in rolling_variance_test_impl() 77 acc(0.4); in rolling_variance_test_impl() [all …]
|
D | vector.cpp | 73 accumulator_set<sample_t, stats<tag::sum> > acc(sample = sample_t(3,0)); in test_stat() local 75 acc(sample_t(3,1)); in test_stat() 76 acc(sample_t(3,2)); in test_stat() 77 acc(sample_t(3,3)); in test_stat() 79 is_equal(sample_t(3,6), sum(acc)); in test_stat() 85 accumulator_set<sample_t, stats<tag::min, tag::max> > acc(sample = sample_t(3,0)); in test_stat() local 87 acc(sample_t(s1,s1+3)); in test_stat() 88 acc(sample_t(s2,s2+3)); in test_stat() 89 acc(sample_t(s3,s3+3)); in test_stat() 91 is_equal(sample_t(min_res,min_res+3), (min)(acc)); in test_stat() [all …]
|
D | valarray.cpp | 73 accumulator_set<sample_t, stats<tag::sum> > acc(sample = sample_t(0,3)); in test_stat() local 75 acc(sample_t(1,3)); in test_stat() 76 acc(sample_t(2,3)); in test_stat() 77 acc(sample_t(3,3)); in test_stat() 79 is_equal(sample_t(6,3), sum(acc)); in test_stat() 85 accumulator_set<sample_t, stats<tag::min, tag::max> > acc(sample = sample_t(0,3)); in test_stat() local 87 acc(sample_t(s1,3)); in test_stat() 88 acc(sample_t(s2,3)); in test_stat() 89 acc(sample_t(s3,3)); in test_stat() 91 is_equal(sample_t(min_res,3), (min)(acc)); in test_stat() [all …]
|
D | sum_kahan.cpp | 24 accumulator_set<float, stats<tag::sum_kahan> > acc; in test_sum_kahan() local 26 BOOST_CHECK_EQUAL(0.0f, sum_kahan(acc)); in test_sum_kahan() 29 acc(1e-6f); in test_sum_kahan() 32 BOOST_CHECK_EQUAL(1.0f, sum_kahan(acc)); in test_sum_kahan() 40 accumulator_set<float, stats<tag::sum_of_weights_kahan>, float > acc; in test_sum_of_weights_kahan() local 42 BOOST_CHECK_EQUAL(0.0f, sum_of_weights_kahan(acc)); in test_sum_of_weights_kahan() 45 acc(0, weight = 1e-6f); in test_sum_of_weights_kahan() 48 BOOST_CHECK_EQUAL(1.0f, sum_of_weights_kahan(acc)); in test_sum_of_weights_kahan() 61 acc; in test_sum_of_variates_kahan() local 63 BOOST_CHECK_EQUAL(0.0f, sum_of_variates_kahan(acc)); in test_sum_of_variates_kahan() [all …]
|
D | rolling_moment.cpp | 33 …accumulator_set<int, stats<tag::rolling_moment<2> > > acc(tag::rolling_moment<2>::window_size = 3); in test_rolling_second_moment() local 35 acc(2); in test_rolling_second_moment() 37 BOOST_CHECK_CLOSE(rolling_moment<2>(acc), 4.0/1 ,1e-5); in test_rolling_second_moment() 39 acc(4); in test_rolling_second_moment() 41 BOOST_CHECK_CLOSE(rolling_moment<2>(acc), (4.0 + 16.0)/2, 1e-5); in test_rolling_second_moment() 43 acc(5); in test_rolling_second_moment() 45 BOOST_CHECK_CLOSE(rolling_moment<2>(acc), (4.0 + 16.0 + 25.0)/3, 1e-5); in test_rolling_second_moment() 47 acc(6); in test_rolling_second_moment() 49 BOOST_CHECK_CLOSE(rolling_moment<2>(acc), (16.0 + 25.0 + 36.0)/3, 1e-5); in test_rolling_second_moment() 51 assert_is_double(rolling_moment<2>(acc)); in test_rolling_second_moment() [all …]
|
D | max.cpp | 23 accumulator_set<int, stats<tag::max> > acc; in test_stat() local 25 acc(1); in test_stat() 26 BOOST_CHECK_EQUAL(1, (max)(acc)); in test_stat() 28 acc(0); in test_stat() 29 BOOST_CHECK_EQUAL(1, (max)(acc)); in test_stat() 31 acc(2); in test_stat() 32 BOOST_CHECK_EQUAL(2, (max)(acc)); in test_stat() 42 accumulator_set<int, stats<tag::max> > acc; in test_persistency() local 43 acc(1); in test_persistency() 44 acc(0); in test_persistency() [all …]
|
/third_party/cmsis/CMSIS/DSP/Source/FilteringFunctions/ |
D | arm_biquad_cascade_df1_q31.c | 75 int64_t acc; in arm_biquad_cascade_df1_q31() local 121 acc = vrmlaldavhq(b0Coeffs, inVec0); in arm_biquad_cascade_df1_q31() 122 acc = vrmlaldavhaq(acc, a0Coeffs, stateVec); in arm_biquad_cascade_df1_q31() 123 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31() 124 out = (q31_t) ((acc >> 32) & 0xffffffff); in arm_biquad_cascade_df1_q31() 127 acc = vrmlaldavhq(b1Coeffs, inVec0); in arm_biquad_cascade_df1_q31() 128 acc = vrmlaldavhaq(acc, a1Coeffs, stateVec); in arm_biquad_cascade_df1_q31() 130 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31() 131 out1 = (q31_t) ((acc >> 32) & 0xffffffff); in arm_biquad_cascade_df1_q31() 157 acc = vrmlaldavhq(b0Coeffs, inVec0); in arm_biquad_cascade_df1_q31() [all …]
|
D | arm_biquad_cascade_df1_q15.c | 75 int64_t acc; in arm_biquad_cascade_df1_q15() local 120 acc = vmlaldavq(bCoeffs0, inVec0); in arm_biquad_cascade_df1_q15() 121 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15() 122 out1 = (q31_t) ((acc >> 32) & 0xffffffff); in arm_biquad_cascade_df1_q15() 125 acc = vmlaldavq(bCoeffs1, inVec0); in arm_biquad_cascade_df1_q15() 126 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15() 127 out = (q31_t) ((acc >> 32) & 0xffffffff); in arm_biquad_cascade_df1_q15() 133 acc = vmlaldavq(bCoeffs2, inVec0); in arm_biquad_cascade_df1_q15() 134 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15() 135 out1 = (q31_t) ((acc >> 32) & 0xffffffff); in arm_biquad_cascade_df1_q15() [all …]
|
D | arm_biquad_cascade_df1_32x64_q31.c | 188 q63_t acc; /* accumulator */ in arm_biquad_cas_df1_32x64_q31_scalar() local 225 acc = (q63_t) Xn * b0; in arm_biquad_cas_df1_32x64_q31_scalar() 227 acc += (q63_t) Xn1 * b1; in arm_biquad_cas_df1_32x64_q31_scalar() 229 acc += (q63_t) Xn2 * b2; in arm_biquad_cas_df1_32x64_q31_scalar() 231 acc += mult32x64(Yn1, a1); in arm_biquad_cas_df1_32x64_q31_scalar() 233 acc += mult32x64(Yn2, a2); in arm_biquad_cas_df1_32x64_q31_scalar() 246 Yn1 = acc << shift; in arm_biquad_cas_df1_32x64_q31_scalar() 249 acc_l = acc & 0xffffffff; in arm_biquad_cas_df1_32x64_q31_scalar() 252 acc_h = (acc >> 32) & 0xffffffff; in arm_biquad_cas_df1_32x64_q31_scalar() 300 q63_t acc; in arm_biquad_cas_df1_32x64_q31() local [all …]
|
D | arm_biquad_cascade_df1_fast_q31.c | 72 q31_t acc = 0; /* Accumulator */ in arm_biquad_cascade_df1_fast_q31() local 113 mult_32x32_keep32_R(acc, b1, Xn1); in arm_biquad_cascade_df1_fast_q31() 116 multAcc_32x32_keep32_R(acc, b0, Xn); in arm_biquad_cascade_df1_fast_q31() 119 multAcc_32x32_keep32_R(acc, b2, Xn2); in arm_biquad_cascade_df1_fast_q31() 122 multAcc_32x32_keep32_R(acc, a1, Yn1); in arm_biquad_cascade_df1_fast_q31() 125 multAcc_32x32_keep32_R(acc, a2, Yn2); in arm_biquad_cascade_df1_fast_q31() 128 Yn2 = acc << shift; in arm_biquad_cascade_df1_fast_q31() 139 mult_32x32_keep32_R(acc, b0, Xn2); in arm_biquad_cascade_df1_fast_q31() 142 multAcc_32x32_keep32_R(acc, b1, Xn); in arm_biquad_cascade_df1_fast_q31() 145 multAcc_32x32_keep32_R(acc, b2, Xn1); in arm_biquad_cascade_df1_fast_q31() [all …]
|
/third_party/openssl/crypto/ec/asm/ |
D | ecp_nistz256-sparcv9.pl | 98 my @acc=map("%l$_",(0..7)); 203 srlx $t0,32,@acc[1] ! extract high parts 204 srlx $t1,32,@acc[2] 205 srlx $t2,32,@acc[3] 206 srlx $t3,32,@acc[4] 207 srlx $t4,32,@acc[5] 208 srlx $t5,32,@acc[6] 209 srlx $t6,32,@acc[7] 210 srlx $t7,32,@acc[0] ! "@acc[8]" 215 addcc @acc[1],$t1,@acc[1] ! accumulate high parts [all …]
|
D | ecp_nistz256-armv4.pl | 550 my @acc=map("r$_",(3..11)); 586 ldmia $a_ptr,{@acc[1]-@acc[8]} 588 umull @acc[0],$t3,@acc[1],$bj @ r[0]=a[0]*b[0] 589 stmdb sp!,{$acc[1]-@acc[8]} @ copy a[0-7] to stack, so 593 umull @acc[1],$t0,@acc[2],$bj @ r[1]=a[1]*b[0] 594 umull @acc[2],$t1,@acc[3],$bj 595 adds @acc[1],@acc[1],$t3 @ accumulate high part of mult 596 umull @acc[3],$t2,@acc[4],$bj 597 adcs @acc[2],@acc[2],$t0 598 umull @acc[4],$t3,@acc[5],$bj [all …]
|
/third_party/boost/libs/accumulators/example/ |
D | main.cpp | 48 > acc; in example1() local 54 acc = std::for_each(data.begin(), data.end(), acc); in example1() 61 …std::cout << " min""(acc) = " << (min)(acc) << std::endl; // Extra quotes are to prevent c… in example1() 62 std::cout << " mean(acc) = " << mean(acc) << std::endl; in example1() 65 std::cout << " count(acc) = " << count(acc) << std::endl; in example1() 66 std::cout << " sum(acc) = " << sum(acc) << std::endl; in example1() 67 std::cout << " moment<2>(acc) = " << accumulators::moment<2>(acc) << std::endl; in example1() 86 > acc(tag::tail<right>::cache_size = 4); in example2() local 88 acc(2.1, covariate1 = .21); in example2() 89 acc(1.1, covariate1 = .11); in example2() [all …]
|
/third_party/python/Objects/ |
D | accu.c | 18 _PyAccu_Init(_PyAccu *acc) in _PyAccu_Init() argument 21 acc->large = NULL; in _PyAccu_Init() 22 acc->small = PyList_New(0); in _PyAccu_Init() 23 if (acc->small == NULL) in _PyAccu_Init() 29 flush_accumulator(_PyAccu *acc) in flush_accumulator() argument 31 Py_ssize_t nsmall = PyList_GET_SIZE(acc->small); in flush_accumulator() 35 if (acc->large == NULL) { in flush_accumulator() 36 acc->large = PyList_New(0); in flush_accumulator() 37 if (acc->large == NULL) in flush_accumulator() 40 joined = join_list_unicode(acc->small); in flush_accumulator() [all …]
|
/third_party/boost/tools/build/src/tools/ |
D | acc.jam | 10 [[bbv2.reference.tools.compiler.acc]] 13 The `acc` module supports the 20 using acc : [version] : [c++-compile-command] : [compiler options] ; 59 feature.extend toolset : acc ; 60 toolset.inherit acc : unix ; 61 generators.override builtin.lib-generator : acc.prebuilt ; 62 generators.override acc.searched-lib-generator : searched-lib-generator ; 64 # Configures the acc toolset. 67 local condition = [ common.check-init-parameters acc 70 local command = [ common.get-invocation-command acc : aCC [all …]
|