IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
UnaryPackOp.h
Go to the documentation of this file.
1 // UnaryPackOp.h:
3 // ------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_DETAIL_STD_UNARYPACKOP_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_DETAIL_STD_UNARYPACKOP_H__
17 
23 
24 namespace ipsdk {
25 namespace simd {
26 namespace detail {
27 
30 
31 // todo
32 template <typename T, class OpClass>
34 {
35  static IPSDK_FORCEINLINE
38  {
40  out._val = OpClass::act(in._val);
41  return out;
42  }
43 
44  static IPSDK_FORCEINLINE
45  void
48  {
49  OpClass::act(in._val, out._val);
50  }
51 };
52 
55 
56 } // end of namespace detail
57 } // end of namespace simd
58 } // end of namespace ipsdk
59 
60 #endif // __IPSDKUTIL_INSTRUCTIONSET_DETAIL_STD_UNARYPACKOP_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
Predefined types associated to instruction set management.
Definition of import/export macro for library.
Definition: UnaryPackOp.h:31
compiler optimisations only
Definition: InstructionSetTypes.h:34