IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
IfElsePack.h
Go to the documentation of this file.
1 // IfElsePack.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_DETAIL_STD_IFELSEPACK_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_DETAIL_STD_IFELSEPACK_H__
17 
21 
22 namespace ipsdk {
23 namespace simd {
24 namespace detail {
25 
28 
29 template <typename T>
31 {
32  static IPSDK_FORCEINLINE
37  {
39  out._val = mask._val ? in1._val : in2._val;
40  return out;
41  }
42 
43  static IPSDK_FORCEINLINE
44  void
49  {
50  out._val = mask._val ? in1._val : in2._val;
51  }
52 };
53 
56 
57 } // end of namespace detail
58 } // end of namespace simd
59 } // end of namespace ipsdk
60 
61 #endif // __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_DETAIL_STD_IFELSEPACK_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
BasePack class; defines a set of scalars (for instruction set "standard") or registers (for all other...
eInstructionSet
Enumerate for processor instruction set description.
Definition: InstructionSetTypes.h:31
Definition of import/export macro for library.
Definition: IfElsePack.h:30
compiler optimisations only
Definition: InstructionSetTypes.h:34