IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
UnaryMinusReg.h
Go to the documentation of this file.
1 // UnaryMinusReg.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_UNARYMINUSREG_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_UNARYMINUSREG_H__
17 
20 
21 namespace ipsdk {
22 namespace simd {
23 namespace detail {
24 
27 
29 template <typename T>
31 {
32  static IPSDK_FORCEINLINE
33  T
34  act(const T& in)
35  {
36  return -in;
37  }
38 
39  static IPSDK_FORCEINLINE
40  void
41  act(const T& in, T& out)
42  {
43  out = -in;
44  }
45 };
46 
49 
50 } // end of namespace detail
51 } // end of namespace simd
52 } // end of namespace ipsdk
53 
54 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_UNARYMINUSREG_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.
Definition: UnaryMinusReg.h:40
compiler optimisations only
Definition: InstructionSetTypes.h:34