IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AddReg.h
Go to the documentation of this file.
1 // AddReg.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_ADDREG_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_ADDREG_H__
17 
19 #include <IPSDKUtil/InstructionSet/Arithmetic/detail/AddReg.h>
21 
22 namespace ipsdk {
23 namespace simd {
24 namespace detail {
25 
28 
30 template <typename T>
32 
33 {
34  static IPSDK_FORCEINLINE
35  T
36  act(const T& in1, const T& in2)
37  {
38  return in1 + in2;
39  }
40 
41  static IPSDK_FORCEINLINE
42  void
43  act(const T& in1, const T& in2, T& out)
44  {
45  out = in1 + in2;
46  }
47 };
48 
51 
52 } // end of namespace detail
53 } // end of namespace simd
54 } // end of namespace ipsdk
55 
56 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_ADDREG_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
eInstructionSet
Enumerate for processor instruction set description.
Definition: InstructionSetTypes.h:31
Definition of import/export macro for library.
template structure which is specialized to implement the arithmetic addition on 2 scalars or 2 regist...
Definition: AddReg.h:37
compiler optimisations only
Definition: InstructionSetTypes.h:34