From e0ad58f72f9f3fc3a116a877c7c4d34b3cef8d1a Mon Sep 17 00:00:00 2001 From: h4570 Date: Wed, 23 Dec 2020 20:28:41 +0100 Subject: [PATCH] fixed bug with matrix multiply --- src/engine/models/math/matrix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/models/math/matrix.cpp b/src/engine/models/math/matrix.cpp index ec927a1..b0e9e2f 100644 --- a/src/engine/models/math/matrix.cpp +++ b/src/engine/models/math/matrix.cpp @@ -160,7 +160,7 @@ Matrix Matrix::operator*(const Matrix &t) "sqc2 vf3, 0x20(%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"); return result; } @@ -197,7 +197,7 @@ void Matrix::operator*=(const Matrix &t) "sqc2 vf3, 0x20(%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"); }