Lines Matching refs:aligned
62 SrcScalarType aligned[4]; in readOrder() local
63 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType)); in readOrder()
65 dst[Order::T0] = DstScalarType(aligned[0]); in readOrder()
66 if (size >= 2) dst[Order::T1] = DstScalarType(aligned[1]); in readOrder()
67 if (size >= 3) dst[Order::T2] = DstScalarType(aligned[2]); in readOrder()
68 if (size >= 4) dst[Order::T3] = DstScalarType(aligned[3]); in readOrder()
76 SrcScalarType aligned[4]; in readUnormOrder() local
77 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType)); in readUnormOrder()
79 dst[Order::T0] = float(aligned[0]) / float(range); in readUnormOrder()
80 if (size >= 2) dst[Order::T1] = float(aligned[1]) / float(range); in readUnormOrder()
81 if (size >= 3) dst[Order::T2] = float(aligned[2]) / float(range); in readUnormOrder()
82 if (size >= 4) dst[Order::T3] = float(aligned[3]) / float(range); in readUnormOrder()
91 SrcScalarType aligned[4]; in readSnormClamp() local
92 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType)); in readSnormClamp()
94 dst[0] = de::max(-1.0f, float(aligned[0]) / float(range)); in readSnormClamp()
95 if (size >= 2) dst[1] = de::max(-1.0f, float(aligned[1]) / float(range)); in readSnormClamp()
96 if (size >= 3) dst[2] = de::max(-1.0f, float(aligned[2]) / float(range)); in readSnormClamp()
97 if (size >= 4) dst[3] = de::max(-1.0f, float(aligned[3]) / float(range)); in readSnormClamp()
106 SrcScalarType aligned[4]; in readSnormScale() local
107 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType)); in readSnormScale()
109 dst[0] = (float(aligned[0]) * 2.0f + 1.0f) / float(range); in readSnormScale()
110 if (size >= 2) dst[1] = (float(aligned[1]) * 2.0f + 1.0f) / float(range); in readSnormScale()
111 if (size >= 3) dst[2] = (float(aligned[2]) * 2.0f + 1.0f) / float(range); in readSnormScale()
112 if (size >= 4) dst[3] = (float(aligned[3]) * 2.0f + 1.0f) / float(range); in readSnormScale()
117 deUint16 aligned[4]; in readHalf() local
118 deMemcpy(aligned, ptr, size * sizeof(deUint16)); in readHalf()
120 dst[0] = tcu::Float16(aligned[0]).asFloat(); in readHalf()
121 if (size >= 2) dst[1] = tcu::Float16(aligned[1]).asFloat(); in readHalf()
122 if (size >= 3) dst[2] = tcu::Float16(aligned[2]).asFloat(); in readHalf()
123 if (size >= 4) dst[3] = tcu::Float16(aligned[3]).asFloat(); in readHalf()
128 deInt32 aligned[4]; in readFixed() local
129 deMemcpy(aligned, ptr, size * sizeof(deInt32)); in readFixed()
131 dst[0] = aligned[0] / float(1 << 16); in readFixed()
132 if (size >= 2) dst[1] = aligned[1] / float(1 << 16); in readFixed()
133 if (size >= 3) dst[2] = aligned[2] / float(1 << 16); in readFixed()
134 if (size >= 4) dst[3] = aligned[3] / float(1 << 16); in readFixed()
139 double aligned[4]; in readDouble() local
140 deMemcpy(aligned, ptr, size * sizeof(double)); in readDouble()
142 dst[0] = float(aligned[0]); in readDouble()
143 if (size >= 2) dst[1] = float(aligned[1]); in readDouble()
144 if (size >= 3) dst[2] = float(aligned[2]); in readDouble()
145 if (size >= 4) dst[3] = float(aligned[3]); in readDouble()
157 deUint32 aligned; in readUint2101010Rev() local
158 deMemcpy(&aligned, ptr, sizeof(deUint32)); in readUint2101010Rev()
160 dst[0] = DstScalarType((aligned >> 0) & ((1 << 10) - 1)); in readUint2101010Rev()
161 if (size >= 2) dst[1] = DstScalarType((aligned >> 10) & ((1 << 10) - 1)); in readUint2101010Rev()
162 if (size >= 3) dst[2] = DstScalarType((aligned >> 20) & ((1 << 10) - 1)); in readUint2101010Rev()
163 if (size >= 4) dst[3] = DstScalarType((aligned >> 30) & ((1 << 2) - 1)); in readUint2101010Rev()
169 deUint32 aligned; in readInt2101010Rev() local
170 deMemcpy(&aligned, ptr, sizeof(deUint32)); in readInt2101010Rev()
172 dst[0] = (DstScalarType)extendSign<10>((aligned >> 0) & ((1 << 10) - 1)); in readInt2101010Rev()
173 if (size >= 2) dst[1] = (DstScalarType)extendSign<10>((aligned >> 10) & ((1 << 10) - 1)); in readInt2101010Rev()
174 if (size >= 3) dst[2] = (DstScalarType)extendSign<10>((aligned >> 20) & ((1 << 10) - 1)); in readInt2101010Rev()
175 if (size >= 4) dst[3] = (DstScalarType)extendSign< 2>((aligned >> 30) & ((1 << 2) - 1)); in readInt2101010Rev()
184 deUint32 aligned; in readUnorm2101010RevOrder() local
185 deMemcpy(&aligned, ptr, sizeof(deUint32)); in readUnorm2101010RevOrder()
187 dst[Order::T0] = float((aligned >> 0) & ((1 << 10) - 1)) / float(range10); in readUnorm2101010RevOrder()
188 if (size >= 2) dst[Order::T1] = float((aligned >> 10) & ((1 << 10) - 1)) / float(range10); in readUnorm2101010RevOrder()
189 if (size >= 3) dst[Order::T2] = float((aligned >> 20) & ((1 << 10) - 1)) / float(range10); in readUnorm2101010RevOrder()
190 if (size >= 4) dst[Order::T3] = float((aligned >> 30) & ((1 << 2) - 1)) / float(range2); in readUnorm2101010RevOrder()
200 deUint32 aligned; in readSnorm2101010RevClampOrder() local
201 deMemcpy(&aligned, ptr, sizeof(deUint32)); in readSnorm2101010RevClampOrder()
203 …dst[Order::T0] = de::max(-1.0f, float(extendSign<10>((aligned >> 0) & ((1 << 10) - 1))) / float(r… in readSnorm2101010RevClampOrder()
204 …if (size >= 2) dst[Order::T1] = de::max(-1.0f, float(extendSign<10>((aligned >> 10) & ((1 << 10) -… in readSnorm2101010RevClampOrder()
205 …if (size >= 3) dst[Order::T2] = de::max(-1.0f, float(extendSign<10>((aligned >> 20) & ((1 << 10) -… in readSnorm2101010RevClampOrder()
206 …if (size >= 4) dst[Order::T3] = de::max(-1.0f, float(extendSign< 2>((aligned >> 30) & ((1 << 2) -… in readSnorm2101010RevClampOrder()
216 deUint32 aligned; in readSnorm2101010RevScaleOrder() local
217 deMemcpy(&aligned, ptr, sizeof(deUint32)); in readSnorm2101010RevScaleOrder()
219 …dst[Order::T0] = (float(extendSign<10>((aligned >> 0) & ((1 << 10) - 1)) * 2.0f + 1.0f) / float(r… in readSnorm2101010RevScaleOrder()
220 …if (size >= 2) dst[Order::T1] = (float(extendSign<10>((aligned >> 10) & ((1 << 10) - 1)) * 2.0f + … in readSnorm2101010RevScaleOrder()
221 …if (size >= 3) dst[Order::T2] = (float(extendSign<10>((aligned >> 20) & ((1 << 10) - 1)) * 2.0f + … in readSnorm2101010RevScaleOrder()
222 …if (size >= 4) dst[Order::T3] = (float(extendSign< 2>((aligned >> 30) & ((1 << 2) - 1)) * 2.0f + … in readSnorm2101010RevScaleOrder()