Lines Matching defs:right
1379 void MetalCodeGenerator::writeMatrixTimesEqualHelper(const Type& left, const Type& right,
1382 SkASSERT(right.isMatrix());
1384 SkASSERT(left.rows() == right.rows());
1385 SkASSERT(left.columns() == right.columns());
1389 String key = "Matrix *= " + this->typeName(left) + ":" + this->typeName(right);
1393 fExtraFunctions.printf("thread %s& operator*=(thread %s& left, thread const %s& right) {\n"
1394 " left = left * right;\n"
1398 this->typeName(right).c_str());
1402 void MetalCodeGenerator::writeMatrixEqualityHelpers(const Type& left, const Type& right) {
1404 SkASSERT(right.isMatrix());
1405 SkASSERT(left.rows() == right.rows());
1406 SkASSERT(left.columns() == right.columns());
1408 String key = "Matrix == " + this->typeName(left) + ":" + this->typeName(right);
1413 thread bool operator==(const %s left, const %s right);
1414 thread bool operator!=(const %s left, const %s right);
1417 this->typeName(right).c_str(),
1419 this->typeName(right).c_str());
1422 "thread bool operator==(const %s left, const %s right) {\n"
1424 this->typeName(left).c_str(), this->typeName(right).c_str());
1428 fExtraFunctions.printf("%sall(left[%d] == right[%d])", separator, index, index);
1435 "thread bool operator!=(const %s left, const %s right) {\n"
1436 " return !(left == right);\n"
1438 this->typeName(left).c_str(), this->typeName(right).c_str());
1452 "thread %s operator/(const %s left, const %s right) {\n"
1458 fExtraFunctions.printf("%sleft[%d] / right[%d]", separator, index, index);
1464 "thread %s& operator/=(thread %s& left, thread const %s& right) {\n"
1465 " left = left / right;\n"
1482 bool operator==(thread const array<T1, N>& left, thread const array<T2, N>& right);
1484 bool operator!=(thread const array<T1, N>& left, thread const array<T2, N>& right);
1488 bool operator==(thread const array<T1, N>& left, thread const array<T2, N>& right) {
1490 if (!all(left[index] == right[index])) {
1498 bool operator!=(thread const array<T1, N>& left, thread const array<T2, N>& right) {
1499 return !(left == right);
1519 thread bool operator==(thread const %s& left, thread const %s& right);
1520 thread bool operator!=(thread const %s& left, thread const %s& right);
1528 "thread bool operator==(thread const %s& left, thread const %s& right) {\n"
1535 fExtraFunctions.printf("%sall(left.%.*s == right.%.*s)",
1544 "thread bool operator!=(thread const %s& left, thread const %s& right) {\n"
1545 " return !(left == right);\n"
1591 const Expression& right = *b.right();
1593 const Type& rightType = right.type();
1656 this->writeNumberAsMatrix(right, leftType);
1658 this->writeExpression(right, precedence);
2592 this->requirements(bin.right().get());