Home
last modified time | relevance | path

Searched refs:scalar (Results 1 – 25 of 3500) sorted by relevance

12345678910>>...140

/external/oboe/samples/RhythmGame/third_party/glm/detail/
Dtype_vec3.inl63 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec3<T, P>::tvec3(T scalar) argument
64 : x(scalar), y(scalar), z(scalar)
72 // -- Conversion scalar constructors --
181 GLM_FUNC_QUALIFIER tvec3<T, P> & tvec3<T, P>::operator+=(U scalar) argument
183 this->x += static_cast<T>(scalar);
184 this->y += static_cast<T>(scalar);
185 this->z += static_cast<T>(scalar);
211 GLM_FUNC_QUALIFIER tvec3<T, P> & tvec3<T, P>::operator-=(U scalar) argument
213 this->x -= static_cast<T>(scalar);
214 this->y -= static_cast<T>(scalar);
[all …]
Dtype_vec1.hpp96 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR explicit tvec1(T scalar);
131 GLM_FUNC_DECL tvec1<T, P> & operator+=(U scalar);
135 GLM_FUNC_DECL tvec1<T, P> & operator-=(U scalar);
139 GLM_FUNC_DECL tvec1<T, P> & operator*=(U scalar);
143 GLM_FUNC_DECL tvec1<T, P> & operator/=(U scalar);
157 GLM_FUNC_DECL tvec1<T, P> & operator%=(U scalar);
161 GLM_FUNC_DECL tvec1<T, P> & operator&=(U scalar);
165 GLM_FUNC_DECL tvec1<T, P> & operator|=(U scalar);
169 GLM_FUNC_DECL tvec1<T, P> & operator^=(U scalar);
173 GLM_FUNC_DECL tvec1<T, P> & operator<<=(U scalar);
[all …]
Dtype_vec1.inl37 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(T scalar) argument
38 : x(scalar)
104 GLM_FUNC_QUALIFIER tvec1<T, P> & tvec1<T, P>::operator+=(U scalar) argument
106 this->x += static_cast<T>(scalar);
120 GLM_FUNC_QUALIFIER tvec1<T, P> & tvec1<T, P>::operator-=(U scalar) argument
122 this->x -= static_cast<T>(scalar);
136 GLM_FUNC_QUALIFIER tvec1<T, P> & tvec1<T, P>::operator*=(U scalar) argument
138 this->x *= static_cast<T>(scalar);
152 GLM_FUNC_QUALIFIER tvec1<T, P> & tvec1<T, P>::operator/=(U scalar) argument
154 this->x /= static_cast<T>(scalar);
[all …]
Dtype_vec2.inl50 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec2<T, P>::tvec2(T scalar) argument
51 : x(scalar), y(scalar)
59 // -- Conversion scalar constructors --
137 GLM_FUNC_QUALIFIER tvec2<T, P> & tvec2<T, P>::operator+=(U scalar) argument
139 this->x += static_cast<T>(scalar);
140 this->y += static_cast<T>(scalar);
164 GLM_FUNC_QUALIFIER tvec2<T, P> & tvec2<T, P>::operator-=(U scalar) argument
166 this->x -= static_cast<T>(scalar);
167 this->y -= static_cast<T>(scalar);
191 GLM_FUNC_QUALIFIER tvec2<T, P> & tvec2<T, P>::operator*=(U scalar) argument
[all …]
/external/XNNPACK/src/xnnpack/
Drequantization.h166 const int64_t product = (int64_t) n * (int64_t) params.scalar.multiplier; in xnn_qu8_quantize_avgpool()
169 n = (int32_t) asr_s64(adjusted_product + params.scalar.rounding, params.scalar.right_shift); in xnn_qu8_quantize_avgpool()
170 if (n < params.scalar.output_min_less_zero_point) { in xnn_qu8_quantize_avgpool()
171 n = params.scalar.output_min_less_zero_point; in xnn_qu8_quantize_avgpool()
173 if (n > params.scalar.output_max_less_zero_point) { in xnn_qu8_quantize_avgpool()
174 n = params.scalar.output_max_less_zero_point; in xnn_qu8_quantize_avgpool()
177 return (uint8_t) (n + params.scalar.output_zero_point); in xnn_qu8_quantize_avgpool()
184 const int64_t product = (int64_t) n * (int64_t) params.scalar.multiplier; in xnn_qs8_quantize_avgpool()
187 n = (int32_t) asr_s64(adjusted_product + params.scalar.rounding, params.scalar.shift); in xnn_qs8_quantize_avgpool()
188 if (n < params.scalar.output_min_less_zero_point) { in xnn_qs8_quantize_avgpool()
[all …]
Dparams-init.h54 params.scalar.kernel_zero_point = (int32_t) (uint32_t) kernel_zero_point; in xnn_init_scalar_qu8_gemm_params()
55 params.scalar.multiplier = multiplier; in xnn_init_scalar_qu8_gemm_params()
56 params.scalar.remainder_mask = (int32_t) remainder_mask; in xnn_init_scalar_qu8_gemm_params()
57 params.scalar.remainder_threshold = (int32_t) remainder_threshold; in xnn_init_scalar_qu8_gemm_params()
58 params.scalar.shift = (uint32_t) shift; in xnn_init_scalar_qu8_gemm_params()
59 params.scalar.output_min_less_zero_point = in xnn_init_scalar_qu8_gemm_params()
61 params.scalar.output_max_less_zero_point = in xnn_init_scalar_qu8_gemm_params()
63 params.scalar.output_zero_point = (int32_t) (uint32_t) output_zero_point; in xnn_init_scalar_qu8_gemm_params()
127 params.scalar.kernel_zero_point = (int32_t) (uint32_t) kernel_zero_point; in xnn_init_qu8_gemm_params()
128 params.scalar.multiplier = multiplier; in xnn_init_qu8_gemm_params()
[all …]
/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/
DLegalizerInfoTest.cpp54 L.setAction({Op, 0, LLT::scalar(Size)}, Legal); in TEST()
63 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(8)}}), in TEST()
64 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
65 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(16)}}), in TEST()
66 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
67 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(32)}}), in TEST()
69 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(64)}}), in TEST()
73 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(128)}}), in TEST()
74 LegalizeActionStep(NarrowScalar, 0, LLT::scalar(64))); in TEST()
76 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(1)}}), in TEST()
[all …]
DLegalizerHelperTest.cpp39 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(32)}, {Copies[0]}); in TEST_F()
45 Helper.lower(*MIBCTTZ, 0, LLT::scalar(64))); in TEST_F()
71 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(64)}, {Copies[0]}); in TEST_F()
76 EXPECT_TRUE(Helper.lower(*MIBCTTZ, 0, LLT::scalar(64)) == in TEST_F()
105 B.buildInstr(TargetOpcode::G_CTLZ, {LLT::scalar(32)}, {Copies[0]}); in TEST_F()
111 Helper.narrowScalar(*CTLZ, 1, LLT::scalar(32))); in TEST_F()
140 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(32)}, {Copies[0]}); in TEST_F()
146 Helper.narrowScalar(*CTTZ, 1, LLT::scalar(32))); in TEST_F()
175 B.buildInstr(TargetOpcode::G_CTTZ, {LLT::scalar(64)}, {Copies[0]}); in TEST_F()
181 EXPECT_TRUE(Helper.lower(*MIBCTTZ, 0, LLT::scalar(64)) == in TEST_F()
[all …]
/external/llvm-project/llvm/test/Transforms/LICM/
Dpr42969.ll4 ; CHECK: scalar.body:
13 outer: ; preds = %scalar.cleanup, %entry
14 ; 4 = MemoryPhi({entry,liveOnEntry},{scalar.cleanup,2})
15 %i = phi i16 [ 0, %entry ], [ %i.next, %scalar.cleanup ]
16 br i1 %a_b_mayalias, label %scalar.ph, label %vector.ph
33 br label %scalar.ph
35 scalar.ph: ; preds = %middle.block, %outer
38 br label %scalar.body
40 scalar.body: ; preds = %scalar.body, %scalar.ph
41 ; 3 = MemoryPhi({scalar.ph,5},{scalar.body,2})
[all …]
/external/llvm-project/clang/test/OpenMP/
Dtarget_defaultmap_messages.cpp42 …#pragma omp target defaultmap (scalar: // omp5-error {{expected 'scalar', 'aggregate', 'pointer' i… in tmain()
44 #pragma omp target defaultmap(tofrom, scalar // expected-error {{expected ')'}} omp45-warning {{mis… in tmain()
46 …#pragma omp target defaultmap(tofrom:scalar) defaultmap(tofrom:scalar) // omp45-error {{directive … in tmain()
52 #pragma omp target defaultmap(tofrom : scalar) defaultmap(to : scalar) // omp5-error {{at most one … in tmain()
54 #pragma omp target defaultmap(alloc : pointer) defaultmap(to: scalar) defaultmap(firstprivate : poi… in tmain()
58 #pragma omp target defaultmap(none : pointer) defaultmap(none: scalar) map(argc) // expected-note {… in tmain()
60 #pragma omp target defaultmap(none: pointer) defaultmap(none : scalar) map(g) // expected-note {{ex… in tmain()
62 …#pragma omp target defaultmap(none:pointer) defaultmap(none:scalar) defaultmap(none:aggregate) map… in tmain()
66 #pragma omp target defaultmap(none : aggregate) defaultmap(none: scalar) map(argc) // expected-note… in tmain()
68 …#pragma omp target defaultmap(none:aggregate) defaultmap(none:scalar) map(argc) // expected-note {… in tmain()
[all …]
Dtarget_parallel_defaultmap_messages.cpp40 …#pragma omp target parallel defaultmap (scalar: // expected-error {{expected ')'}} omp5-error {{ex… in tmain()
42 #pragma omp target parallel defaultmap(tofrom, scalar // expected-error {{expected ')'}} omp45-warn… in tmain()
45 …#pragma omp target parallel defaultmap(tofrom:scalar) defaultmap(to:scalar) // expected-error {{at… in tmain()
47 …#pragma omp target parallel defaultmap(alloc:pointer) defaultmap(to:scalar) defaultmap(firstprivat… in tmain()
51 …#pragma omp target parallel defaultmap(none:pointer) defaultmap(none:scalar) map(argc) // expected… in tmain()
53 …#pragma omp target parallel defaultmap(none:pointer) defaultmap(none:scalar) map(g) // expected-no… in tmain()
55 …#pragma omp target parallel defaultmap(none:pointer) defaultmap(none:scalar) defaultmap(none:aggre… in tmain()
57 …#pragma omp target parallel defaultmap(none:aggregate) defaultmap(none:scalar) map(argc) // expect… in tmain()
59 …#pragma omp target parallel defaultmap(none:aggregate) defaultmap(none:scalar) map(argc) // expect… in tmain()
62 …#pragma omp target parallel defaultmap(none:aggregate) defaultmap(none:scalar) map(argc) // expect… in tmain()
[all …]
/external/oss-fuzz/projects/libyaml/
Dlibyaml_emitter_fuzzer.c81 if ((event1->data.scalar.anchor && !event2->data.scalar.anchor) || in events_equal()
82 (!event1->data.scalar.anchor && event2->data.scalar.anchor) || in events_equal()
83 (event1->data.scalar.anchor && event2->data.scalar.anchor && in events_equal()
84 strcmp((char *)event1->data.scalar.anchor, in events_equal()
85 (char *)event2->data.scalar.anchor) != 0)) in events_equal()
87 if ((event1->data.scalar.tag && !event2->data.scalar.tag && in events_equal()
88 strcmp((char *)event1->data.scalar.tag, "!") != 0) || in events_equal()
89 (!event1->data.scalar.tag && event2->data.scalar.tag && in events_equal()
90 strcmp((char *)event2->data.scalar.tag, "!") != 0) || in events_equal()
91 (event1->data.scalar.tag && event2->data.scalar.tag && in events_equal()
[all …]
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/
DSPIRVGLSLOps.td88 The operand x must be a scalar or vector whose component type is
96 float-scalar-vector-type ::= float-type |
99 float-scalar-vector-type
119 Result Type and the type of x must both be integer scalar or integer vector
125 integer-scalar-vector-type ::= integer-type |
128 integer-scalar-vector-type
148 The operand x must be a scalar or vector whose component type is
156 float-scalar-vector-type ::= float-type |
159 float-scalar-vector-type
178 The operand x must be a scalar or vector whose component type is 16-bit or
[all …]
DSPIRVLogicalOps.td52 Result Type must be a scalar or vector of Boolean type.
54 The type of Operand 1 and Operand 2 must be a scalar or vector of
63 float-scalar-vector-type ::= float-type |
86 Result Type must be a scalar or vector of Boolean type.
88 The type of Operand 1 and Operand 2 must be a scalar or vector of
97 float-scalar-vector-type ::= float-type |
120 Result Type must be a scalar or vector of Boolean type.
122 The type of Operand 1 and Operand 2 must be a scalar or vector of
131 float-scalar-vector-type ::= float-type |
154 Result Type must be a scalar or vector of Boolean type.
[all …]
/external/XNNPACK/scripts/
Dgenerate-f32-vbinary.sh9 …rc/f32-vbinary/vop-scalar.c.in -D OP=ADD -D BATCH_TILE=1 -D WASM=0 -D ACTIVATION=MINMAX -o src…
10 …rc/f32-vbinary/vop-scalar.c.in -D OP=ADD -D BATCH_TILE=2 -D WASM=0 -D ACTIVATION=MINMAX -o src…
11 …rc/f32-vbinary/vop-scalar.c.in -D OP=ADD -D BATCH_TILE=4 -D WASM=0 -D ACTIVATION=MINMAX -o src…
12 …rc/f32-vbinary/vop-scalar.c.in -D OP=ADD -D BATCH_TILE=8 -D WASM=0 -D ACTIVATION=MINMAX -o src…
13 …rc/f32-vbinary/vop-scalar.c.in -D OP=DIV -D BATCH_TILE=1 -D WASM=0 -D ACTIVATION=MINMAX -o src…
14 …rc/f32-vbinary/vop-scalar.c.in -D OP=DIV -D BATCH_TILE=2 -D WASM=0 -D ACTIVATION=MINMAX -o src…
15 …rc/f32-vbinary/vop-scalar.c.in -D OP=DIV -D BATCH_TILE=4 -D WASM=0 -D ACTIVATION=MINMAX -o src…
16 …rc/f32-vbinary/vop-scalar.c.in -D OP=DIV -D BATCH_TILE=8 -D WASM=0 -D ACTIVATION=MINMAX -o src…
17 …rc/f32-vbinary/vop-scalar.c.in -D OP=MUL -D BATCH_TILE=1 -D WASM=0 -D ACTIVATION=MINMAX -o src…
18 …rc/f32-vbinary/vop-scalar.c.in -D OP=MUL -D BATCH_TILE=2 -D WASM=0 -D ACTIVATION=MINMAX -o src…
[all …]
/external/llvm-project/flang/test/Semantics/
Dstructconst02.f9011 type :: scalar(ik,rk,zk,ck,lk,len) type
23 end type scalar
26 type(scalar), intent(in) :: x
29 call scalararg(scalar(4)(ix=1,rx=2.,zx=(3.,4.),cx='a',lx=.true.))
30 call scalararg(scalar(4)(1,2.,(3.,4.),'a',.true.))
33 call scalararg(scalar(4)(ix=5.,rx=6,zx=(7._8,8._2),cx=4_'b',lx=.true.))
34 call scalararg(scalar(4)(5.,6,(7._8,8._2),4_'b',.true.))
36 call scalararg(scalar(4)(ix='a'))
38 call scalararg(scalar(4)(ix=.false.))
40 call scalararg(scalar(4)(ix=[1]))
/external/llvm-project/flang/lib/Parser/
Dexpr-parsers.h21 template <typename PA> inline constexpr auto scalar(const PA &p) { in scalar() function
47 constexpr auto scalarLogicalVariable{scalar(logical(variable))};
51 constexpr auto scalarDefaultCharVariable{scalar(defaultChar(variable))};
55 constexpr auto scalarIntVariable{scalar(integer(variable))};
63 constexpr auto scalarLogicalExpr{scalar(logicalExpr)};
67 constexpr auto scalarDefaultCharExpr{scalar(defaultCharExpr)};
71 constexpr auto scalarIntExpr{scalar(intExpr)};
75 constexpr auto scalarExpr{scalar(indirect(expr))};
78 constexpr auto scalarDefaultCharConstantExpr{scalar(defaultChar(constantExpr))};
82 constexpr auto scalarIntConstantExpr{scalar(intConstantExpr)};
[all …]
/external/llvm-project/llvm/test/CodeGen/SystemZ/
Dvec-perm-03.ll1 ; Test replications of a scalar memory value, represented as splats.
10 %scalar = load i8, i8 *%ptr
11 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
23 %scalar = load i8, i8 *%ptr
24 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
37 %scalar = load i8, i8 *%ptr
38 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
49 %scalar = load i16, i16 *%ptr
50 %val = insertelement <8 x i16> undef, i16 %scalar, i32 0
62 %scalar = load i16, i16 *%ptr
[all …]
Dvec-perm-02.ll1 ; Test replications of a scalar register value, represented as splats.
6 define <16 x i8> @f1(i8 %scalar) {
11 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
18 define <16 x i8> @f2(i8 %scalar) {
23 %val = insertelement <16 x i8> undef, i8 %scalar, i32 15
34 define <16 x i8> @f3(i8 %scalar) {
39 %val = insertelement <16 x i8> undef, i8 %scalar, i32 4
49 define <8 x i16> @f4(i16 %scalar) {
54 %val = insertelement <8 x i16> undef, i16 %scalar, i32 0
61 define <8 x i16> @f5(i16 %scalar) {
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dvec-perm-03.ll1 ; Test replications of a scalar memory value, represented as splats.
10 %scalar = load i8, i8 *%ptr
11 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
23 %scalar = load i8, i8 *%ptr
24 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
37 %scalar = load i8, i8 *%ptr
38 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
49 %scalar = load i16, i16 *%ptr
50 %val = insertelement <8 x i16> undef, i16 %scalar, i32 0
62 %scalar = load i16, i16 *%ptr
[all …]
Dvec-perm-02.ll1 ; Test replications of a scalar register value, represented as splats.
6 define <16 x i8> @f1(i8 %scalar) {
11 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
18 define <16 x i8> @f2(i8 %scalar) {
23 %val = insertelement <16 x i8> undef, i8 %scalar, i32 15
34 define <16 x i8> @f3(i8 %scalar) {
39 %val = insertelement <16 x i8> undef, i8 %scalar, i32 4
49 define <8 x i16> @f4(i16 %scalar) {
54 %val = insertelement <8 x i16> undef, i16 %scalar, i32 0
61 define <8 x i16> @f5(i16 %scalar) {
[all …]
/external/llvm-project/flang/docs/
Df2018-grammar.md14 R403 scalar-xyz -> xyz
80 R701 type-param-value -> scalar-int-expr | * | :
92 ( [KIND =] scalar-int-constant-expr ) @ * scalar-int-constant-expr
95 R709 kind-param -> digit-string | scalar-int-constant-name
115 ( LEN = type-param-value , KIND = scalar-int-constant-expr ) |
116 ( type-param-value , [KIND =] scalar-int-constant-expr ) |
117 ( KIND = scalar-int-constant-expr [, LEN = type-param-value] )
136 R733 type-param-decl -> type-param-name [= scalar-int-constant-expr]
186 R762 enumerator -> named-constant [= scalar-int-constant-expr]
201 [integer-type-spec ::] ac-do-variable = scalar-int-expr ,
[all …]
/external/boringssl/src/crypto/curve25519/
Dx25519_test.cc94 uint8_t scalar[32] = {9}, point[32] = {9}, out[32]; in TEST() local
97 EXPECT_TRUE(X25519(out, scalar, point)); in TEST()
98 OPENSSL_memcpy(point, scalar, sizeof(point)); in TEST()
99 OPENSSL_memcpy(scalar, out, sizeof(scalar)); in TEST()
108 EXPECT_EQ(Bytes(kExpected), Bytes(scalar)); in TEST()
113 uint8_t scalar[32] = {9}, point[32] = {9}, out[32]; in TEST() local
116 EXPECT_TRUE(X25519(out, scalar, point)); in TEST()
117 OPENSSL_memcpy(point, scalar, sizeof(point)); in TEST()
118 OPENSSL_memcpy(scalar, out, sizeof(scalar)); in TEST()
127 EXPECT_EQ(Bytes(kExpected), Bytes(scalar)); in TEST()
/external/rust/crates/quiche/deps/boringssl/src/crypto/curve25519/
Dx25519_test.cc94 uint8_t scalar[32] = {9}, point[32] = {9}, out[32]; in TEST() local
97 EXPECT_TRUE(X25519(out, scalar, point)); in TEST()
98 OPENSSL_memcpy(point, scalar, sizeof(point)); in TEST()
99 OPENSSL_memcpy(scalar, out, sizeof(scalar)); in TEST()
108 EXPECT_EQ(Bytes(kExpected), Bytes(scalar)); in TEST()
113 uint8_t scalar[32] = {9}, point[32] = {9}, out[32]; in TEST() local
116 EXPECT_TRUE(X25519(out, scalar, point)); in TEST()
117 OPENSSL_memcpy(point, scalar, sizeof(point)); in TEST()
118 OPENSSL_memcpy(scalar, out, sizeof(scalar)); in TEST()
127 EXPECT_EQ(Bytes(kExpected), Bytes(scalar)); in TEST()
/external/brotli/java/org/brotli/dec/
DTransform.java171 int scalar = (param & 0x7FFF) + (0x1000000 - (param & 0x8000)); in transformDictionaryWord() local
177 scalar += c0; in transformDictionaryWord()
178 dst[shiftOffset] = (byte) (scalar & 0x7F); in transformDictionaryWord()
185 scalar += (c1 & 0x3F) | ((c0 & 0x1F) << 6); in transformDictionaryWord()
186 dst[shiftOffset] = (byte) (0xC0 | ((scalar >> 6) & 0x1F)); in transformDictionaryWord()
187 dst[shiftOffset + 1] = (byte) ((c1 & 0xC0) | (scalar & 0x3F)); in transformDictionaryWord()
197 scalar += (c2 & 0x3F) | ((c1 & 0x3F) << 6) | ((c0 & 0x0F) << 12); in transformDictionaryWord()
198 dst[shiftOffset] = (byte) (0xE0 | ((scalar >> 12) & 0x0F)); in transformDictionaryWord()
199 dst[shiftOffset + 1] = (byte) ((c1 & 0xC0) | ((scalar >> 6) & 0x3F)); in transformDictionaryWord()
200 dst[shiftOffset + 2] = (byte) ((c2 & 0xC0) | (scalar & 0x3F)); in transformDictionaryWord()
[all …]

12345678910>>...140