IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ToBoolPack.h
Go to the documentation of this file.
1 // ToBoolPack.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_DETAIL_STD_TOBOOLPACK_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_DETAIL_STD_TOBOOLPACK_H__
17 
21 
22 namespace ipsdk {
23 namespace simd {
24 namespace detail {
25 
28 
29 template <typename T>
31 {
32  static IPSDK_FORCEINLINE
35  {
36  return BasePack<ePackType::ePT_Scalar, ipUInt8>(in._val != 0);
37  }
38 
39  static IPSDK_FORCEINLINE
40  void
43  {
44  out = BasePack<ePackType::ePT_Scalar, ipUInt8>(in._val != 0);
45  }
46 
47  static IPSDK_FORCEINLINE
48  void
51  {
52  out = BasePack<ePackType::ePT_Scalar, ipUInt8>(in._val != 0);
53  }
54 };
55 
58 
59 } // end of namespace detail
60 } // end of namespace simd
61 } // end of namespace ipsdk
62 
63 #endif // __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_DETAIL_STD_TOBOOLPACK_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
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: ToBoolPack.h:30
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