IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
tan.h
Go to the documentation of this file.
1 // tan.h:
3 // -----------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_TAN_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_TAN_H__
17 
19 
22 
23 namespace ipsdk {
24 namespace simd {
25 
28 
29 template <eInstructionSet::domain IS, eInstructionSet::domain ISFma, class PackT>
30 IPSDK_FORCEINLINE
31 PackT
32 tan(const PackT& in)
33 {
34  typedef typename PackT::DataType T;
35  return detail::TanPack<IS, ISFma, T>::act(in);
36 }
37 
38 template <eInstructionSet::domain IS, eInstructionSet::domain ISFma, class PackT>
39 IPSDK_FORCEINLINE
40 void
41 tan(const PackT& in, PackT& out)
42 {
43  typedef typename PackT::DataType T;
44  detail::TanPack<IS, ISFma, T>::act(in, out);
45 }
46 
49 
50 } // end of namespace simd
51 } // end of namespace ipsdk
52 
53 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_TAN_H__
TanPack<eInstructionSet::domain instructionSet, typename T, typename Enable=void> structure...
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Vector DataType
data type used for estimation
Definition: EstimationTypes.h:58
Definition of import/export macro for library.