IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
IsLessEqualRegImpl.h
Go to the documentation of this file.
1 // IsLessEqualRegImpl.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_COMPARISON_DETAIL_STD_ISLESSEQUALREGIMPL_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_COMPARISON_DETAIL_STD_ISLESSEQUALREGIMPL_H__
17 
23 
24 namespace ipsdk {
25 namespace simd {
26 namespace detail {
27 
30 
31 template <typename T>
32 typename RegMaskType<eInstructionSet::eIS_Standard, T>::Type
33 IsLessEqualReg<eInstructionSet::eIS_Standard, T>::act(
34  const T& in1,
35  const T& in2)
36 {
37  return in1 <= in2 ? AllBitsToOneReg<eInstructionSet::eIS_Standard, T>::act() : 0;
38 }
39 
40 template <typename T>
41 void
42 IsLessEqualReg<eInstructionSet::eIS_Standard, T>::act(
43  const T& in1,
44  const T& in2,
45  typename RegMaskType<eInstructionSet::eIS_Standard, T>::Type& out)
46 {
47  out = (in1 <= in2 ? AllBitsToOneReg<eInstructionSet::eIS_Standard, T>::act() : 0);
48 }
49 
52 
53 } // end of namespace detail
54 } // end of namespace simd
55 } // end of namespace ipsdk
56 
57 #endif // __IPSDKUTIL_INSTRUCTIONSET_COMPARISON_DETAIL_STD_ISLESSEQUALREGIMPL_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...
Definition of import/export macro for library.