| 331 | // ---------------------------------------------------------------------------------------- |
| 332 | |
| 333 | inline simd4f operator- (const simd4f& lhs, const simd4f& rhs) |
| 334 | { |
| 335 | #ifdef DLIB_HAVE_SSE2 |
| 336 | return _mm_sub_ps(lhs, rhs); |
| 337 | #elif defined(DLIB_HAVE_VSX) |
| 338 | return vec_sub(lhs(), rhs()); |
| 339 | #elif defined(DLIB_HAVE_NEON) |
| 340 | return vsubq_f32(lhs, rhs); |
| 341 | #else |
| 342 | return simd4f(lhs[0]-rhs[0], |
| 343 | lhs[1]-rhs[1], |
| 344 | lhs[2]-rhs[2], |
| 345 | lhs[3]-rhs[3]); |
| 346 | #endif |
| 347 | } |
| 348 | inline simd4f& operator-= (simd4f& lhs, const simd4f& rhs) |
| 349 | { lhs = lhs - rhs; return lhs; } |
| 350 | |