IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
toBool.h
Go to the documentation of this file.
1 // toBool.h:
3 // -----------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_TOBOOL_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_TOBOOL_H__
17 
19 
23 
24 namespace ipsdk {
25 namespace simd {
26 
29 
31 template <eInstructionSet::domain instructionSet,
32  ePackType::domain packType,
33  typename T>
34 IPSDK_FORCEINLINE
35 BasePack<packType, ipUInt8>
37 {
39 }
40 
41 template <eInstructionSet::domain instructionSet,
42  ePackType::domain packType,
43  typename T>
44 IPSDK_FORCEINLINE
45 void
46 toBool(const BasePack<packType, T>& in,
47  BasePack<packType, ipUInt8>& out)
48 {
49  detail::ToBoolPack<instructionSet, T>::act(in, out);
50 }
51 
52 template <eInstructionSet::domain instructionSet,
53  ePackType::domain packType,
54  typename T>
55 IPSDK_FORCEINLINE
56 void
57 toBool(const BaseMaskPack<packType, T>& in,
58  BasePack<packType, ipUInt8>& out)
59 {
60  detail::ToBoolPack<instructionSet, T>::act(in, out);
61 }
62 
65 
66 } // end of namespace simd
67 } // end of namespace ipsdk
68 
69 #endif // __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_TOBOOL_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDK_FORCEINLINE BasePack< packType, ipUInt8 > toBool(const BasePack< packType, T > &in)
toBool function; TODO
Definition: toBool.h:36
defines template structures PromotedType<T1, T2> and PromotedType3<T1, T2, T3>; their attribute Type ...
Definition: ToBoolPack.h:30
Definition of import/export macro for library.
structure containing intrinsic registers used to store vectorized data
Definition: BasePackDecl.h:29