Home
last modified time | relevance | path

Searched refs:lane (Results 1 – 25 of 174) sorted by relevance

1234567

/third_party/astc-encoder/Source/UnitTest/
Dtest_simd.cpp91 EXPECT_EQ(r0.lane<0>(), 1.0f); in TEST()
96 EXPECT_EQ(r1.lane<0>(), -1.0f); in TEST()
101 EXPECT_EQ(r2.lane<0>(), -3.12f); in TEST()
106 EXPECT_EQ(r3.lane<0>(), 3.12f); in TEST()
114 EXPECT_NEAR(r0.lane<0>(), -0.149061f, 0.005f); in TEST()
118 EXPECT_NEAR(r1.lane<0>(), 0.000000f, 0.005f); in TEST()
122 EXPECT_NEAR(r2.lane<0>(), 0.733616f, 0.005f); in TEST()
126 EXPECT_NEAR(r3.lane<0>(), 1.123040f, 0.005f); in TEST()
135 EXPECT_NEAR(r0.lane<0>(), -0.129816f, 0.005f); in TEST()
140 EXPECT_NEAR(r1.lane<0>(), 3.141592f, 0.005f); in TEST()
[all …]
/third_party/astc-encoder/Source/
Dastcenccli_error_metrics.cpp240 rgb_peak = astc::max(color1.lane<0>(), color1.lane<1>(), color1.lane<2>(), rgb_peak); in compute_error_metrics()
247 diffcolor.lane<0>() * color1.lane<3>(), in compute_error_metrics()
248 diffcolor.lane<1>() * color1.lane<3>(), in compute_error_metrics()
249 diffcolor.lane<2>() * color1.lane<3>(), in compute_error_metrics()
250 diffcolor.lane<3>()); in compute_error_metrics()
265 mpsnr_sumdiff(color1.lane<0>(), color2.lane<0>(), fstop_lo, fstop_hi), in compute_error_metrics()
266 mpsnr_sumdiff(color1.lane<1>(), color2.lane<1>(), fstop_lo, fstop_hi), in compute_error_metrics()
267 mpsnr_sumdiff(color1.lane<2>(), color2.lane<2>(), fstop_lo, fstop_hi), in compute_error_metrics()
268 mpsnr_sumdiff(color1.lane<3>(), color2.lane<3>(), fstop_lo, fstop_hi)); in compute_error_metrics()
283 float normal_cos = clamp(-1.0f, 1.0f, dot3(normal1, normal2)).lane<0>(); in compute_error_metrics()
[all …]
Dastcenc_decompress_symbolic.cpp43 int max_weight_count = hmax(weight_count).lane<0>(); in compute_value_of_texel_weight_int_vla()
261 blk.data_r[i] = color.lane<0>(); in decompress_symbolic_block()
262 blk.data_g[i] = color.lane<1>(); in decompress_symbolic_block()
263 blk.data_b[i] = color.lane<2>(); in decompress_symbolic_block()
264 blk.data_a[i] = color.lane<3>(); in decompress_symbolic_block()
316 blk.data_r[tix] = colorf.lane<0>(); in decompress_symbolic_block()
317 blk.data_g[tix] = colorf.lane<1>(); in decompress_symbolic_block()
318 blk.data_b[tix] = colorf.lane<2>(); in decompress_symbolic_block()
319 blk.data_a[tix] = colorf.lane<3>(); in decompress_symbolic_block()
388 if (color.lane<3>() == 0.0f) in compute_symbolic_block_difference_2plane()
[all …]
Dastcenc_ideal_endpoints_and_weights.cpp57 error_weight = blk.channel_weight.lane<0>(); in compute_ideal_colors_and_weights_1_comp()
61 error_weight = blk.channel_weight.lane<1>(); in compute_ideal_colors_and_weights_1_comp()
65 error_weight = blk.channel_weight.lane<2>(); in compute_ideal_colors_and_weights_1_comp()
70 error_weight = blk.channel_weight.lane<3>(); in compute_ideal_colors_and_weights_1_comp()
258 vfloat4 ep0 = select(blk.data_min, vfloat4(lowvalue.lane<0>()), comp1_mask); in compute_ideal_colors_and_weights_2_comp()
259 vfloat4 ep1 = select(blk.data_max, vfloat4(highvalue.lane<0>()), comp1_mask); in compute_ideal_colors_and_weights_2_comp()
261 ei.ep.endpt0[i] = select(ep0, vfloat4(lowvalue.lane<1>()), comp2_mask); in compute_ideal_colors_and_weights_2_comp()
262 ei.ep.endpt1[i] = select(ep1, vfloat4(highvalue.lane<1>()), comp2_mask); in compute_ideal_colors_and_weights_2_comp()
414 ei.ep.endpt0[i] = vfloat4(bmin.lane<0>(), ep0.lane<0>(), ep0.lane<1>(), ep0.lane<2>()); in compute_ideal_colors_and_weights_3_comp()
415 ei.ep.endpt1[i] = vfloat4(bmax.lane<0>(), ep1.lane<0>(), ep1.lane<1>(), ep1.lane<2>()); in compute_ideal_colors_and_weights_3_comp()
[all …]
Dastcenc_color_quantize.cpp114 float r0 = astc::clamp255f(color0.lane<0>() * scale); in quantize_rgb()
115 float g0 = astc::clamp255f(color0.lane<1>() * scale); in quantize_rgb()
116 float b0 = astc::clamp255f(color0.lane<2>() * scale); in quantize_rgb()
118 float r1 = astc::clamp255f(color1.lane<0>() * scale); in quantize_rgb()
119 float g1 = astc::clamp255f(color1.lane<1>() * scale); in quantize_rgb()
120 float b1 = astc::clamp255f(color1.lane<2>() * scale); in quantize_rgb()
175 float a0 = astc::clamp255f(color0.lane<3>() * scale); in quantize_rgba()
176 float a1 = astc::clamp255f(color1.lane<3>() * scale); in quantize_rgba()
204 float r0 = color0.lane<0>() * scale; in try_quantize_rgb_blue_contract()
205 float g0 = color0.lane<1>() * scale; in try_quantize_rgb_blue_contract()
[all …]
Dastcenc_pick_best_endpoint_format.cpp96 vfloat uncor_bs0(uncor_pline.bs.lane<0>()); in compute_error_squared_rgb_single_partition()
97 vfloat uncor_bs1(uncor_pline.bs.lane<1>()); in compute_error_squared_rgb_single_partition()
98 vfloat uncor_bs2(uncor_pline.bs.lane<2>()); in compute_error_squared_rgb_single_partition()
100 vfloat uncor_amod0(uncor_pline.amod.lane<0>()); in compute_error_squared_rgb_single_partition()
101 vfloat uncor_amod1(uncor_pline.amod.lane<1>()); in compute_error_squared_rgb_single_partition()
102 vfloat uncor_amod2(uncor_pline.amod.lane<2>()); in compute_error_squared_rgb_single_partition()
105 vfloat samec_bs0(samec_pline.bs.lane<0>()); in compute_error_squared_rgb_single_partition()
106 vfloat samec_bs1(samec_pline.bs.lane<1>()); in compute_error_squared_rgb_single_partition()
107 vfloat samec_bs2(samec_pline.bs.lane<2>()); in compute_error_squared_rgb_single_partition()
110 vfloat rgbl_bs0(rgbl_pline.bs.lane<0>()); in compute_error_squared_rgb_single_partition()
[all …]
Dastcenc_image.cpp235 blk.data_r[idx] = datav.lane<0>(); in fetch_image_block()
236 blk.data_g[idx] = datav.lane<1>(); in fetch_image_block()
237 blk.data_b[idx] = datav.lane<2>(); in fetch_image_block()
238 blk.data_a[idx] = datav.lane<3>(); in fetch_image_block()
313 blk.data_r[idx] = datav.lane<0>(); in fetch_image_block_fast_ldr()
314 blk.data_g[idx] = datav.lane<1>(); in fetch_image_block_fast_ldr()
315 blk.data_b[idx] = datav.lane<2>(); in fetch_image_block_fast_ldr()
316 blk.data_a[idx] = datav.lane<3>(); in fetch_image_block_fast_ldr()
470 data16[(4 * xsize * y) + (4 * x )] = static_cast<uint16_t>(color.lane<0>()); in write_image_block()
471 data16[(4 * xsize * y) + (4 * x + 1)] = static_cast<uint16_t>(color.lane<1>()); in write_image_block()
[all …]
Dastcenc_vecmathlib_common_4.h129 return a.lane<0>() + a.lane<1>() + a.lane<2>(); in hadd_rgb_s()
253 return hmin(a).lane<0>(); in hmin_s()
261 a.set_lane<3>(a.lane<0>()); in hmin_rgb_s()
270 return hmax(a).lane<0>(); in hmax_s()
295 return a.lane<0>() + a.lane<1>() + a.lane<2>(); in hadd_rgb_s()
Dastcenc_averages_and_directions.cpp790 vfloat l_uncor_bs0(l_uncor.bs.lane<0>()); in compute_error_squared_rgba()
791 vfloat l_uncor_bs1(l_uncor.bs.lane<1>()); in compute_error_squared_rgba()
792 vfloat l_uncor_bs2(l_uncor.bs.lane<2>()); in compute_error_squared_rgba()
793 vfloat l_uncor_bs3(l_uncor.bs.lane<3>()); in compute_error_squared_rgba()
795 vfloat l_uncor_amod0(l_uncor.amod.lane<0>()); in compute_error_squared_rgba()
796 vfloat l_uncor_amod1(l_uncor.amod.lane<1>()); in compute_error_squared_rgba()
797 vfloat l_uncor_amod2(l_uncor.amod.lane<2>()); in compute_error_squared_rgba()
798 vfloat l_uncor_amod3(l_uncor.amod.lane<3>()); in compute_error_squared_rgba()
800 vfloat l_samec_bs0(l_samec.bs.lane<0>()); in compute_error_squared_rgba()
801 vfloat l_samec_bs1(l_samec.bs.lane<1>()); in compute_error_squared_rgba()
[all …]
/third_party/vixl/test/aarch64/
Dtest-utils-aarch64.h61 T GetLane(int lane) const { in GetLane()
63 VIXL_CHECK(lane >= 0); in GetLane()
64 VIXL_CHECK(kSizeInBytes >= ((lane + 1) * lane_size)); in GetLane()
66 memcpy(&result, bytes + (lane * lane_size), lane_size); in GetLane()
71 void SetLane(int lane, T value) { in SetLane()
73 VIXL_CHECK(kSizeInBytes >= ((lane + 1) * lane_size)); in SetLane()
74 memcpy(bytes + (lane * lane_size), &value, lane_size); in SetLane()
164 inline T zreg_lane(unsigned code, int lane) const { in zreg_lane() argument
167 VIXL_ASSERT(lane < GetSVELaneCount(sizeof(T) * kBitsPerByte)); in zreg_lane()
168 return dump_.z_[code].GetLane<T>(lane); in zreg_lane()
[all …]
/third_party/typescript/src/debug/
Ddbg.ts186 lane: number;
272 lane: -1,
282 …links[id] = graphNode = { id, flowNode, edges: [], text: "", lane: -1, endLane: -1, level: -1, cir…
332 function computeLanes(node: FlowGraphNode, lane: number) {
333 if (node.lane === -1) {
334 node.lane = lane;
335 node.endLane = lane;
338 if (i > 0) lane++;
340 computeLanes(child, lane);
342 lane = child.endLane;
[all …]
/third_party/python/Modules/_sha3/kcp/
DKeccakP-1600-opt64.c98 UINT64 lane; in KeccakP1600_AddBytesInLane() local
102 lane = data[0]; in KeccakP1600_AddBytesInLane()
104 lane = 0; in KeccakP1600_AddBytesInLane()
105 memcpy(&lane, data, length); in KeccakP1600_AddBytesInLane()
107 lane <<= offset*8; in KeccakP1600_AddBytesInLane()
109 UINT64 lane = 0; in KeccakP1600_AddBytesInLane()
112 lane |= ((UINT64)data[i]) << ((i+offset)*8); in KeccakP1600_AddBytesInLane()
114 ((UINT64*)state)[lanePosition] ^= lane; in KeccakP1600_AddBytesInLane()
164 UINT64 lane = (UINT64)curData[0] in KeccakP1600_AddLanes()
172 ((UINT64*)state)[i] ^= lane; in KeccakP1600_AddLanes()
[all …]
/third_party/optimized-routines/math/
Dv_pow.c17 for (int lane = 0; lane < v_lanes64 (); lane++) in V_NAME() local
19 f64_t sx = v_get_f64 (x, lane); in V_NAME()
20 f64_t sy = v_get_f64 (y, lane); in V_NAME()
22 v_set_f64 (&z, lane, sz); in V_NAME()
Dv_powf.c162 for (int lane = 0; lane < v_lanes32 (); lane++) in V_NAME() local
172 si = v_get_u32 (i, lane); in V_NAME()
173 siz = v_get_u32 (iz, lane); in V_NAME()
174 sk = v_get_s32 (k, lane); in V_NAME()
175 sy = v_get_f32 (y, lane); in V_NAME()
201 v_set_u32 (&cmp, lane, in V_NAME()
205 : v_get_u32 (cmp, lane)); in V_NAME()
228 v_set_f32 (&ret, lane, p); in V_NAME()
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/comp/
Dsubgroups.nocompat.invalid.vk.msl21.ios.comp16 inline T spvSubgroupShuffle(T value, ushort lane)
18 return quad_shuffle(value, lane);
22 inline bool spvSubgroupShuffle(bool value, ushort lane)
24 return !!quad_shuffle((ushort)value, lane);
28 inline vec<bool, N> spvSubgroupShuffle(vec<bool, N> value, ushort lane)
30 return (vec<bool, N>)quad_shuffle((vec<ushort, N>)value, lane);
88 inline T spvQuadBroadcast(T value, uint lane)
90 return quad_broadcast(value, lane);
94 inline bool spvQuadBroadcast(bool value, uint lane)
96 return !!quad_broadcast((ushort)value, lane);
[all …]
Dsubgroups.nocompat.invalid.vk.msl22.ios.comp16 inline T spvSubgroupBroadcast(T value, ushort lane)
18 return quad_broadcast(value, lane);
22 inline bool spvSubgroupBroadcast(bool value, ushort lane)
24 return !!quad_broadcast((ushort)value, lane);
28 inline vec<bool, N> spvSubgroupBroadcast(vec<bool, N> value, ushort lane)
30 return (vec<bool, N>)quad_broadcast((vec<ushort, N>)value, lane);
117 inline T spvSubgroupShuffle(T value, ushort lane)
119 return quad_shuffle(value, lane);
123 inline bool spvSubgroupShuffle(bool value, ushort lane)
125 return !!quad_shuffle((ushort)value, lane);
[all …]
Dsubgroups.nocompat.invalid.vk.msl23.ios.simd.comp16 inline T spvSubgroupBroadcast(T value, ushort lane)
18 return simd_broadcast(value, lane);
22 inline bool spvSubgroupBroadcast(bool value, ushort lane)
24 return !!simd_broadcast((ushort)value, lane);
28 inline vec<bool, N> spvSubgroupBroadcast(vec<bool, N> value, ushort lane)
30 return (vec<bool, N>)simd_broadcast((vec<ushort, N>)value, lane);
117 inline T spvSubgroupShuffle(T value, ushort lane)
119 return simd_shuffle(value, lane);
123 inline bool spvSubgroupShuffle(bool value, ushort lane)
125 return !!simd_shuffle((ushort)value, lane);
[all …]
Dsubgroups.nocompat.invalid.vk.msl21.fixed-subgroup.comp16 inline T spvSubgroupBroadcast(T value, ushort lane)
18 return simd_broadcast(value, lane);
22 inline bool spvSubgroupBroadcast(bool value, ushort lane)
24 return !!simd_broadcast((ushort)value, lane);
28 inline vec<bool, N> spvSubgroupBroadcast(vec<bool, N> value, ushort lane)
30 return (vec<bool, N>)simd_broadcast((vec<ushort, N>)value, lane);
122 inline T spvSubgroupShuffle(T value, ushort lane)
124 return simd_shuffle(value, lane);
128 inline bool spvSubgroupShuffle(bool value, ushort lane)
130 return !!simd_shuffle((ushort)value, lane);
[all …]
Dsubgroups.nocompat.invalid.vk.msl21.comp16 inline T spvSubgroupBroadcast(T value, ushort lane)
18 return simd_broadcast(value, lane);
22 inline bool spvSubgroupBroadcast(bool value, ushort lane)
24 return !!simd_broadcast((ushort)value, lane);
28 inline vec<bool, N> spvSubgroupBroadcast(vec<bool, N> value, ushort lane)
30 return (vec<bool, N>)simd_broadcast((vec<ushort, N>)value, lane);
122 inline T spvSubgroupShuffle(T value, ushort lane)
124 return simd_shuffle(value, lane);
128 inline bool spvSubgroupShuffle(bool value, ushort lane)
130 return !!simd_shuffle((ushort)value, lane);
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/frag/
Dsubgroups.nocompat.invalid.vk.msl22.frag14 inline T spvSubgroupBroadcast(T value, ushort lane)
16 return simd_broadcast(value, lane);
20 inline bool spvSubgroupBroadcast(bool value, ushort lane)
22 return !!simd_broadcast((ushort)value, lane);
26 inline vec<bool, N> spvSubgroupBroadcast(vec<bool, N> value, ushort lane)
28 return (vec<bool, N>)simd_broadcast((vec<ushort, N>)value, lane);
120 inline T spvSubgroupShuffle(T value, ushort lane)
122 return simd_shuffle(value, lane);
126 inline bool spvSubgroupShuffle(bool value, ushort lane)
128 return !!simd_shuffle((ushort)value, lane);
[all …]
/third_party/node/deps/base64/base64/lib/arch/neon32/
Ddec_loop.c25 dec_loop_neon32_lane (uint8x16_t *lane) in dec_loop_neon32_lane() argument
41 const uint8x16_t hi_nibbles = vshrq_n_u8(*lane, 4); in dec_loop_neon32_lane()
42 const uint8x16_t lo_nibbles = vandq_u8(*lane, mask_0F); in dec_loop_neon32_lane()
43 const uint8x16_t eq_2F = vceqq_u8(*lane, mask_2F); in dec_loop_neon32_lane()
49 *lane = vaddq_u8(*lane, delta_lookup(vaddq_u8(eq_2F, hi_nibbles))); in dec_loop_neon32_lane()
/third_party/mesa3d/src/panfrost/bifrost/valhall/
Dvalhall.py103 …halfswizzle = False, widen = False, lanes = False, combine = False, lane = None, absneg = False, n… argument
113 self.lane = lane
130 if lane:
131 self.offset['lane'] = self.lane
163 self.lane = False
226 lane = el.get('lane', None)
227 if lane == "true":
228 lane = 38 if i == 0 else 36
229 elif lane is not None:
230 lane = int(lane)
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMInstrNEON.td256 // Register list of one D register, with byte lane subscripting.
266 // ...with half-word lane subscripting.
276 // ...with word lane subscripting.
287 // Register list of two D registers with byte lane subscripting.
297 // ...with half-word lane subscripting.
307 // ...with word lane subscripting.
317 // Register list of two Q registers with half-word lane subscripting.
327 // ...with word lane subscripting.
339 // Register list of three D registers with byte lane subscripting.
349 // ...with half-word lane subscripting.
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSpirvShaderDebugger.cpp57 sw::vec<T, N> operator[](int lane) const in operator []()
62 out[i] = elements[i][lane]; in operator []()
72 const T &operator[](int lane) const { return data[lane]; } in operator []()
266 for(int lane = 0; lane < sw::SIMD::Width; lane++) in get() local
268 auto laneN = laneName(lane); in get()
1073 inline Memory dref(int lane) const;
1172 Shared(debug::LocalVariable const *const variable, State const *const state, int const lane) in Shared()
1175 , lane(lane) in Shared()
1182 int const lane; member
1185 LocalVariableValue(debug::LocalVariable *variable, State const *const state, int lane);
[all …]
/third_party/node/deps/v8/src/execution/ppc/
Dsimulator-ppc.h421 T get_simd_register_by_lane(int reg, int lane,
424 lane = (kSimd128Size / sizeof(T)) - 1 - lane;
426 CHECK_LE(lane, kSimd128Size / sizeof(T));
428 CHECK_GE(lane, 0);
430 return (reinterpret_cast<T*>(&simd_registers_[reg]))[lane];
444 void set_simd_register_by_lane(int reg, int lane, const T& value,
447 lane = (kSimd128Size / sizeof(T)) - 1 - lane;
449 CHECK_LE(lane, kSimd128Size / sizeof(T));
451 CHECK_GE(lane, 0);
453 (reinterpret_cast<T*>(&simd_registers_[reg]))[lane] = value;

1234567