equal
deleted
inserted
replaced
130 }; |
130 }; |
131 |
131 |
132 // difference |
132 // difference |
133 friend Vector operator-(const Vector &a, const Vector &b) |
133 friend Vector operator-(const Vector &a, const Vector &b) |
134 { |
134 { |
135 #ifdef NO_SIMD |
135 #if defined(NO_SIMD) || defined(MSVC) |
136 return Vector(a.x - b.x, a.y - b.y, a.z - b.z); |
136 return Vector(a.x - b.x, a.y - b.y, a.z - b.z); |
137 #else |
137 #else |
|
138 // this faults in MSVC, for unknown reason |
138 return Vector(msub(a.mf4, b.mf4)); |
139 return Vector(msub(a.mf4, b.mf4)); |
139 #endif |
140 #endif |
140 }; |
141 }; |
141 |
142 |
142 // dot product |
143 // dot product |