/external/guava/guava/src/com/google/common/collect/ |
D | ComparisonChain.java | 72 public ComparisonChain compare(Comparable left, Comparable right) { 73 return classify(left.compareTo(right)); 78 @Nullable T left, @Nullable T right, Comparator<T> comparator) { 79 return classify(comparator.compare(left, right)); 83 public ComparisonChain compare(int left, int right) { 84 return classify(Ints.compare(left, right)); 88 public ComparisonChain compare(long left, long right) { 89 return classify(Longs.compare(left, right)); 93 public ComparisonChain compare(float left, float right) { 94 return classify(Float.compare(left, right)); [all …]
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | ComparisonChain.java | 72 public ComparisonChain compare(Comparable left, Comparable right) { 73 return classify(left.compareTo(right)); 78 @NullableDecl T left, @NullableDecl T right, Comparator<T> comparator) { 79 return classify(comparator.compare(left, right)); 83 public ComparisonChain compare(int left, int right) { 84 return classify(Ints.compare(left, right)); 88 public ComparisonChain compare(long left, long right) { 89 return classify(Longs.compare(left, right)); 93 public ComparisonChain compare(float left, float right) { 94 return classify(Float.compare(left, right)); [all …]
|
/external/rust/crates/itertools/src/ |
D | merge_join.rs | 11 pub fn merge_join_by<I, J, F>(left: I, right: J, cmp_fn: F) in merge_join_by() 19 right: put_back(right.into_iter().fuse()), in merge_join_by() 30 right: PutBack<Fuse<J>>, field 41 clone_fields!(left, right, cmp_fn); 50 debug_fmt_fields!(MergeJoinBy, left, right); 61 match (self.left.next(), self.right.next()) { in next() 65 (None, Some(right)) => in next() 66 Some(EitherOrBoth::Right(right)), in next() 67 (Some(left), Some(right)) => { in next() 68 match (self.cmp_fn)(&left, &right) { in next() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/avl/ |
D | avl.cc | 54 unref_node(vtable, node->right, user_data); in unref_node() 67 calculate_height(node->right)); in calculate_height() 73 assert_invariants(n->right); in assert_invariants() 75 assert(labs(node_height(n->left) - node_height(n->right)) <= 1); in assert_invariants() 83 grpc_avl_node* right) { in new_node() argument 89 node->right = assert_invariants(right); in new_node() 90 node->height = 1 + GPR_MAX(node_height(left), node_height(right)); in new_node() 108 return get(vtable, node->right, key, user_data); in get() 128 grpc_avl_node* right, void* user_data) { in rotate_left() argument 129 grpc_avl_node* n = new_node(vtable->copy_key(right->key, user_data), in rotate_left() [all …]
|
/external/grpc-grpc/src/core/lib/avl/ |
D | avl.cc | 54 unref_node(vtable, node->right, user_data); in unref_node() 67 calculate_height(node->right)); in calculate_height() 73 assert_invariants(n->right); in assert_invariants() 75 assert(labs(node_height(n->left) - node_height(n->right)) <= 1); in assert_invariants() 83 grpc_avl_node* right) { in new_node() argument 89 node->right = assert_invariants(right); in new_node() 90 node->height = 1 + GPR_MAX(node_height(left), node_height(right)); in new_node() 108 return get(vtable, node->right, key, user_data); in get() 128 grpc_avl_node* right, void* user_data) { in rotate_left() argument 129 grpc_avl_node* n = new_node(vtable->copy_key(right->key, user_data), in rotate_left() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
D | DESEngine.java | 409 int work, right, left; in desFunc() local 412 right = Pack.bigEndianToInt(in, inOff + 4); in desFunc() 414 work = ((left >>> 4) ^ right) & 0x0f0f0f0f; in desFunc() 415 right ^= work; in desFunc() 417 work = ((left >>> 16) ^ right) & 0x0000ffff; in desFunc() 418 right ^= work; in desFunc() 420 work = ((right >>> 2) ^ left) & 0x33333333; in desFunc() 422 right ^= (work << 2); in desFunc() 423 work = ((right >>> 8) ^ left) & 0x00ff00ff; in desFunc() 425 right ^= (work << 8); in desFunc() [all …]
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/engines/ |
D | DESEngine.java | 411 int work, right, left; in desFunc() local 414 right = Pack.bigEndianToInt(in, inOff + 4); in desFunc() 416 work = ((left >>> 4) ^ right) & 0x0f0f0f0f; in desFunc() 417 right ^= work; in desFunc() 419 work = ((left >>> 16) ^ right) & 0x0000ffff; in desFunc() 420 right ^= work; in desFunc() 422 work = ((right >>> 2) ^ left) & 0x33333333; in desFunc() 424 right ^= (work << 2); in desFunc() 425 work = ((right >>> 8) ^ left) & 0x00ff00ff; in desFunc() 427 right ^= (work << 8); in desFunc() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/ |
D | DESEngine.java | 411 int work, right, left; in desFunc() local 414 right = Pack.bigEndianToInt(in, inOff + 4); in desFunc() 416 work = ((left >>> 4) ^ right) & 0x0f0f0f0f; in desFunc() 417 right ^= work; in desFunc() 419 work = ((left >>> 16) ^ right) & 0x0000ffff; in desFunc() 420 right ^= work; in desFunc() 422 work = ((right >>> 2) ^ left) & 0x33333333; in desFunc() 424 right ^= (work << 2); in desFunc() 425 work = ((right >>> 8) ^ left) & 0x00ff00ff; in desFunc() 427 right ^= (work << 8); in desFunc() [all …]
|
/external/toybox/kconfig/ |
D | expr.c | 39 e->right.expr = e2; in expr_alloc_two() 49 e->right.sym = s2; in expr_alloc_comp() 86 e->right.sym = org->right.sym; in expr_copy() 92 e->right.expr = expr_copy(org->right.expr); in expr_copy() 121 expr_free(e->right.expr); in expr_free() 139 __expr_eliminate_eq(type, &e1->right.expr, &e2); in __expr_eliminate_eq() 144 __expr_eliminate_eq(type, &e1, &e2->right.expr); in __expr_eliminate_eq() 203 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq() 243 e->right.expr = expr_eliminate_yn(e->right.expr); in expr_eliminate_yn() 247 expr_free(e->right.expr); in expr_eliminate_yn() [all …]
|
/external/mesa3d/src/util/ |
D | rb_tree.c | 90 while (node->right) in rb_node_maximum() 91 node = node->right; in rb_node_maximum() 119 assert(u == p->right); in rb_tree_splice() 120 p->right = v; in rb_tree_splice() 129 assert(x && x->right); in rb_tree_rotate_left() 131 struct rb_node *y = x->right; in rb_tree_rotate_left() 132 x->right = y->left; in rb_tree_rotate_left() 146 y->left = x->right; in rb_tree_rotate_right() 147 if (x->right) in rb_tree_rotate_right() 148 rb_node_set_parent(x->right, y); in rb_tree_rotate_right() [all …]
|
/external/skia/include/sksl/ |
D | DSLExpression.h | 142 DSLPossibleExpression operator+(DSLExpression left, DSLExpression right); 144 DSLPossibleExpression operator+=(DSLExpression left, DSLExpression right); 145 DSLPossibleExpression operator-(DSLExpression left, DSLExpression right); 147 DSLPossibleExpression operator-=(DSLExpression left, DSLExpression right); 148 DSLPossibleExpression operator*(DSLExpression left, DSLExpression right); 149 DSLPossibleExpression operator*=(DSLExpression left, DSLExpression right); 150 DSLPossibleExpression operator/(DSLExpression left, DSLExpression right); 151 DSLPossibleExpression operator/=(DSLExpression left, DSLExpression right); 152 DSLPossibleExpression operator%(DSLExpression left, DSLExpression right); 153 DSLPossibleExpression operator%=(DSLExpression left, DSLExpression right); [all …]
|
/external/tensorflow/tensorflow/core/grappler/costs/ |
D | cost_estimator.cc | 21 Costs CombineCosts(const Costs& left, const Costs& right) { in CombineCosts() argument 27 result.execution_time += right.execution_time; in CombineCosts() 28 result.compute_time += right.compute_time; in CombineCosts() 29 result.memory_time += right.memory_time; in CombineCosts() 30 result.intermediate_memory_time += right.intermediate_memory_time; in CombineCosts() 31 result.intermediate_memory_read_time += right.intermediate_memory_read_time; in CombineCosts() 32 result.intermediate_memory_write_time += right.intermediate_memory_write_time; in CombineCosts() 34 if (right.max_per_op_buffers != kMemoryUnknown) { in CombineCosts() 36 std::max(left.max_per_op_buffers, right.max_per_op_buffers); in CombineCosts() 38 if (right.max_per_op_streaming != kMemoryUnknown) { in CombineCosts() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | GCNILPSched.cpp | 43 const SUnit *pickBest(const SUnit *left, const SUnit *right); 133 static int BUCompareLatency(const SUnit *left, const SUnit *right) { in BUCompareLatency() argument 137 int RHeight = (int)right->getHeight(); in BUCompareLatency() 150 int RDepth = right->getDepth(); in BUCompareLatency() 153 << ") depth " << LDepth << " vs SU (" << right->NodeNum in BUCompareLatency() 157 if (left->Latency != right->Latency) in BUCompareLatency() 158 return left->Latency > right->Latency ? 1 : -1; in BUCompareLatency() 163 const SUnit *GCNILPScheduler::pickBest(const SUnit *left, const SUnit *right) in pickBest() argument 170 int spread = (int)left->getDepth() - (int)right->getDepth(); in pickBest() 173 << left->getDepth() << " != SU(" << right->NodeNum in pickBest() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | GCNILPSched.cpp | 43 const SUnit *pickBest(const SUnit *left, const SUnit *right); 133 static int BUCompareLatency(const SUnit *left, const SUnit *right) { in BUCompareLatency() argument 137 int RHeight = (int)right->getHeight(); in BUCompareLatency() 150 int RDepth = right->getDepth(); in BUCompareLatency() 153 << ") depth " << LDepth << " vs SU (" << right->NodeNum in BUCompareLatency() 157 if (left->Latency != right->Latency) in BUCompareLatency() 158 return left->Latency > right->Latency ? 1 : -1; in BUCompareLatency() 163 const SUnit *GCNILPScheduler::pickBest(const SUnit *left, const SUnit *right) in pickBest() argument 170 int spread = (int)left->getDepth() - (int)right->getDepth(); in pickBest() 173 << left->getDepth() << " != SU(" << right->NodeNum in pickBest() [all …]
|
/external/antlr/tool/src/main/java/org/antlr/tool/ |
D | NFAFactory.java | 86 while ( s!=alt.right ) { in optimizeAlternative() 120 NFAState right = newState(); in build_Atom() local 122 right.associatedASTNode = associatedAST; in build_Atom() 123 transitionBetweenStates(left, right, label); in build_Atom() 124 StateCluster g = new StateCluster(left, right); in build_Atom() 138 NFAState right = newState(); in build_Set() local 140 right.associatedASTNode = associatedAST; in build_Set() 142 Transition e = new Transition(label,right); in build_Set() 144 StateCluster g = new StateCluster(left, right); in build_Set() 165 NFAState right = newState(); in build_Range() local [all …]
|
/external/skia/src/sksl/ |
D | SkSLConstantFolder.cpp | 31 const Expression& right) { in eliminate_no_op_boolean() argument 32 SkASSERT(right.is<BoolLiteral>()); in eliminate_no_op_boolean() 33 bool rightVal = right.as<BoolLiteral>().value(); in eliminate_no_op_boolean() 50 const Expression& right) { in short_circuit_boolean() argument 63 return eliminate_no_op_boolean(right, op, left); in short_circuit_boolean() 74 const Expression& right) { in simplify_vector() argument 76 SkASSERT(left.type() == right.type()); in simplify_vector() 83 switch (left.compareConstant(right)) { in simplify_vector() 103 right.getConstantSubexpression(i)->as<Literal<T>>().value()); in simplify_vector() 190 const Expression& right) { in ErrorOnDivideByZero() argument [all …]
|
D | SkSLOperators.cpp | 233 bool Operator::isMatrixMultiply(const Type& left, const Type& right) { in isMatrixMultiply() argument 238 return right.isMatrix() || right.isVector(); in isMatrixMultiply() 240 return left.isVector() && right.isMatrix(); in isMatrixMultiply() 249 const Type& right, in determineBinaryType() argument 259 return right.canCoerceTo(left, allowNarrowing); in determineBinaryType() 263 CoercionCost rightToLeft = right.coercionCost(left), in determineBinaryType() 264 leftToRight = left.coercionCost(right); in determineBinaryType() 274 *outLeftType = &right; in determineBinaryType() 275 *outRightType = &right; in determineBinaryType() 289 right.canCoerceTo(*context.fTypes.fBool, allowNarrowing); in determineBinaryType() [all …]
|
/external/wpa_supplicant_8/src/crypto/ |
D | des-internal.c | 320 u32 work, right, leftt; in desfunc() local 324 right = block[1]; in desfunc() 326 work = ((leftt >> 4) ^ right) & 0x0f0f0f0fL; in desfunc() 327 right ^= work; in desfunc() 330 work = ((leftt >> 16) ^ right) & 0x0000ffffL; in desfunc() 331 right ^= work; in desfunc() 334 work = ((right >> 2) ^ leftt) & 0x33333333L; in desfunc() 336 right ^= (work << 2); in desfunc() 338 work = ((right >> 8) ^ leftt) & 0x00ff00ffL; in desfunc() 340 right ^= (work << 8); in desfunc() [all …]
|
/external/eigen/unsupported/test/ |
D | cxx11_tensor_concatenation.cpp | 20 Tensor<int, 3, DataLayout> right(3, 3, 1); in test_dimension_failures() local 22 right.setRandom(); in test_dimension_failures() 25 Tensor<int, 3, DataLayout> concatenation = left.concatenate(right, 0); in test_dimension_failures() 28 VERIFY_RAISES_ASSERT(concatenation = left.concatenate(right, 1)); in test_dimension_failures() 29 VERIFY_RAISES_ASSERT(concatenation = left.concatenate(right, 2)); in test_dimension_failures() 32 VERIFY_RAISES_ASSERT(concatenation = left.concatenate(right, 3)); in test_dimension_failures() 33 VERIFY_RAISES_ASSERT(concatenation = left.concatenate(right, -1)); in test_dimension_failures() 40 Tensor<int, 3, DataLayout> right(2, 3, 1); in test_static_dimension_failure() local 45 Tensor<int, 3, DataLayout> concatenation = left.concatenate(right, 0); in test_static_dimension_failure() 51 .concatenate(right, 0); in test_static_dimension_failure() [all …]
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | RopeByteString.java | 135 private final ByteString right; field in RopeByteString 146 private RopeByteString(ByteString left, ByteString right) { in RopeByteString() argument 148 this.right = right; in RopeByteString() 150 totalLength = leftLength + right.size(); in RopeByteString() 151 treeDepth = Math.max(left.getTreeDepth(), right.getTreeDepth()) + 1; in RopeByteString() 167 static ByteString concatenate(ByteString left, ByteString right) { in concatenate() argument 168 if (right.size() == 0) { in concatenate() 173 return right; in concatenate() 176 final int newLength = left.size() + right.size(); in concatenate() 180 return concatenateBytes(left, right); in concatenate() [all …]
|
/external/pdfium/core/fxcrt/ |
D | fx_coordinates.cpp | 42 static_assert(offsetof(FX_RECT, right) == offsetof(RECT, right), 50 static_assert(sizeof(FX_RECT::right) == sizeof(RECT::right), 59 if (left > right) in Normalize() 60 std::swap(left, right); in Normalize() 71 right = std::min(right, src_n.right); in Intersect() 73 if (left > right || top > bottom) { in Intersect() 74 left = top = right = bottom = 0; in Intersect() 80 : left(rect.left), bottom(rect.top), right(rect.right), top(rect.bottom) {} in CFX_FloatRect() 101 if (left > right) in Normalize() 102 std::swap(left, right); in Normalize() [all …]
|
/external/ImageMagick/MagickCore/ |
D | splay-tree.c | 80 *right; member 200 node->right=(NodeInfo *) NULL; in AddValueToSplayTree() 206 node->right=node->left->right; in AddValueToSplayTree() 207 node->left->right=(NodeInfo *) NULL; in AddValueToSplayTree() 211 node->right=splay_tree->root; in AddValueToSplayTree() 212 node->left=node->right->left; in AddValueToSplayTree() 213 node->right->left=(NodeInfo *) NULL; in AddValueToSplayTree() 263 node->right=(NodeInfo *) NULL; in LinkSplayTreeNodes() 265 node->right=LinkSplayTreeNodes(nodes,bisect+1,high); in LinkSplayTreeNodes() 375 node=splay_tree->root->right; in CloneSplayTree() [all …]
|
/external/aac/libAACenc/src/ |
D | tonality.cpp | 138 FIXP_DBL right; in FDKaacEnc_CalculateFullTonality() local 140 right = chaosMeasurePerLine[j]; in FDKaacEnc_CalculateFullTonality() 141 right = right - (right >> 2); in FDKaacEnc_CalculateFullTonality() 142 left = right + (left >> 2); in FDKaacEnc_CalculateFullTonality() 145 right = chaosMeasurePerLine[j + 1]; in FDKaacEnc_CalculateFullTonality() 146 right = right - (right >> 2); in FDKaacEnc_CalculateFullTonality() 147 left = right + (left >> 2); in FDKaacEnc_CalculateFullTonality() 151 right = chaosMeasurePerLine[j]; in FDKaacEnc_CalculateFullTonality() 152 right = right - (right >> 2); in FDKaacEnc_CalculateFullTonality() 153 left = right + (left >> 2); in FDKaacEnc_CalculateFullTonality()
|
/external/skia/src/sksl/ir/ |
D | SkSLBinaryExpression.cpp | 22 const Expression& right, in is_low_precision_matrix_vector_multiply() argument 27 right.type().isVector() && in is_low_precision_matrix_vector_multiply() 28 left.type().rows() == right.type().columns() && in is_low_precision_matrix_vector_multiply() 30 Analysis::IsTrivialExpression(right); in is_low_precision_matrix_vector_multiply() 36 const Expression& right, in rewrite_matrix_vector_multiply() argument 46 context, right.clone(), ComponentArray{(SkSL::SwizzleComponent::Type)n}); in rewrite_matrix_vector_multiply() 69 std::unique_ptr<Expression> right) { in Convert() argument 70 if (!left || !right) { in Convert() 76 if (left->is<IntLiteral>() && right->type().isInteger()) { in Convert() 77 rawLeftType = &right->type(); in Convert() [all …]
|
/external/e2fsprogs/lib/support/ |
D | dict.c | 58 #define right dict_right macro 93 lower = upper->right; in rotate_left() 94 upper->right = lowleft = lower->left; in rotate_left() 105 dict_assert (upper == upparent->right); in rotate_left() 106 upparent->right = lower; in rotate_left() 123 upper->left = lowright = lower->right; in rotate_right() 128 if (upper == upparent->right) { in rotate_right() 129 upparent->right = lower; in rotate_right() 135 lower->right = upper; in rotate_right() 149 free_nodes(dict, node->right, nil); in free_nodes() [all …]
|