Home
last modified time | relevance | path

Searched refs:penalty (Results 1 – 25 of 132) sorted by relevance

123456

/third_party/flutter/engine/flutter/third_party/txt/src/minikin/
DLineBreaker.cpp218 float penalty = hyphenPenalty * mWordBreaker.breakBadness(); in addStyleRun() local
220 penalty, HyphenationType::DONT_BREAK); in addStyleRun()
238 float penalty, in addWordBreak() argument
261 cand.penalty = SCORE_DESPERATE; in addWordBreak()
276 cand.penalty = penalty; in addWordBreak()
344 const float penalty = mCandidates[i].penalty; in addCandidate() local
345 if (penalty <= mBestScore) { in addCandidate()
347 mBestScore = penalty; in addCandidate()
357 if (cand.penalty <= mBestScore) { in addCandidate()
359 mBestScore = cand.penalty; in addCandidate()
[all …]
DLineBreaker.h196 float penalty; // penalty of this break (for example, hyphen penalty) member
214 float penalty,
/third_party/cef/tools/yapf/yapf/yapflib/
Dsplit_penalty.py445 def _SetExpressionPenalty(node, penalty): argument
457 if penalty_annotation < penalty:
458 _SetSplitPenalty(node, penalty)
476 penalty = pytree_utils.GetNodeAnnotation(
478 _SetSplitPenalty(node, penalty + amt)
519 penalty = pytree_utils.GetNodeAnnotation(
521 penalty = penalty - amt if amt < penalty else 0
522 _SetSplitPenalty(node, penalty)
525 def _SetSplitPenalty(node, penalty): argument
527 penalty)
Dformat_decision_state.py431 penalty = 0
433 penalty = self._AddTokenOnNewline(dry_run, must_split)
437 return self.MoveStateToNextToken() + penalty
512 penalty = current.split_penalty
516 return penalty
520 penalty += 50
527 penalty += (style.Get('SPLIT_PENALTY_FOR_ADDED_LINE_SPLIT') *
535 penalty += 10
537 return penalty + 10
619 penalty = 0
[all …]
Dreformatter.py317 penalty = item.ordered_penalty.penalty
333 count = _AddNextStateToQueue(penalty, node, False, count, p_queue)
334 count = _AddNextStateToQueue(penalty, node, True, count, p_queue)
344 def _AddNextStateToQueue(penalty, previous_node, newline, count, p_queue): argument
370 penalty += node.state.AddTokenToState(
372 heapq.heappush(p_queue, _QueueItem(_OrderedPenalty(penalty, count), node))
/third_party/vk-gl-cts/external/openglcts/
D.clang-format109 # The penalty for breaking a function call after "call(".
112 # The penalty for each line break introduced inside a comment.
115 # The penalty for breaking before the first <<.
118 # The penalty for each line break introduced inside a string literal.
121 # The penalty for each character outside of the column limit.
/third_party/skia/third_party/externals/spirv-cross/
D.clang-format109 # The penalty for breaking a function call after "call(".
112 # The penalty for each line break introduced inside a comment.
115 # The penalty for breaking before the first <<.
118 # The penalty for each line break introduced inside a string literal.
121 # The penalty for each character outside of the column limit.
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/
Dconv_common_base.c69 float penalty = ((float)input_unit * input_unit) / ((float)kernel_h * kernel_w) * 0.12f; in SelectOutputUnit() local
72 float reduce_rate = common_cost / wino_cost - penalty; in SelectOutputUnit()
/third_party/gn/src/gn/
Dcommand_format.cc670 int penalty = 0; in AssessPenalty() local
673 penalty += static_cast<int>(lines.size() - 1) * GetPenaltyForLineBreak(); in AssessPenalty()
676 penalty += static_cast<int>(line.size() - kMaximumWidth) * kPenaltyExcess; in AssessPenalty()
678 return penalty; in AssessPenalty()
704 int penalty = 0; in Expr() local
871 penalty += std::abs(CurrentColumn() - start_column) * in Expr()
877 penalty += (CurrentLine() - start_line) * GetPenaltyForLineBreak(); in Expr()
902 penalty += FunctionCall(func_call, at_end); in Expr()
931 return penalty; in Expr()
1109 int penalty = penalty_multiline_start_next_line; in FunctionCall() local
[all …]
/third_party/mesa3d/src/freedreno/ir3/
Dir3_delay.c101 unsigned penalty = mismatched_half ? 2 : 0; in ir3_delayslots() local
104 return 1 + penalty; in ir3_delayslots()
106 return 3 + penalty; in ir3_delayslots()
/third_party/skia/third_party/externals/opengl-registry/extensions/QCOM/
DQCOM_binning_control.txt49 a swap or there will be a large performance penalty.
106 swap or there will be a large performance penalty.
/third_party/openGLES/extensions/QCOM/
DQCOM_binning_control.txt49 a swap or there will be a large performance penalty.
106 swap or there will be a large performance penalty.
/third_party/curl/docs/cmdline-opts/
Dftp-method.d21 compliant than 'nocwd' but without the full penalty of 'multicwd'.
/third_party/nghttp2/src/
Dshrpx_client_handler.cc765 auto penalty = MAX_DOWNSTREAM_ADDR_WEIGHT + addr->pending_penalty; in reschedule_addr() local
766 addr->cycle += penalty / addr->weight; in reschedule_addr()
767 addr->pending_penalty = penalty % addr->weight; in reschedule_addr()
779 auto penalty = MAX_DOWNSTREAM_ADDR_WEIGHT + wg->pending_penalty; in reschedule_wg() local
780 wg->cycle += penalty / wg->weight; in reschedule_wg()
781 wg->pending_penalty = penalty % wg->weight; in reschedule_wg()
/third_party/nghttp2/lib/
Dnghttp2_stream.c137 uint64_t penalty; in stream_next_cycle() local
139 penalty = (uint64_t)stream->last_writelen * NGHTTP2_MAX_WEIGHT + in stream_next_cycle()
142 stream->cycle = last_cycle + penalty / (uint32_t)stream->weight; in stream_next_cycle()
143 stream->pending_penalty = (uint32_t)(penalty % (uint32_t)stream->weight); in stream_next_cycle()
/third_party/node/deps/nghttp2/lib/
Dnghttp2_stream.c137 uint64_t penalty; in stream_next_cycle() local
139 penalty = (uint64_t)stream->last_writelen * NGHTTP2_MAX_WEIGHT + in stream_next_cycle()
142 stream->cycle = last_cycle + penalty / (uint32_t)stream->weight; in stream_next_cycle()
143 stream->pending_penalty = (uint32_t)(penalty % (uint32_t)stream->weight); in stream_next_cycle()
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
DQrCode.java515 int penalty = getPenaltyScore(); in handleConstructorMasking() local
516 if (penalty < minPenalty) { in handleConstructorMasking()
518 minPenalty = penalty; in handleConstructorMasking()
/third_party/qrcodegen/rust/
DReadme.markdown22 * Detects finder-like penalty patterns more accurately than other implementations
/third_party/boost/libs/convert/doc/
Dtools.qbk17 without the penalty or the need for an extra traversal of the sentry-based ranges in order to find …
/third_party/libnl/lib/route/qdisc/
Dcbq.c143 nl_ticks2us(cbq->cbq_ovl.penalty), in cbq_dump_details()
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen.ts214 const penalty: int = this.getPenaltyScore(); constant
215 if (penalty < minPenalty) {
217 minPenalty = penalty;
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DREADME.SIMD.rst61 at the cost of a possible performance penalty.
/third_party/qrcodegen/cpp/
Dqrcodegen.cpp344 long penalty = getPenaltyScore(); in QrCode() local
345 if (penalty < minPenalty) { in QrCode()
347 minPenalty = penalty; in QrCode()
/third_party/qrcodegen/python/
Dqrcodegen.py197 penalty = self._get_penalty_score()
198 if penalty < minpenalty:
200 minpenalty = penalty
/third_party/qrcodegen/rust/src/
Dlib.rs306 let penalty: i32 = result.get_penalty_score(); in encode_codewords() localVariable
307 if penalty < minpenalty { in encode_codewords()
309 minpenalty = penalty; in encode_codewords()

123456