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