/external/ComputeLibrary/tests/validation/reference/ |
D | UtilsQuantizedAsymm.h | 65 const int64_t ab_64 = a_64 * b_64; in asymm_int_mult() local 66 const int32_t nudge = ab_64 >= 0 ? (1 << 30) : (1 - (1 << 30)); in asymm_int_mult() 67 const int32_t ab_x2_high32 = static_cast<int32_t>((ab_64 + nudge) / (1ll << 31)); in asymm_int_mult()
|
/external/armnn/src/backends/reference/workloads/ |
D | ConvImpl.cpp | 56 int64_t ab_64 = a_64 * b_64; in SaturatingRoundingDoublingHighMul() local 57 int32_t nudge = ab_64 >= 0 ? (1 << 30) : (1 - (1 << 30)); in SaturatingRoundingDoublingHighMul() 58 int32_t ab_x2_high32 = static_cast<std::int32_t>((ab_64 + nudge) / (1ll << 31)); in SaturatingRoundingDoublingHighMul()
|
/external/ComputeLibrary/src/core/utils/quantization/ |
D | AsymmHelpers.cpp | 208 int64_t ab_64 = a_64 * b_64; in saturating_rounding_doubling_highmul() local 213 int32_t ab_x2_high32 = static_cast<int32_t>((ab_64 + nudge) / (1ll << 31)); in saturating_rounding_doubling_highmul()
|
/external/ComputeLibrary/src/core/CL/cl_kernels/ |
D | helpers_asymm.h | 147 …ab_64 = a_64 * b_64; … 154 …is_positive_or_zero = ab_64 >= 0; … 160 …ab_x2_high32 = convert_int##size((ab_64 + nudge) / mask); …
|
D | tile_helpers.h | 898 long ab_64 = a_64 * b_64; \ 901 long is_positive_or_zero = ab_64 >= 0; \ 903 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 946 long ab_64 = a_64 * b_64; \ 949 long is_positive_or_zero = ab_64 >= 0; \ 951 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 988 long ab_64 = a_64 * b_64; \ 991 long is_positive_or_zero = ab_64 >= 0; \ 993 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
/external/ComputeLibrary/cl_kernels/ |
D | tile_helpers.hembed | 616 long ab_64 = a_64 * b_64; \ 619 long is_positive_or_zero = ab_64 >= 0; \ 621 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 651 long ab_64 = a_64 * b_64; \ 654 long is_positive_or_zero = ab_64 >= 0; \ 656 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 682 long ab_64 = a_64 * b_64; \ 685 long is_positive_or_zero = ab_64 >= 0; \ 687 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
/external/gemmlowp/fixedpoint/ |
D | fixedpoint.h | 345 std::int64_t ab_64 = a_64 * b_64; 346 std::int32_t nudge = ab_64 >= 0 ? (1 << 30) : (1 - (1 << 30)); 348 static_cast<std::int32_t>((ab_64 + nudge) / (1ll << 31));
|
/external/ComputeLibrary/cl_kernels/nhwc/ |
D | dwc_native_quantized_nhwc.clembed | 1862 long ab_64 = a_64 * b_64; \ 1865 long is_positive_or_zero = ab_64 >= 0; \ 1867 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1897 long ab_64 = a_64 * b_64; \ 1900 long is_positive_or_zero = ab_64 >= 0; \ 1902 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1928 long ab_64 = a_64 * b_64; \ 1931 long is_positive_or_zero = ab_64 >= 0; \ 1933 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | normalization_layer.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | direct_convolution3d.clembed | 1862 long ab_64 = a_64 * b_64; \ 1865 long is_positive_or_zero = ab_64 >= 0; \ 1867 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1897 long ab_64 = a_64 * b_64; \ 1900 long is_positive_or_zero = ab_64 >= 0; \ 1902 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1928 long ab_64 = a_64 * b_64; \ 1931 long is_positive_or_zero = ab_64 >= 0; \ 1933 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | pooling_3d_layer.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | transposed_convolution.clembed | 1862 long ab_64 = a_64 * b_64; \ 1865 long is_positive_or_zero = ab_64 >= 0; \ 1867 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1897 long ab_64 = a_64 * b_64; \ 1900 long is_positive_or_zero = ab_64 >= 0; \ 1902 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1928 long ab_64 = a_64 * b_64; \ 1931 long is_positive_or_zero = ab_64 >= 0; \ 1933 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | pooling_3d_layer_quantized.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | scale.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | channel_shuffle.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | winograd_input_transform.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | indirect_convolution.clembed | 3162 long ab_64 = a_64 * b_64; \ 3165 long is_positive_or_zero = ab_64 >= 0; \ 3167 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 3197 long ab_64 = a_64 * b_64; \ 3200 long is_positive_or_zero = ab_64 >= 0; \ 3202 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 3228 long ab_64 = a_64 * b_64; \ 3231 long is_positive_or_zero = ab_64 >= 0; \ 3233 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | dwc_native_fp_nhwc.clembed | 3163 long ab_64 = a_64 * b_64; \ 3166 long is_positive_or_zero = ab_64 >= 0; \ 3168 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 3198 long ab_64 = a_64 * b_64; \ 3201 long is_positive_or_zero = ab_64 >= 0; \ 3203 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 3229 long ab_64 = a_64 * b_64; \ 3232 long is_positive_or_zero = ab_64 >= 0; \ 3234 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | direct_convolution.clembed | 3865 …ab_64 = a_64 * b_64; … 3872 …is_positive_or_zero = ab_64 >= 0; … 3878 …ab_x2_high32 = convert_int##size((ab_64 + nudge) / mask); … 4851 long ab_64 = a_64 * b_64; \ 4854 long is_positive_or_zero = ab_64 >= 0; \ 4856 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 4886 long ab_64 = a_64 * b_64; \ 4889 long is_positive_or_zero = ab_64 >= 0; \ 4891 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 4917 long ab_64 = a_64 * b_64; \ [all …]
|
D | pooling_layer.clembed | 3269 long ab_64 = a_64 * b_64; \ 3272 long is_positive_or_zero = ab_64 >= 0; \ 3274 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 3304 long ab_64 = a_64 * b_64; \ 3307 long is_positive_or_zero = ab_64 >= 0; \ 3309 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 3335 long ab_64 = a_64 * b_64; \ 3338 long is_positive_or_zero = ab_64 >= 0; \ 3340 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
/external/ComputeLibrary/cl_kernels/nchw/ |
D | normalization_layer.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | channel_shuffle.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | scale.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
D | winograd_input_transform.clembed | 1861 long ab_64 = a_64 * b_64; \ 1864 long is_positive_or_zero = ab_64 >= 0; \ 1866 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1896 long ab_64 = a_64 * b_64; \ 1899 long is_positive_or_zero = ab_64 >= 0; \ 1901 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 1927 long ab_64 = a_64 * b_64; \ 1930 long is_positive_or_zero = ab_64 >= 0; \ 1932 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|
/external/ComputeLibrary/cl_kernels/common/ |
D | gemmlowp_reshaped_only_rhs_mmul.clembed | 3162 long ab_64 = a_64 * b_64; \ 3165 long is_positive_or_zero = ab_64 >= 0; \ 3167 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 3197 long ab_64 = a_64 * b_64; \ 3200 long is_positive_or_zero = ab_64 >= 0; \ 3202 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \ 3228 long ab_64 = a_64 * b_64; \ 3231 long is_positive_or_zero = ab_64 >= 0; \ 3233 … SRC_DATA_TYPE ab_x2_high32 = CONVERT((ab_64 + nudge) / (long)(1ll << 31), SRC_DATA_TYPE); \
|