IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AsinPack.h
Go to the documentation of this file.
1 // AsinPack.h:
3 // -----------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_ASINPACK_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_ASINPACK_H__
17 
22 #include <IPSDKUtil/InstructionSet/Arithmetic/detail/AsinReg.h>
25 #include <IPSDKUtil/InstructionSet/Pack.h>
38 #include <boost/type_traits/is_float.hpp>
39 
40 namespace ipsdk {
41 namespace simd {
42 namespace detail {
43 
46 
53 template <eInstructionSet::domain instructionSet, typename T>
54 struct AsinPack
55 {
56  static
57  IPSDK_FORCEINLINE
59  act(const typename IS2Pack<instructionSet, T>::Type& in)
60  {
61  return UnaryPackOp<instructionSet, T,
62  AsinReg<instructionSet, T> >::act(in);
63  }
64 
65  static
66  IPSDK_FORCEINLINE
67  void
68  act(const typename IS2Pack<instructionSet, T>::Type& in,
70  {
71  UnaryPackOp<instructionSet, T,
72  AsinReg<instructionSet, T> >::act(in, out);
73  }
74 };
75 
78 
79 } // end of namespace detail
80 } // end of namespace simd
81 } // end of namespace ipsdk
82 
83 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_ASINPACK_H__
template structure which is specialized to implement the computation of asin function on a scalar or ...
Definition: AsinReg.h:38
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Definition: AsinPack.h:54
abs function; returns the absolute value of a pack
mul function; returns the product of 2 input pack operandes
sqrt function; returns the square root of a pack
load function; loads a buffer into a pack
function assigning a given value of type T to a given Pack<instructionSet, T>
Predefined types associated to instruction set management.
div function; returns the quotient of 2 input pack operandes
Definition of import/export macro for library.
sub function; returns the result of an arithmetic substraction on all the elements of 2 input pack op...
unload function; unloads a pack into a memory buffer
Definition: UnaryPackOp.h:31
add function; returns the result of an arithmetic add operation on all the elements of 2 input pack o...
max function; returns the maximum of 2 packs
Definition: IS2Pack.h:34