IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
IfElseReg.h
Go to the documentation of this file.
1 // IfElseReg.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_DETAIL_AVX512_IFELSEREG_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_DETAIL_AVX512_IFELSEREG_H__
17 
22 
23 namespace ipsdk {
24 namespace simd {
25 namespace detail {
26 
29 
30 template <typename T>
32 {
33  static IPSDK_FORCEINLINE
34  typename Avx512Type<T>::Type
35  act(const typename Avx512MaskType<T>::Type& mask,
36  const typename Avx512Type<T>::Type& in1,
37  const typename Avx512Type<T>::Type& in2)
38  {
40  mask,
41  in2,
42  in1);
43  }
44 
45  static IPSDK_FORCEINLINE
46  void
47  act(const typename Avx512MaskType<T>::Type& mask,
48  const typename Avx512Type<T>::Type& in1,
49  const typename Avx512Type<T>::Type& in2,
50  typename Avx512Type<T>::Type& out)
51  {
53  mask,
54  in2,
55  in1,
56  out);
57  }
58 };
59 
62 
63 } // end of namespace detail
64 } // end of namespace simd
65 } // end of namespace ipsdk
66 
67 #endif // __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_DETAIL_AVX512_IFELSEREG_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
(including fundation and byte and word instructions)
Definition: InstructionSetTypes.h:51
eInstructionSet
Enumerate for processor instruction set description.
Definition: InstructionSetTypes.h:31
Definition: Avx512MaskTypes.h:36
Definition of import/export macro for library.
Definition: IfElseReg.h:33
Definition: MaskBlendReg.h:30
structure used to retrieve AVX512 type associated to a base type
Definition: Avx512Types.h:36