Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 8 of 8) sorted by relevance

/lib/
Dchecksum.c127 unsigned int sum = (__force unsigned int)wsum; in csum_partial() local
131 result += sum; in csum_partial()
132 if (sum > result) in csum_partial()
159 __u32 len, __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument
161 unsigned long long s = (__force u32)sum; in csum_tcpudp_nofold()
Dstackinit_kunit.c153 u8 sum = 0, i; \
166 for (sum = 0, i = 0; i < target_size; i++) \
167 sum += (check_buf[i] != 0xFF); \
168 KUNIT_ASSERT_EQ_MSG(test, sum, 0, \
187 for (sum = 0, i = 0; i < target_size; i++) \
188 sum += (check_buf[i] == 0xFF); \
190 if (sum != 0 && xfail) \
193 sum); \
194 KUNIT_ASSERT_EQ_MSG(test, sum, 0, \
195 "uninit bytes: %d\n", sum); \
Diov_iter.c483 __wsum sum, size_t off) in csum_and_memcpy() argument
486 return csum_block_add(sum, next, off); in csum_and_memcpy()
492 __wsum sum = *sump; in csum_and_copy_to_pipe_iter() local
512 sum = csum_and_memcpy(p + r, addr + off, chunk, sum, off); in csum_and_copy_to_pipe_iter()
517 *sump = sum; in csum_and_copy_to_pipe_iter()
1527 __wsum sum, next; in csum_and_copy_from_iter() local
1528 sum = *csum; in csum_and_copy_from_iter()
1535 sum = csum_block_add(sum, next, off); in csum_and_copy_from_iter()
1538 sum = csum_and_memcpy(addr + off, base, len, sum, off); in csum_and_copy_from_iter()
1541 *csum = sum; in csum_and_copy_from_iter()
[all …]
Dbch.c1060 uint32_t sum; in bch_decode() local
1081 for (i = 0, sum = 0; i < (int)ecc_words; i++) { in bch_decode()
1083 sum |= bch->ecc_buf[i]; in bch_decode()
1085 if (!sum) in bch_decode()
1186 unsigned int sum, x, y, remaining, ak = 0, xi[BCH_MAX_M]; in build_deg2_base() local
1190 for (j = 0, sum = 0; j < m; j++) in build_deg2_base()
1191 sum ^= a_pow(bch, i*(1 << j)); in build_deg2_base()
1193 if (sum) { in build_deg2_base()
Doverflow_kunit.c51 t sum, diff, prod; \
274 check_one_op(t, fmt, add, "+", p->a, p->b, p->sum, p->s_of); \
275 check_one_op(t, fmt, add, "+", p->b, p->a, p->sum, p->s_of); \
288 __same_type(n ## _tests[0].sum, int)); \
/lib/mpi/
Dec.c1166 static void montgomery_ladder(MPI_POINT prd, MPI_POINT sum, in montgomery_ladder() argument
1170 ctx->addm(sum->x, p2->x, p2->z, ctx); in montgomery_ladder()
1174 ctx->mulm(p2->x, p1->z, sum->x, ctx); in montgomery_ladder()
1178 ctx->addm(sum->x, p2->x, p2->z, ctx); in montgomery_ladder()
1182 ctx->pow2(sum->x, sum->x, ctx); in montgomery_ladder()
1183 ctx->pow2(sum->z, p2->z, ctx); in montgomery_ladder()
1185 ctx->mulm(sum->z, sum->z, dif_x, ctx); in montgomery_ladder()
1255 MPI_POINT q1, q2, prd, sum; in mpi_ec_mul_point() local
1285 sum = &p2_; in mpi_ec_mul_point()
1292 montgomery_ladder(prd, sum, q1, q2, point->x, ctx); in mpi_ec_mul_point()
[all …]
/lib/zstd/compress/
Dzstd_compress_internal.h1083 unsigned u, sum; in ZSTD_debugTable() local
1084 for (u=0, sum=0; u<=max; u++) sum += table[u]; in ZSTD_debugTable()
1085 DEBUGLOG(2, "total nb elts: %u", sum); in ZSTD_debugTable()
1088 u, table[u], ZSTD_fWeight(sum) - ZSTD_fWeight(table[u]) ); in ZSTD_debugTable()
Dzstd_opt.c99 U32 s, sum=0; in ZSTD_downscaleStat() local
104 sum += table[s]; in ZSTD_downscaleStat()
106 return sum; in ZSTD_downscaleStat()
1239 U32 s, sum=0; in ZSTD_upscaleStat() local
1244 sum += table[s]; in ZSTD_upscaleStat()
1246 return sum; in ZSTD_upscaleStat()