Home
last modified time | relevance | path

Searched refs:vint4 (Results 1 – 17 of 17) sorted by relevance

/third_party/astc-encoder/Source/
Dastcenc_vecmathlib_neon_4.h182 struct vint4 struct
187 ASTCENC_SIMD_INLINE vint4() = default;
195 ASTCENC_SIMD_INLINE explicit vint4(const int *p) in vint4() function
203 ASTCENC_SIMD_INLINE explicit vint4(const uint8_t *p) in vint4() argument
217 ASTCENC_SIMD_INLINE explicit vint4(int a) in vint4() argument
227 ASTCENC_SIMD_INLINE explicit vint4(int a, int b, int c, int d) in vint4() argument
236 ASTCENC_SIMD_INLINE explicit vint4(int32x4_t a) in vint4() argument
260 static ASTCENC_SIMD_INLINE vint4 zero() in zero() argument
262 return vint4(0); in zero()
268 static ASTCENC_SIMD_INLINE vint4 load1(const int* p) in load1() argument
[all …]
Dastcenc_vecmathlib_sse_4.h194 struct vint4 struct
199 ASTCENC_SIMD_INLINE vint4() = default;
207 ASTCENC_SIMD_INLINE explicit vint4(const int *p) in vint4() function
215 ASTCENC_SIMD_INLINE explicit vint4(const uint8_t *p) in vint4() argument
233 ASTCENC_SIMD_INLINE explicit vint4(int a) in vint4() argument
243 ASTCENC_SIMD_INLINE explicit vint4(int a, int b, int c, int d) in vint4() argument
251 ASTCENC_SIMD_INLINE explicit vint4(__m128i a) in vint4() function
282 static ASTCENC_SIMD_INLINE vint4 zero() in zero() argument
284 return vint4(_mm_setzero_si128()); in zero()
290 static ASTCENC_SIMD_INLINE vint4 load1(const int* p) in load1() argument
[all …]
Dastcenc_color_unquantize.cpp37 static ASTCENC_SIMD_INLINE vint4 unquant_color( in unquant_color()
39 vint4 inputq in unquant_color()
42 return vint4(unq[inputq.lane<0>()], unq[inputq.lane<1>()], in unquant_color()
72 static ASTCENC_SIMD_INLINE vint4 uncontract_color( in uncontract_color()
73 vint4 input in uncontract_color()
76 vint4 bc0 = asr<1>(input + input.lane<2>()); in uncontract_color()
90 vint4 input0q, in rgba_delta_unpack()
91 vint4 input1q, in rgba_delta_unpack()
93 vint4& output0, in rgba_delta_unpack()
94 vint4& output1 in rgba_delta_unpack()
[all …]
Dastcenc_vecmathlib_none_4.h187 struct vint4 struct
192 ASTCENC_SIMD_INLINE vint4() = default;
200 ASTCENC_SIMD_INLINE explicit vint4(const int* p) in vint4() argument
211 ASTCENC_SIMD_INLINE explicit vint4(const uint8_t *p) in vint4() function
224 ASTCENC_SIMD_INLINE explicit vint4(int a, int b, int c, int d) in vint4() function
238 ASTCENC_SIMD_INLINE explicit vint4(int a) in vint4() argument
265 static ASTCENC_SIMD_INLINE vint4 zero() in zero() argument
267 return vint4(0); in zero()
273 static ASTCENC_SIMD_INLINE vint4 load1(const int* p) in load1() argument
275 return vint4(*p); in load1()
[all …]
Dastcenc_vecmathlib.h100 using vint = vint4;
115 using vint = vint4;
147 using vint = vint4;
327 vint4 ipart = float_to_int(x - 0.5f); in exp2()
353 vint4 exp(0x7F800000); in log2()
354 vint4 mant(0x007FFFFF); in log2()
355 vint4 one(0x3F800000); in log2()
357 vint4 i = float_as_int(x); in log2()
396 static ASTCENC_SIMD_INLINE vint4 clz(vint4 a) in clz()
407 a = vint4(127 + 31) - lsr<23>(a); in clz()
[all …]
Dastcenc_vecmathlib_common_4.h62 ASTCENC_SIMD_INLINE vint4 operator+(vint4 a, int b)
64 return a + vint4(b);
70 ASTCENC_SIMD_INLINE vint4& operator+=(vint4& a, const vint4& b)
79 ASTCENC_SIMD_INLINE vint4 operator-(vint4 a, int b)
81 return a - vint4(b);
87 ASTCENC_SIMD_INLINE vint4 operator*(vint4 a, int b)
89 return a * vint4(b);
95 ASTCENC_SIMD_INLINE vint4 operator|(vint4 a, int b)
97 return a | vint4(b);
103 ASTCENC_SIMD_INLINE vint4 operator&(vint4 a, int b)
[all …]
Dastcenc_decompress_symbolic.cpp67 static vint4 lerp_color_int( in lerp_color_int()
69 vint4 color0, in lerp_color_int()
70 vint4 color1, in lerp_color_int()
71 vint4 weights in lerp_color_int()
73 vint4 weight1 = weights; in lerp_color_int()
74 vint4 weight0 = vint4(64) - weight1; in lerp_color_int()
82 vint4 color = (color0 * weight0) + (color1 * weight1) + vint4(32); in lerp_color_int()
87 color = color * vint4(257); in lerp_color_int()
103 vint4 data, in decode_texel()
106 vint4 color_lns = vint4::zero(); in decode_texel()
[all …]
Dastcenc_compress_symbolic.cpp46 vmask4 sep_mask = vint4::lane_id() == vint4(component_plane2); in merge_endpoints()
86 vmask4 plane_mask = vint4::lane_id() == vint4(plane2_component); in realign_weights_undecimated()
91 vint4 endpnt0[BLOCK_MAX_PARTITIONS]; in realign_weights_undecimated()
92 vint4 endpnt1[BLOCK_MAX_PARTITIONS]; in realign_weights_undecimated()
118 vint4 epd = endpnt1[pa_idx] - endpnt0[pa_idx]; in realign_weights_undecimated()
119 epd = select(epd, vint4::zero(), plane_mask); in realign_weights_undecimated()
213 vmask4 plane_mask = vint4::lane_id() == vint4(plane2_component); in realign_weights_decimated()
218 vint4 endpnt0[BLOCK_MAX_PARTITIONS]; in realign_weights_decimated()
219 vint4 endpnt1[BLOCK_MAX_PARTITIONS]; in realign_weights_decimated()
248 vint4 epd = endpnt1[pa_idx] - endpnt0[pa_idx]; in realign_weights_decimated()
[all …]
Dastcenc_image.cpp53 return int_to_float(vint4(data8 + base_offset)) / 255.0f; in load_texel_u8()
71 return float16_to_float(vint4(r, g, b, a)); in load_texel_f16()
185 vint4 use_lns(rgb_lns, rgb_lns, rgb_lns, a_lns); in fetch_image_block()
186 vmask4 lns_mask = use_lns != vint4::zero(); in fetch_image_block()
303 vint4 datavi = vint4(plane + (4 * stride * yi) + (4 * xi)); in fetch_image_block_fast_ldr()
383 vint4 colori = vint4::zero(); in write_image_block()
388 colori = vint4(0xFF, 0x00, 0xFF, 0xFF); in write_image_block()
439 vint4 color; in write_image_block()
Dastcenccli_error_metrics.cpp178 vint4 color1i = vint4( in compute_error_metrics()
217 vint4 color2i = vint4( in compute_error_metrics()
Dastcenc_ideal_endpoints_and_weights.cpp75 vmask4 sep_mask = vint4::lane_id() == vint4(component); in compute_ideal_colors_and_weights_1_comp()
196 vmask4 comp1_mask = vint4::lane_id() == vint4(component1); in compute_ideal_colors_and_weights_2_comp()
197 vmask4 comp2_mask = vint4::lane_id() == vint4(component2); in compute_ideal_colors_and_weights_2_comp()
1381 vmask4 p2_mask = vint4::lane_id() == vint4(plane2_component); in recompute_ideal_colors_2planes()
1453 vmask4 p1_mask = vint4::lane_id() != vint4(plane2_component); in recompute_ideal_colors_2planes()
1486 vmask4 p1_mask = vint4::lane_id() != vint4(plane2_component); in recompute_ideal_colors_2planes()
Dastcenccli_image.cpp193 vint4 colorf16 = float_to_float16(vfloat4( in astc_img_from_floatx4_array()
275 vint4 colori( in floatx4_array_from_astc_img()
345 vint4 colori( in unorm8x4_array_from_astc_img()
Dastcenc_internal.h996 vmask4 lane_mask = vint4::lane_id() == vint4(channel); in is_constant_channel()
2127 vint4& output0,
2128 vint4& output1);
Dastcenc_entry.cpp1259 vint4 endpnt[2]; in astcenc_get_block_info()
1276 vint4 color_lns = lns_to_sf16(endpnt[j]); in astcenc_get_block_info()
1277 vint4 color_unorm = unorm16_to_sf16(endpnt[j]); in astcenc_get_block_info()
1278 vint4 datai = select(color_unorm, color_lns, hdr_mask); in astcenc_get_block_info()
Dastcenc_compute_variance.cpp234 vint4 di(data[swz.r], data[swz.g], data[swz.b], data[swz.a]); in compute_pixel_region_variance()
Dastcenccli_toplevel.cpp1163 vint4 colori( in image_get_pixel()
/third_party/astc-encoder/Source/UnitTest/
Dtest_simd.cpp897 vint4 msb(0x80000000, 0, 0x80000000, 0); in TEST()
921 vint4 indices(0, 4, 3, 2); in TEST()
1062 vint4 r = float_to_int(a); in TEST()
1073 vint4 r = float_to_int_rtn(a); in TEST()
1083 vint4 a(1, 2, 3, 4); in TEST()
1095 vint4 r = float_to_float16(a); in TEST()
1118 { vint4 a(0x3E00, 0x5B54, 0x7C00, 0xFFFF); in TEST()
1142 TEST(vint4, UnalignedLoad) in TEST() argument
1144 vint4 a(&(s32_data[1])); in TEST()
1152 TEST(vint4, UnalignedLoad8) in TEST() argument
[all …]