IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
SubReg.h
Go to the documentation of this file.
1 // SubReg.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_SUBREG_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_SUBREG_H__
17 
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_SUBREG_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Definition: SubReg.h:39
eInstructionSet
Enumerate for processor instruction set description.
Definition: InstructionSetTypes.h:31
Definition of import/export macro for library.
compiler optimisations only
Definition: InstructionSetTypes.h:34