IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AcosReg.h
Go to the documentation of this file.
1 // AcosReg.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_ACOSREG_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_ACOSREG_H__
17 
20 #include <cmath>
21 
22 namespace ipsdk {
23 namespace simd {
24 namespace detail {
25 
28 
30 template <typename T>
32 {
33  static IPSDK_FORCEINLINE
34  T
35  act(const T& in)
36  {
37  return std::acos(in);
38  }
39 
40  static IPSDK_FORCEINLINE
41  void
42  act(const T& in, T& out)
43  {
44  out = std::acos(in);
45  }
46 };
47 
50 
51 } // end of namespace detail
52 } // end of namespace simd
53 } // end of namespace ipsdk
54 
55 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_ACOSREG_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
template structure which is specialized to implement the computation of acos function on a scalar or ...
Definition: AcosReg.h:37
eInstructionSet
Enumerate for processor instruction set description.
Definition: InstructionSetTypes.h:31
Definition of import/export macro for library.
compiler optimisations only
Definition: InstructionSetTypes.h:34