IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
abs.h
Go to the documentation of this file.
1 // abs.h:
3 // -----------------
4 //
16 
17 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_ABS_H__
18 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_ABS_H__
19 
21 
27 
28 namespace ipsdk {
29 namespace simd {
30 
33 
38 template <eInstructionSet::domain instructionSet, class PackT>
39 IPSDK_FORCEINLINE
40 PackT
41 abs(const PackT& in)
42 {
43  PackT out;
44  typedef typename PackT::DataType T;
46  return out;
47 }
48 
55 template <eInstructionSet::domain instructionSet, class PackT>
56 IPSDK_FORCEINLINE
57 void
58 abs(const PackT& in, PackT& out)
59 {
61 }
62 
65 
66 } // end of namespace simd
67 } // end of namespace ipsdk
68 
69 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_ABS_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
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.
IPSDK_FORCEINLINE PackT abs(const PackT &in)
returns the absolute value of a pack
Definition: abs.h:41
Definition: AbsPack.h:46