IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
CastPack.h
Go to the documentation of this file.
1 // CastPack.h:
3 // ------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_DETAIL_STD_CASTPACK_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_DETAIL_STD_CASTPACK_H__
17 
23 
24 namespace ipsdk {
25 namespace simd {
26 namespace detail {
27 
30 
31 template <typename TIn, typename TOut>
33 {
34  static IPSDK_FORCEINLINE
37  {
39  out._val = static_cast<TOut>(in._val);
40  return out;
41  }
42 
43  static IPSDK_FORCEINLINE
44  void
47  {
48  out._val = static_cast<TOut>(in._val);
49  }
50 
51  static IPSDK_FORCEINLINE
52  void
55  {
56  out._val = static_cast<TOut>(in._val);
57  }
58 };
59 
62 
63 } // end of namespace detail
64 } // end of namespace simd
65 } // end of namespace ipsdk
66 
67 #endif // __IPSDKUTIL_INSTRUCTIONSET_DETAIL_STD_CASTPACK_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Definition: CastPack.h:33
structure containing set of masks for vectorized operations
Definition: BaseMaskPackDecl.h:29
BaseMaskPack class; defines a set of masks; the number of masks in this set depends on the type of th...
BasePack class; defines a set of scalars (for instruction set "standard") or registers (for all other...
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
structure containing intrinsic registers used to store vectorized data
Definition: BasePackDecl.h:29