IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
MaxRegImpl.h
Go to the documentation of this file.
1 // MaxReg.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_MAXREGIMPL_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_MAXREGIMPL_H__
17 
21 
22 namespace ipsdk {
23 namespace simd {
24 namespace detail {
25 
28 
30 template <typename T>
31 T
33 {
34  return (in1 > in2 ? in1 : in2);
35 }
36 
37 template <typename T>
38 void
39 MaxReg<eInstructionSet::eIS_Standard, T>::act(const T& in1, const T& in2, T& out)
40 {
41  out = (in1 > in2 ? in1 : in2);
42 }
43 
46 
47 } // end of namespace detail
48 } // end of namespace simd
49 } // end of namespace ipsdk
50 
51 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_MAXREGIMPL_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
template structure which is specialized to implement the maximum computation on 2 scalars or 2 regist...
Definition: MaxRegDecl.h:29
Definition of import/export macro for library.