1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-21 13:54:18 +01:00

[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

View File

@ -80,11 +80,15 @@ namespace dxvk {
} }
Matrix4& Matrix4::operator+=(const Matrix4& other) { 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) { 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) { Matrix4& Matrix4::operator*=(const Matrix4& other) {