IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AllBits.h
Go to the documentation of this file.
1 // AllBits.h:
3 // -----------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_ALLBITS_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_ALLBITS_H__
17 
19 
20 namespace ipsdk {
21 namespace simd {
22 
25 
26 template <typename T>
27 struct AllBits
28 {
29 };
30 
31 template <>
32 struct AllBits<ipInt8>
33 {
34  typedef ipInt8 ValueType;
35  static const ValueType value = -1;
36 };
37 
38 template <>
40 {
41  typedef ipUInt8 ValueType;
42  static const ValueType value = 0xFF;
43 };
44 
45 template <>
47 {
48  typedef ipInt16 ValueType;
49  static const ValueType value = -1;
50 };
51 
52 template <>
54 {
55  typedef ipUInt16 ValueType;
56  static const ValueType value = 0xFFFF;
57 };
58 
59 template <>
61 {
62  typedef ipInt32 ValueType;
63  static const ValueType value = -1;
64 };
65 
66 template <>
68 {
69  typedef ipUInt32 ValueType;
70  static const ValueType value = 0xFFFFFFFF;
71 };
72 
73 template <>
75 {
76  typedef ipInt64 ValueType;
77  static const ValueType value = -1;
78 };
79 
80 template <>
82 {
83  typedef ipUInt64 ValueType;
84  static const ValueType value = 0xFFFFFFFFFFFFFFFF;
85 };
86 
87 template <>
89 {
90  typedef ipUInt32 ValueType;
91  static const ValueType value = 0xFFFFFFFF;
92 };
93 
94 template <>
96 {
97  typedef ipUInt64 ValueType;
98  static const ValueType value = 0xFFFFFFFFFFFFFFFF;
99 };
100 
103 
104 } // end of namespace simd
105 } // end of namespace ipsdk
106 
107 #endif // __IPSDKUTIL_INSTRUCTIONSET_LOGICAL_TOBOOL_H__
int8_t ipInt8
Base types definition.
Definition: BaseTypes.h:48
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
int32_t ipInt32
Base types definition.
Definition: BaseTypes.h:52
int16_t ipInt16
Base types definition.
Definition: BaseTypes.h:50
uint8_t ipUInt8
Base types definition.
Definition: BaseTypes.h:49
Definition: AllBits.h:27
Definition of import/export macro for library.
int64_t ipInt64
Base types definition.
Definition: BaseTypes.h:54
uint16_t ipUInt16
Base types definition.
Definition: BaseTypes.h:51
float ipReal32
Base types definition.
Definition: BaseTypes.h:56
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53