IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
sub.h
Go to the documentation of this file.
1 // sub.h:
3 // -----------------
4 //
17 
18 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_SUB_H__
19 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_SUB_H__
20 
22 
26 
27 namespace ipsdk {
28 namespace simd {
29 
32 
38 template <eInstructionSet::domain instructionSet,
39  class PackT>
40 IPSDK_FORCEINLINE
41 PackT
42 sub(const PackT& in1, const PackT& in2)
43 {
44  typedef typename PackT::DataType T;
46 }
47 
48 template <eInstructionSet::domain instructionSet,
49  class PackT>
50 IPSDK_FORCEINLINE
51 void
52 sub(const PackT& in1, const PackT& in2, PackT& out)
53 {
54  typedef typename PackT::DataType T;
55  detail::SubPack<instructionSet, T, T>::act(in1, in2, out);
56 }
57 
60 
61 } // end of namespace simd
62 } // end of namespace ipsdk
63 
64 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_SUB_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDK_FORCEINLINE PackT sub(const PackT &in1, const PackT &in2)
returns the result of an arithmetic substraction on 2 input pack operandes
Definition: sub.h:42
Definition: SubPack.h:48
defines template structures PromotedType<T1, T2> and PromotedType3<T1, T2, T3>; their attribute Type ...
Vector DataType
data type used for estimation
Definition: EstimationTypes.h:58
Definition of import/export macro for library.