mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[util] remove some movs in matrix add/sub assignment
This commit is contained in:
parent
77d80acf75
commit
18466d4ae4
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user