Home
last modified time | relevance | path

Searched +full:0 +full:- +full:alpha +full:- +full:4 (Results 1 – 25 of 1075) sorted by relevance

12345678910>>...43

/external/llvm-project/llvm/test/Transforms/LoopReroll/
Dbasic32iters.ll1 ; RUN: opt < %s -loop-reroll -verify-scev -S | FileCheck %s
2 …t = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:1…
3 target triple = "x86_64-unknown-linux-gnu"
5 ; void goo32(float alpha, float *a, float *b) {
6 ; for (int i = 0; i < 3200; i += 32) {
7 ; a[i] += alpha * b[i];
8 ; a[i + 1] += alpha * b[i + 1];
9 ; a[i + 2] += alpha * b[i + 2];
10 ; a[i + 3] += alpha * b[i + 3];
11 ; a[i + 4] += alpha * b[i + 4];
[all …]
/external/llvm/test/Transforms/LoopReroll/
Dbasic32iters.ll1 ; RUN: opt < %s -loop-reroll -verify-scev -S | FileCheck %s
2 …t = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:1…
3 target triple = "x86_64-unknown-linux-gnu"
5 ; void goo32(float alpha, float *a, float *b) {
6 ; for (int i = 0; i < 3200; i += 32) {
7 ; a[i] += alpha * b[i];
8 ; a[i + 1] += alpha * b[i + 1];
9 ; a[i + 2] += alpha * b[i + 2];
10 ; a[i + 3] += alpha * b[i + 3];
11 ; a[i + 4] += alpha * b[i + 4];
[all …]
Dbasic.ll1 ; RUN: opt < %s -loop-reroll -S | FileCheck %s
2 …t = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:1…
3 target triple = "x86_64-unknown-linux-gnu"
7 ; for (int i = 0; i < 500; i += 3) {
15 define void @bar(i32* nocapture readnone %x) #0 {
20 %i.08 = phi i32 [ 0, %entry ], [ %add3, %for.body ]
30 ; CHECK-LABEL: @bar
33 ; CHECK: %indvar = phi i32 [ %indvar.next, %for.body ], [ 0, %entry ]
48 ; for (int i = 0; i < 1500; i += 3) {
49 ; x[i] = foo(0);
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Ddirichlet_multinomial_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
43 alpha = np.random.rand(3)
44 dist = ds.DirichletMultinomial(1., alpha)
53 alpha = np.random.rand(3, 2, 2)
54 n = [[3., 2], [4, 5], [6, 7]]
55 dist = ds.DirichletMultinomial(n, alpha)
63 alpha = [[1., 2, 3]]
66 dist = ds.DirichletMultinomial(n, alpha)
72 alpha = [[1., 2, 3]]
74 dist = ds.DirichletMultinomial(1, alpha)
[all …]
/external/webp/src/dsp/
Dalpha_processing_neon.c3 // Use of this source code is governed by a BSD-style license
8 // -----------------------------------------------------------------------------
20 //------------------------------------------------------------------------------
22 #define MULTIPLIER(a) ((a) * 0x8081)
25 #define MULTIPLY_BY_ALPHA(V, ALPHA, OTHER) do { \ argument
26 const uint8x8_t alpha = (V).val[(ALPHA)]; \
27 const uint16x8_t r1 = vmull_u8((V).val[1], alpha); \
28 const uint16x8_t g1 = vmull_u8((V).val[2], alpha); \
29 const uint16x8_t b1 = vmull_u8((V).val[(OTHER)], alpha); \
40 } while (0)
[all …]
Dalpha_processing_sse2.c3 // Use of this source code is governed by a BSD-style license
8 // -----------------------------------------------------------------------------
19 //------------------------------------------------------------------------------
21 static int DispatchAlpha_SSE2(const uint8_t* alpha, int alpha_stride, in DispatchAlpha_SSE2() argument
24 // alpha_and stores an 'and' operation of all the alpha[] values. The final in DispatchAlpha_SSE2()
25 // value is not 0xff if any of the alpha[] is not equal to 0xff. in DispatchAlpha_SSE2()
26 uint32_t alpha_and = 0xff; in DispatchAlpha_SSE2()
29 const __m128i rgb_mask = _mm_set1_epi32(0xffffff00u); // to preserve RGB in DispatchAlpha_SSE2()
30 const __m128i all_0xff = _mm_set_epi32(0, 0, ~0u, ~0u); in DispatchAlpha_SSE2()
34 // 'dst[4 * width - 4]', because we don't know if alpha is the first or the in DispatchAlpha_SSE2()
[all …]
/external/mesa3d/src/amd/common/
Dac_shader_util.c52 unsigned i, cb_shader_mask = 0; in ac_get_cb_shader_mask()
54 for (i = 0; i < 8; i++) { in ac_get_cb_shader_mask()
55 switch ((spi_shader_col_format >> (i * 4)) & 0xf) { in ac_get_cb_shader_mask()
59 cb_shader_mask |= 0x1 << (i * 4); in ac_get_cb_shader_mask()
62 cb_shader_mask |= 0x3 << (i * 4); in ac_get_cb_shader_mask()
65 cb_shader_mask |= 0x9u << (i * 4); in ac_get_cb_shader_mask()
73 cb_shader_mask |= 0xfu << (i * 4); in ac_get_cb_shader_mask()
76 assert(0); in ac_get_cb_shader_mask()
103 S_028A40_ONCHIP(chip_class >= GFX9 ? 1 : 0); in ac_vgt_gs_mode()
106 /// Translate a (dfmt, nfmt) pair into a chip-appropriate combined format
[all …]
/external/libaom/libaom/av1/common/x86/
Dhighbd_warp_plane_sse4.c18 static const uint8_t warp_highbd_arrange_bytes[16] = { 0, 2, 4, 6, 8, 10,
23 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3
26 4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7
35 static INLINE void highbd_prepare_horizontal_filter_coeff(int alpha, int sx, in highbd_prepare_horizontal_filter_coeff() argument
37 // Filter even-index pixels in highbd_prepare_horizontal_filter_coeff()
40 ((sx + 0 * alpha) >> WARPEDDIFF_PREC_BITS))); in highbd_prepare_horizontal_filter_coeff()
43 ((sx + 2 * alpha) >> WARPEDDIFF_PREC_BITS))); in highbd_prepare_horizontal_filter_coeff()
46 ((sx + 4 * alpha) >> WARPEDDIFF_PREC_BITS))); in highbd_prepare_horizontal_filter_coeff()
49 ((sx + 6 * alpha) >> WARPEDDIFF_PREC_BITS))); in highbd_prepare_horizontal_filter_coeff()
51 // coeffs 0 1 0 1 2 3 2 3 for pixels 0, 2 in highbd_prepare_horizontal_filter_coeff()
[all …]
Dwarp_plane_avx2.c18 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
19 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1
28 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5,
29 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5
38 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3,
39 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3
43 4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7,
44 4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7
58 shuffle_src0[32]) = { 0, 2, 2, 4, 4, 6, 6, 8, 1, 3, 3,
59 5, 5, 7, 7, 9, 0, 2, 2, 4, 4, 6,
[all …]
/external/angle/src/image_util/
Dimageformats.cpp3 // Use of this source code is governed by a BSD-style license that can be
19 const float lum = gl::normalizedToFloat(src->L); in readColor()
20 dst->red = lum; in readColor()
21 dst->green = lum; in readColor()
22 dst->blue = lum; in readColor()
23 dst->alpha = 1.0f; in readColor()
28 dst->L = gl::floatToNormalized<uint8_t>(src->red); in writeColor()
33 dst->L = gl::average(src1->L, src2->L); in average()
38 dst->red = src->R; in readColor()
39 dst->green = 0; in readColor()
[all …]
/external/webp/src/enc/
Dpicture_tools_enc.c3 // Use of this source code is governed by a BSD-style license
8 // -----------------------------------------------------------------------------
10 // WebPPicture tools: alpha handling, etc.
19 //------------------------------------------------------------------------------
26 for (y = 0; y < size; ++y) { in IsTransparentARGBArea()
27 for (x = 0; x < size; ++x) { in IsTransparentARGBArea()
28 if (ptr[x] & 0xff000000u) { in IsTransparentARGBArea()
29 return 0; in IsTransparentARGBArea()
39 for (y = 0; y < size; ++y) { in Flatten()
47 for (y = 0; y < size; ++y) { in FlattenARGB()
[all …]
/external/libdrm/exynos/
Dexynos_fimg2d.h44 /* alpha 8bit */
48 /* alpha 1bit */
50 /* alpha 4bit */
55 G2D_ORDER_AXRGB = (0 << 4), /* VER4.1 */
56 G2D_ORDER_RGBAX = (1 << 4), /* VER4.1 */
57 G2D_ORDER_AXBGR = (2 << 4), /* VER4.1 */
58 G2D_ORDER_BGRAX = (3 << 4), /* VER4.1 */
59 G2D_ORDER_MASK = (3 << 4), /* VER4.1 */
62 G2D_YCbCr_1PLANE = (0 << 8), /* VER4.1 */
67 G2D_YCbCr_ORDER_CrY1CbY0 = (0 << 12), /* VER4.1 */
[all …]
/external/eigen/blas/testing/
Dzblat3.f6 * http://www.netlib.org/lapack/explore-html/
22 *> of the file are read using list-directed input, the last 9 records
29 *> -1 UNIT NUMBER OF SNAPSHOT FILE (NOT USED IF .LT. 0)
35 *> 0 1 2 3 5 9 VALUES OF N
36 *> 3 NUMBER OF VALUES OF ALPHA
37 *> (0.0,0.0) (1.0,0.0) (0.7,-0.9) VALUES OF ALPHA
39 *> (0.0,0.0) (1.0,0.0) (1.3,-1.1) VALUES OF BETA
63 *> -- Written on 8-February-1989.
69 *> 10-9-00: Change STATUS='NEW' to 'UNKNOWN' so that the testers
89 * -- Reference BLAS test routine (version 3.4.1) --
[all …]
Dcblat3.f6 * http://www.netlib.org/lapack/explore-html/
22 *> of the file are read using list-directed input, the last 9 records
29 *> -1 UNIT NUMBER OF SNAPSHOT FILE (NOT USED IF .LT. 0)
35 *> 0 1 2 3 5 9 VALUES OF N
36 *> 3 NUMBER OF VALUES OF ALPHA
37 *> (0.0,0.0) (1.0,0.0) (0.7,-0.9) VALUES OF ALPHA
39 *> (0.0,0.0) (1.0,0.0) (1.3,-1.1) VALUES OF BETA
62 *> -- Written on 8-February-1989.
68 *> 10-9-00: Change STATUS='NEW' to 'UNKNOWN' so that the testers
88 * -- Reference BLAS test routine (version 3.4.1) --
[all …]
/external/ImageMagick/MagickCore/
Dfx.c21 % Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization %
45 #include "MagickCore/accelerate-private.h"
50 #include "MagickCore/cache-view.h"
53 #include "MagickCore/color-private.h"
54 #include "MagickCore/colorspace-private.h"
62 #include "MagickCore/exception-private.h"
64 #include "MagickCore/fx-private.h"
66 #include "MagickCore/gem-private.h"
72 #include "MagickCore/image-private.h"
75 #include "MagickCore/memory-private.h"
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_alpha.c2 * Mesa 3-D graphics library
4 * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
27 * \brief Functions to apply alpha test.
38 #define ALPHA_TEST(ALPHA, LOOP_CODE) \ argument
40 switch (ctx->Color.AlphaFunc) { \
42 for (i = 0; i < n; i++) { \
43 mask[i] &= (ALPHA < ref); \
48 for (i = 0; i < n; i++) { \
49 mask[i] &= (ALPHA <= ref); \
54 for (i = 0; i < n; i++) { \
[all …]
/external/libavc/common/arm/
Dih264_deblk_chroma_a9.s9 @ * http://www.apache.org/licenses/LICENSE-2.0
47 @/* 05 01 2015 Kaushik Added double-call functions for */
62 @* boundary strength is set to 4
66 @* "Filtering process for edges for bS equal to 4" in ITU T Rec H.264.
68 @* @param[in] r0 - pu1_src
71 @* @param[in] r1 - src_strd
74 @* @param[in] r2 - alpha
75 @* Alpha Value for the boundary
77 @* @param[in] r3 - beta
94 vpush {d8 - d15}
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Dprelu.cc7 http://www.apache.org/licenses/LICENSE-2.0
41 auto alpha = absl::get_if<Tensor<Linear, DataType::FLOAT32>>(&attr.alpha); in GenerateCode() local
42 if (!alpha) { in GenerateCode()
43 return absl::InvalidArgumentError("Alpha is missing"); in GenerateCode()
45 if (alpha->shape.v != ctx.output_shapes[0][3]) { in GenerateCode()
47 "Alpha shape does not match the number of channels."); in GenerateCode()
54 /*objects=*/{{"alpha", MakeReadonlyObject(alpha->data)}}, in GenerateCode()
58 "value_0 = clamp(value_0, 0.0, $clip$) + $alpha[gid.z]$ * " in GenerateCode()
65 /*objects=*/{{"alpha", MakeReadonlyObject(alpha->data)}}, in GenerateCode()
70 uint3(static_cast<int>(ctx.output_shapes[0][2]), in GenerateCode()
[all …]
/external/cblas/testing/
Dc_z3chke.c22 cblas_ok = 0 ; in chkxer()
29 double A[4] = {0.0,0.0,0.0,0.0}, in F77_z3chke()
30 B[4] = {0.0,0.0,0.0,0.0}, in F77_z3chke()
31 C[4] = {0.0,0.0,0.0,0.0}, in F77_z3chke()
32 ALPHA[2] = {0.0,0.0}, in F77_z3chke() local
48 if (strncmp( sf,"cblas_zgemm" ,11)==0) { in F77_z3chke()
52 cblas_zgemm( INVALID, CblasNoTrans, CblasNoTrans, 0, 0, 0, in F77_z3chke()
53 ALPHA, A, 1, B, 1, BETA, C, 1 ); in F77_z3chke()
56 cblas_zgemm( INVALID, CblasNoTrans, CblasTrans, 0, 0, 0, in F77_z3chke()
57 ALPHA, A, 1, B, 1, BETA, C, 1 ); in F77_z3chke()
[all …]
Dc_c3chke.c22 cblas_ok = 0 ; in chkxer()
29 float A[4] = {0.0,0.0,0.0,0.0}, in F77_c3chke()
30 B[4] = {0.0,0.0,0.0,0.0}, in F77_c3chke()
31 C[4] = {0.0,0.0,0.0,0.0}, in F77_c3chke()
32 ALPHA[2] = {0.0,0.0}, in F77_c3chke() local
48 if (strncmp( sf,"cblas_cgemm" ,11)==0) { in F77_c3chke()
52 cblas_cgemm( INVALID, CblasNoTrans, CblasNoTrans, 0, 0, 0, in F77_c3chke()
53 ALPHA, A, 1, B, 1, BETA, C, 1 ); in F77_c3chke()
56 cblas_cgemm( INVALID, CblasNoTrans, CblasTrans, 0, 0, 0, in F77_c3chke()
57 ALPHA, A, 1, B, 1, BETA, C, 1 ); in F77_c3chke()
[all …]
Dc_s2chke.c22 cblas_ok = 0 ; in chkxer()
32 ALPHA=0.0, BETA=0.0; in F77_s2chke() local
46 if (strncmp( sf,"cblas_sgemv",11)==0) { in F77_s2chke()
49 cblas_sgemv(INVALID, CblasNoTrans, 0, 0, in F77_s2chke()
50 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_s2chke()
53 cblas_sgemv(CblasColMajor, INVALID, 0, 0, in F77_s2chke()
54 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_s2chke()
57 cblas_sgemv(CblasColMajor, CblasNoTrans, INVALID, 0, in F77_s2chke()
58 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_s2chke()
60 cblas_info = 4; RowMajorStrg = FALSE; in F77_s2chke()
[all …]
Dc_d2chke.c22 cblas_ok = 0 ; in chkxer()
32 ALPHA=0.0, BETA=0.0; in F77_d2chke() local
46 if (strncmp( sf,"cblas_dgemv",11)==0) { in F77_d2chke()
49 cblas_dgemv(INVALID, CblasNoTrans, 0, 0, in F77_d2chke()
50 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_d2chke()
53 cblas_dgemv(CblasColMajor, INVALID, 0, 0, in F77_d2chke()
54 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_d2chke()
57 cblas_dgemv(CblasColMajor, CblasNoTrans, INVALID, 0, in F77_d2chke()
58 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_d2chke()
60 cblas_info = 4; RowMajorStrg = FALSE; in F77_d2chke()
[all …]
Dc_z2chke.c22 cblas_ok = 0 ; in chkxer()
32 ALPHA[2] = {0.0,0.0}, in F77_z2chke() local
48 if (strncmp( sf,"cblas_zgemv",11)==0) { in F77_z2chke()
51 cblas_zgemv(INVALID, CblasNoTrans, 0, 0, in F77_z2chke()
52 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_z2chke()
55 cblas_zgemv(CblasColMajor, INVALID, 0, 0, in F77_z2chke()
56 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_z2chke()
59 cblas_zgemv(CblasColMajor, CblasNoTrans, INVALID, 0, in F77_z2chke()
60 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_z2chke()
62 cblas_info = 4; RowMajorStrg = FALSE; in F77_z2chke()
[all …]
Dc_c2chke.c22 cblas_ok = 0 ; in chkxer()
32 ALPHA[2] = {0.0,0.0}, in F77_c2chke() local
48 if (strncmp( sf,"cblas_cgemv",11)==0) { in F77_c2chke()
51 cblas_cgemv(INVALID, CblasNoTrans, 0, 0, in F77_c2chke()
52 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_c2chke()
55 cblas_cgemv(CblasColMajor, INVALID, 0, 0, in F77_c2chke()
56 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_c2chke()
59 cblas_cgemv(CblasColMajor, CblasNoTrans, INVALID, 0, in F77_c2chke()
60 ALPHA, A, 1, X, 1, BETA, Y, 1 ); in F77_c2chke()
62 cblas_info = 4; RowMajorStrg = FALSE; in F77_c2chke()
[all …]
Dc_d3chke.c22 cblas_ok = 0 ; in chkxer()
32 ALPHA=0.0, BETA=0.0; in F77_d3chke() local
46 if (strncmp( sf,"cblas_dgemm" ,11)==0) { in F77_d3chke()
50 cblas_dgemm( INVALID, CblasNoTrans, CblasNoTrans, 0, 0, 0, in F77_d3chke()
51 ALPHA, A, 1, B, 1, BETA, C, 1 ); in F77_d3chke()
54 cblas_dgemm( INVALID, CblasNoTrans, CblasTrans, 0, 0, 0, in F77_d3chke()
55 ALPHA, A, 1, B, 1, BETA, C, 1 ); in F77_d3chke()
58 cblas_dgemm( INVALID, CblasTrans, CblasNoTrans, 0, 0, 0, in F77_d3chke()
59 ALPHA, A, 1, B, 1, BETA, C, 1 ); in F77_d3chke()
62 cblas_dgemm( INVALID, CblasTrans, CblasTrans, 0, 0, 0, in F77_d3chke()
[all …]

12345678910>>...43