IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
TanPack.h
Go to the documentation of this file.
1 // TanPack.h:
3 // -----------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_TANPACK_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_TANPACK_H__
17 
21 #include <IPSDKUtil/InstructionSet/Arithmetic/detail/TanReg.h>
24 #include <IPSDKUtil/InstructionSet/Pack.h>
25 
26 namespace ipsdk {
27 namespace simd {
28 namespace detail {
29 
32 
39 template <eInstructionSet::domain instructionSet, eInstructionSet::domain instructionSetFma, typename T,
40  typename Enable=void>
41 struct TanPack
42 {
43  static
44  IPSDK_FORCEINLINE
46  act(const typename IS2Pack<instructionSet, T>::Type& in)
47  {
48  return UnaryPackOp<instructionSet, T,
50  }
51 
52  static
53  IPSDK_FORCEINLINE
54  void
55  act(const typename IS2Pack<instructionSet, T>::Type& in,
57  {
58  UnaryPackOp<instructionSet, T,
60  }
61 };
62 
65 
66 } // end of namespace detail
67 } // end of namespace simd
68 } // end of namespace ipsdk
69 
70 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_TANPACK_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
template structure which is specialized to implement the computation of tan function on a scalar or a...
Definition: TanReg.h:39
Definition: TanPack.h:41
Predefined types associated to instruction set management.
Definition of import/export macro for library.
Definition: UnaryPackOp.h:31
Definition: IS2Pack.h:34