IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
FloorPack.h
Go to the documentation of this file.
1 // FloorPack.h:
3 // -----------------
4 //
18 
19 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_FLOORPACK_H__
20 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_FLOORPACK_H__
21 
23 #include <IPSDKUtil/InstructionSet/Arithmetic/detail/FloorReg.h>
27 
28 namespace ipsdk {
29 namespace simd {
30 namespace detail {
31 
34 
36 template <eInstructionSet::domain instructionSet, typename T>
37 struct FloorPack
38 {
39  static
40  IPSDK_FORCEINLINE
42  act(const typename IS2Pack<instructionSet, T>::Type& in)
43  {
44  return UnaryPackOp<instructionSet, T,
45  FloorReg<instructionSet, T> >::act(in);
46  }
47 
48  static
49  IPSDK_FORCEINLINE
50  void
51  act(const typename IS2Pack<instructionSet, T>::Type& in,
53  {
55  in, out);
56  }
57 };
58 
61 
62 } // end of namespace detail
63 } // end of namespace simd
64 } // end of namespace ipsdk
65 
66 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_FLOORPACK_H__
Definition: FloorPack.h:37
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
template structure which is specialized to implement the computation of value rounded to closest even...
Definition: FloorReg.h:36
Definition of import/export macro for library.
Definition: UnaryPackOp.h:31
Definition: IS2Pack.h:34