MCPcopy Create free account
hub / github.com/davisking/dlib / operator-

Function operator-

dlib/simd/simd4i.h:248–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246// ----------------------------------------------------------------------------------------
247
248 inline simd4i operator- (const simd4i& lhs, const simd4i& rhs)
249 {
250#ifdef DLIB_HAVE_SSE2
251 return _mm_sub_epi32(lhs, rhs);
252#elif defined(DLIB_HAVE_VSX)
253 return vec_sub(lhs(), rhs());
254#elif defined(DLIB_HAVE_NEON)
255 return vsubq_s32(lhs, rhs);
256#else
257 return simd4i(lhs[0]-rhs[0],
258 lhs[1]-rhs[1],
259 lhs[2]-rhs[2],
260 lhs[3]-rhs[3]);
261#endif
262 }
263 inline simd4i& operator-= (simd4i& lhs, const simd4i& rhs)
264 { return lhs = lhs - rhs; return lhs;}
265

Callers

nothing calls this directly

Calls 1

simd4iClass · 0.85

Tested by

no test coverage detected