fixed bug with matrix multiply

This commit is contained in:
h4570
2020-12-23 20:28:41 +01:00
parent f95e805d33
commit e0ad58f72f
+2 -2
View File
@@ -160,7 +160,7 @@ Matrix Matrix::operator*(const Matrix &t)
"sqc2 vf3, 0x20(%0) \n\t" "sqc2 vf3, 0x20(%0) \n\t"
"sqc2 vf4, 0x30(%0) \n\t" "sqc2 vf4, 0x30(%0) \n\t"
: :
: "r"(result.data), "r"(this->data), "r"(t.data) : "r"(result.data), "r"(t.data), "r"(this->data)
: "memory"); : "memory");
return result; return result;
} }
@@ -197,7 +197,7 @@ void Matrix::operator*=(const Matrix &t)
"sqc2 vf3, 0x20(%0) \n\t" "sqc2 vf3, 0x20(%0) \n\t"
"sqc2 vf4, 0x30(%0) \n\t" "sqc2 vf4, 0x30(%0) \n\t"
: :
: "r"(this->data), "r"(this->data), "r"(t.data) : "r"(this->data), "r"(t.data), "r"(this->data)
: "memory"); : "memory");
} }