Home
last modified time | relevance | path

Searched refs:penalty (Results 1 - 19 of 19) sorted by relevance

/third_party/node/deps/ngtcp2/nghttp3/lib/
H A Dnghttp3_tnode.c86 uint64_t penalty = nwrite / NGHTTP3_STREAM_MIN_WRITELEN; in nghttp3_tnode_schedule() local
92 : nghttp3_max(1, penalty)); in nghttp3_tnode_schedule()
100 tnode->cycle += nghttp3_max(1, penalty); in nghttp3_tnode_schedule()
/third_party/gn/src/gn/
H A Dcommand_format.cc199 // |suffix| to that output. Returns a penalty that represents the cost of
220 // Returns the penalty.
356 // Used during penalty evaluation, similar to Newline().
692 int penalty = 0; in AssessPenalty() local
695 penalty += static_cast<int>(lines.size() - 1) * GetPenaltyForLineBreak(); in AssessPenalty()
698 penalty += static_cast<int>(line.size() - kMaximumWidth) * kPenaltyExcess; in AssessPenalty()
700 return penalty; in AssessPenalty()
726 int penalty = 0; in Expr() local
834 // In e.g. xxx + yyy, if xxx is already multiline, then we want a penalty in Expr()
893 penalty in Expr()
1131 int penalty = penalty_multiline_start_next_line; FunctionCall() local
[all...]
/third_party/mesa3d/src/freedreno/ir3/
H A Dir3_delay.c82 /* In mergedregs mode, there is an extra 2-cycle penalty when half of in ir3_delayslots()
88 unsigned penalty = mismatched_half ? 3 : 0; in ir3_delayslots() local
91 return 1 + penalty; in ir3_delayslots()
93 return 3 + penalty; in ir3_delayslots()
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
H A DQrCode.java397 int penalty = getPenaltyScore(); in handleConstructorMasking()
398 if (penalty < minPenalty) { in handleConstructorMasking()
400 minPenalty = penalty; in handleConstructorMasking()
412 // Calculates and returns the penalty score based on state of this QR Code's current modules.
/third_party/nghttp2/src/
H A Dshrpx_client_handler.cc829 auto penalty = MAX_DOWNSTREAM_ADDR_WEIGHT + addr->pending_penalty; in reschedule_addr() local
830 addr->cycle += penalty / addr->weight; in reschedule_addr()
831 addr->pending_penalty = penalty % addr->weight; in reschedule_addr()
843 auto penalty = MAX_DOWNSTREAM_ADDR_WEIGHT + wg->pending_penalty; in reschedule_wg() local
844 wg->cycle += penalty / wg->weight; in reschedule_wg()
845 wg->pending_penalty = penalty % wg->weight; in reschedule_wg()
/third_party/nghttp2/lib/
H A Dnghttp2_stream.c138 uint64_t penalty; in stream_next_cycle() local
140 penalty = (uint64_t)stream->last_writelen * NGHTTP2_MAX_WEIGHT + in stream_next_cycle()
143 stream->cycle = last_cycle + penalty / (uint32_t)stream->weight; in stream_next_cycle()
144 stream->pending_penalty = (uint32_t)(penalty % (uint32_t)stream->weight); in stream_next_cycle()
H A Dnghttp2_session.c1067 uint64_t penalty = (uint64_t)stream->last_writelen; in session_sched_reschedule_stream() local
1082 stream->cycle += penalty; in session_sched_reschedule_stream()
/third_party/node/deps/nghttp2/lib/
H A Dnghttp2_stream.c138 uint64_t penalty; in stream_next_cycle() local
140 penalty = (uint64_t)stream->last_writelen * NGHTTP2_MAX_WEIGHT + in stream_next_cycle()
143 stream->cycle = last_cycle + penalty / (uint32_t)stream->weight; in stream_next_cycle()
144 stream->pending_penalty = (uint32_t)(penalty % (uint32_t)stream->weight); in stream_next_cycle()
H A Dnghttp2_session.c1062 uint64_t penalty = (uint64_t)stream->last_writelen; in session_sched_reschedule_stream() local
1077 stream->cycle += penalty; in session_sched_reschedule_stream()
/third_party/qrcodegen/rust-no-heap/src/
H A Dlib.rs41 //! - Detects finder-like penalty patterns more accurately than other implementations
344 let penalty: i32 = result.get_penalty_score();
345 if penalty < minpenalty {
347 minpenalty = penalty;
708 // Calculates and returns the penalty score based on state of this QR Code's current modules.
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
H A DQrCode.java272 int penalty = getPenaltyScore(); in QrCode()
273 if (penalty < minPenalty) { in QrCode()
275 minPenalty = penalty; in QrCode()
525 // Calculates and returns the penalty score based on state of this QR Code's current modules.
/third_party/qrcodegen/rust/src/
H A Dlib.rs41 //! - Detects finder-like penalty patterns more accurately than other implementations
309 let penalty: i32 = result.get_penalty_score(); in encode_codewords()
310 if penalty < minpenalty { in encode_codewords()
312 minpenalty = penalty; in encode_codewords()
614 // Calculates and returns the penalty score based on state of this QR Code's current modules.
/third_party/qrcodegen/cpp/
H A Dqrcodegen.cpp344 long penalty = getPenaltyScore(); in QrCode() local
345 if (penalty < minPenalty) { in QrCode()
347 minPenalty = penalty; in QrCode()
/third_party/qrcodegen/python/
H A Dqrcodegen.py194 penalty = self._get_penalty_score()
195 if penalty < minpenalty:
197 minpenalty = penalty
414 """Calculates and returns the penalty score based on state of this QR Code's current modules.
/third_party/qrcodegen/c/
H A Dqrcodegen.c272 long penalty = getPenaltyScore(qrcode); in qrcodegen_encodeSegmentsAdvanced() local
273 if (penalty < minPenalty) { in qrcodegen_encodeSegmentsAdvanced()
275 minPenalty = penalty; in qrcodegen_encodeSegmentsAdvanced()
634 // Calculates and returns the penalty score based on state of the given QR Code's current modules.
/third_party/skia/third_party/externals/microhttpd/doc/
H A Dtexinfo.tex245 \removelastskip\penalty-50\smallskip\fi\fi}
247 \removelastskip\penalty-100\medskip\fi\fi}
249 \removelastskip\penalty-200\bigskip\fi\fi}
510 % expansion of \tie (\leavevmode \penalty \@M \ ).
584 % at the beginning of a line will start with \penalty -- and
585 % since \penalty is valid in vertical mode, we'd end up putting the
586 % penalty on the vertical list instead of in the new paragraph.
591 \gdef\tie{\leavevmode\penalty\tiepenalty\ }
721 % TeX does not even consider page breaks if a penalty added to the
725 % page after the empty box. So we use a penalty o
[all...]
/third_party/libbpf/include/uapi/linux/
H A Dpkt_sched.h504 __u32 penalty; member
/third_party/libunwind/libunwind/doc/
H A Dlibunwind-dynamic.tex319 naturally, the performance penalty is limited to a simple O(N) check.
/third_party/glfw/deps/
H A Dnuklear.h6645 /* penalty applied for every letter in str before the first match */ in nk_strmatch_fuzzy_text()
6647 /* maximum penalty for leading letters */ in nk_strmatch_fuzzy_text()
6649 /* penalty for every letter that doesn't matter */ in nk_strmatch_fuzzy_text()
6692 /* Apply penalty for each letter before the first pattern match */ in nk_strmatch_fuzzy_text()
6695 int penalty = NK_LEADING_LETTER_PENALTY * count; in nk_strmatch_fuzzy_text() local
6696 if (penalty < NK_MAX_LEADING_LETTER_PENALTY) in nk_strmatch_fuzzy_text()
6697 penalty = NK_MAX_LEADING_LETTER_PENALTY; in nk_strmatch_fuzzy_text()
6699 score += penalty; in nk_strmatch_fuzzy_text()
6720 /* apply penalty for now skipped letter */ in nk_strmatch_fuzzy_text()

Completed in 83 milliseconds