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

Function operator|

dlib/simd/simd4i.h:317–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315// ----------------------------------------------------------------------------------------
316
317 inline simd4i operator| (const simd4i& lhs, const simd4i& rhs)
318 {
319#ifdef DLIB_HAVE_SSE2
320 return _mm_or_si128(lhs, rhs);
321#elif defined(DLIB_HAVE_VSX)
322 return vec_or(lhs(), rhs());
323#elif defined(DLIB_HAVE_NEON)
324 return vorrq_s32(lhs, rhs);
325#else
326 return simd4i(lhs[0]|rhs[0],
327 lhs[1]|rhs[1],
328 lhs[2]|rhs[2],
329 lhs[3]|rhs[3]);
330#endif
331 }
332 inline simd4i& operator|= (simd4i& lhs, const simd4i& rhs)
333 { return lhs = lhs | rhs; return lhs;}
334

Callers

nothing calls this directly

Calls 1

simd4iClass · 0.85

Tested by

no test coverage detected