[util] remove some movs in matrix add/sub assignment

This commit is contained in:
Georg Lehmann 2021-03-27 16:04:31 +01:00 committed by Joshie
parent 77d80acf75
commit 18466d4ae4
1 changed files with 6 additions and 2 deletions

View File

@ -80,11 +80,15 @@ namespace dxvk {
}
Matrix4& Matrix4::operator+=(const Matrix4& other) {
return (*this = (*this) + other);
for (uint32_t i = 0; i < 4; i++)
data[i] += other.data[i];
return *this;
}
Matrix4& Matrix4::operator-=(const Matrix4& other) {
return (*this = (*this) - other);
for (uint32_t i = 0; i < 4; i++)
data[i] -= other.data[i];
return *this;
}
Matrix4& Matrix4::operator*=(const Matrix4& other) {