Searched refs:vfloat (Results 1 – 8 of 8) sorted by relevance
/third_party/astc-encoder/Source/ |
D | astcenc_weight_align.cpp | 118 vfloat sample = loada(dec_weight_ideal_value + i) * (SINCOS_STEPS - 1.0f) + vfloat(12582912.0f); in compute_angular_offsets() 124 vfloat mult = vfloat(1.0f / (2.0f * astc::PI)); in compute_angular_offsets() 128 vfloat anglesum_x = vfloat::zero(); in compute_angular_offsets() 129 vfloat anglesum_y = vfloat::zero(); in compute_angular_offsets() 138 vfloat angle = atan2(anglesum_y, anglesum_x); in compute_angular_offsets() 139 vfloat ofs = angle * mult; in compute_angular_offsets() 177 vfloat rcp_stepsize = vfloat::lane_id() + vfloat(1.0f); in compute_lowest_and_highest_weight() 182 vfloat minidx(128.0f); in compute_lowest_and_highest_weight() 183 vfloat maxidx(-128.0f); in compute_lowest_and_highest_weight() 184 vfloat errval = vfloat::zero(); in compute_lowest_and_highest_weight() [all …]
|
D | astcenc_averages_and_directions.cpp | 76 vfloat data_r = loada(blk.data_r + i); in compute_partition_averages_rgb() 79 vfloat data_g = loada(blk.data_g + i); in compute_partition_averages_rgb() 82 vfloat data_b = loada(blk.data_b + i); in compute_partition_averages_rgb() 113 vfloat data_r = loada(blk.data_r + i); in compute_partition_averages_rgb() 117 vfloat data_g = loada(blk.data_g + i); in compute_partition_averages_rgb() 121 vfloat data_b = loada(blk.data_b + i); in compute_partition_averages_rgb() 159 vfloat data_r = loada(blk.data_r + i); in compute_partition_averages_rgb() 164 vfloat data_g = loada(blk.data_g + i); in compute_partition_averages_rgb() 169 vfloat data_b = loada(blk.data_b + i); in compute_partition_averages_rgb() 247 vfloat data_r = loada(blk.data_r + i); in compute_partition_averages_rgba() [all …]
|
D | astcenc_ideal_endpoints_and_weights.cpp | 633 vfloat current_values = bilinear_infill_vla(di, dec_weight_quant_uvalue, i); in compute_error_of_weight_set_1plane() 636 vfloat actual_values = loada(eai.weights + i); in compute_error_of_weight_set_1plane() 637 vfloat diff = current_values - actual_values; in compute_error_of_weight_set_1plane() 638 vfloat significance = loada(eai.weight_error_scale + i); in compute_error_of_weight_set_1plane() 639 vfloat error = diff * diff * significance; in compute_error_of_weight_set_1plane() 649 vfloat current_values = bilinear_infill_vla_2(di, dec_weight_quant_uvalue, i); in compute_error_of_weight_set_1plane() 652 vfloat actual_values = loada(eai.weights + i); in compute_error_of_weight_set_1plane() 653 vfloat diff = current_values - actual_values; in compute_error_of_weight_set_1plane() 654 vfloat significance = loada(eai.weight_error_scale + i); in compute_error_of_weight_set_1plane() 655 vfloat error = diff * diff * significance; in compute_error_of_weight_set_1plane() [all …]
|
D | astcenc_vecmathlib.h | 77 using vfloat = vfloat8; variable 98 using vfloat = vfloat4; variable 113 using vfloat = vfloat4; variable 145 using vfloat = vfloat4; variable 210 ASTCENC_SIMD_INLINE vfloat change_sign(vfloat a, vfloat b) in change_sign() 224 ASTCENC_SIMD_INLINE vfloat atan(vfloat x) in atan() 226 vmask c = abs(x) > vfloat(1.0f); in atan() 227 vfloat z = change_sign(vfloat(astc::PI_OVER_TWO), x); in atan() 228 vfloat y = select(x, vfloat(1.0f) / x, c); in atan() 229 y = y / (y * y * vfloat(0.28f) + vfloat(1.0f)); in atan() [all …]
|
D | astcenc_pick_best_endpoint_format.cpp | 93 vfloat default_a(blk.get_default_alpha()); in compute_error_squared_rgb_single_partition() 96 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() [all …]
|
D | astcenc_decompress_symbolic.cpp | 591 vfloat color_r = int_to_float(colori_r); in compute_symbolic_block_difference_1plane_1partition() 592 vfloat color_g = int_to_float(colori_g); in compute_symbolic_block_difference_1plane_1partition() 593 vfloat color_b = int_to_float(colori_b); in compute_symbolic_block_difference_1plane_1partition() 594 vfloat color_a = int_to_float(colori_a); in compute_symbolic_block_difference_1plane_1partition() 596 vfloat color_orig_r = loada(blk.data_r + i); in compute_symbolic_block_difference_1plane_1partition() 597 vfloat color_orig_g = loada(blk.data_g + i); in compute_symbolic_block_difference_1plane_1partition() 598 vfloat color_orig_b = loada(blk.data_b + i); in compute_symbolic_block_difference_1plane_1partition() 599 vfloat color_orig_a = loada(blk.data_a + i); in compute_symbolic_block_difference_1plane_1partition() 601 vfloat color_error_r = min(abs(color_orig_r - color_r), vfloat(1e15f)); in compute_symbolic_block_difference_1plane_1partition() 602 vfloat color_error_g = min(abs(color_orig_g - color_g), vfloat(1e15f)); in compute_symbolic_block_difference_1plane_1partition() [all …]
|
D | astcenc_internal.h | 1980 static inline vfloat bilinear_infill_vla( in bilinear_infill_vla() 1992 vfloat weight_val0 = gatherf(weights, weight_idx0); in bilinear_infill_vla() 1993 vfloat weight_val1 = gatherf(weights, weight_idx1); in bilinear_infill_vla() 1994 vfloat weight_val2 = gatherf(weights, weight_idx2); in bilinear_infill_vla() 1995 vfloat weight_val3 = gatherf(weights, weight_idx3); in bilinear_infill_vla() 1998 vfloat tex_weight_float0 = loada(di.texel_weights_float_4t[0] + index); in bilinear_infill_vla() 1999 vfloat tex_weight_float1 = loada(di.texel_weights_float_4t[1] + index); in bilinear_infill_vla() 2000 vfloat tex_weight_float2 = loada(di.texel_weights_float_4t[2] + index); in bilinear_infill_vla() 2001 vfloat tex_weight_float3 = loada(di.texel_weights_float_4t[3] + index); in bilinear_infill_vla() 2020 static inline vfloat bilinear_infill_vla_2( in bilinear_infill_vla_2() [all …]
|
/third_party/astc-encoder/Source/UnitTest/ |
D | test_simd.cpp | 86 TEST(vfloat, ChangeSign) in TEST() argument 88 vfloat a0(-1.0f); in TEST() 89 vfloat b0(-1.0f); in TEST() 90 vfloat r0 = change_sign(a0, b0); in TEST() 93 vfloat a1( 1.0f); in TEST() 94 vfloat b1(-1.0f); in TEST() 95 vfloat r1 = change_sign(a1, b1); in TEST() 98 vfloat a2(-3.12f); in TEST() 99 vfloat b2( 3.12f); in TEST() 100 vfloat r2 = change_sign(a2, b2); in TEST() [all …]
|