Home
last modified time | relevance | path

Searched refs:constant (Results 1 - 25 of 436) sorted by relevance

12345678910>>...18

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
H A DConstantUnion.h33 bool cast(TBasicType newType, const ConstantUnion &constant) in cast() argument
38 switch (constant.type) in cast()
40 case EbtInt: setFConst(static_cast<float>(constant.getIConst())); break; in cast()
41 case EbtUInt: setFConst(static_cast<float>(constant.getUConst())); break; in cast()
42 case EbtBool: setFConst(static_cast<float>(constant.getBConst())); break; in cast()
43 case EbtFloat: setFConst(static_cast<float>(constant.getFConst())); break; in cast()
48 switch (constant.type) in cast()
50 case EbtInt: setIConst(static_cast<int>(constant.getIConst())); break; in cast()
51 case EbtUInt: setIConst(static_cast<int>(constant.getUConst())); break; in cast()
52 case EbtBool: setIConst(static_cast<int>(constant in cast()
[all...]
/third_party/glslang/glslang/Include/
H A DConstantUnion.h210 bool operator==(const TConstUnion& constant) const in operator ==()
212 if (constant.type != type) in operator ==()
217 if (constant.iConst == iConst) in operator ==()
222 if (constant.uConst == uConst) in operator ==()
227 if (constant.bConst == bConst) in operator ==()
232 if (constant.dConst == dConst) in operator ==()
238 if (constant.i16Const == i16Const) in operator ==()
243 if (constant.u16Const == u16Const) in operator ==()
248 if (constant.i8Const == i8Const) in operator ==()
253 if (constant in operator ==()
[all...]
/third_party/spirv-tools/source/wasm/
H A Dspirv-tools.cpp57 constant("SPV_ENV_UNIVERSAL_1_0", static_cast<uint32_t>(SPV_ENV_UNIVERSAL_1_0)); in EMSCRIPTEN_BINDINGS()
58 constant("SPV_ENV_VULKAN_1_0", static_cast<uint32_t>(SPV_ENV_VULKAN_1_0)); in EMSCRIPTEN_BINDINGS()
59 constant("SPV_ENV_UNIVERSAL_1_1", static_cast<uint32_t>(SPV_ENV_UNIVERSAL_1_1)); in EMSCRIPTEN_BINDINGS()
60 constant("SPV_ENV_OPENCL_2_1", static_cast<uint32_t>(SPV_ENV_OPENCL_2_1)); in EMSCRIPTEN_BINDINGS()
61 constant("SPV_ENV_OPENCL_2_2", static_cast<uint32_t>(SPV_ENV_OPENCL_2_2)); in EMSCRIPTEN_BINDINGS()
62 constant("SPV_ENV_OPENGL_4_0", static_cast<uint32_t>(SPV_ENV_OPENGL_4_0)); in EMSCRIPTEN_BINDINGS()
63 constant("SPV_ENV_OPENGL_4_1", static_cast<uint32_t>(SPV_ENV_OPENGL_4_1)); in EMSCRIPTEN_BINDINGS()
64 constant("SPV_ENV_OPENGL_4_2", static_cast<uint32_t>(SPV_ENV_OPENGL_4_2)); in EMSCRIPTEN_BINDINGS()
65 constant("SPV_ENV_OPENGL_4_3", static_cast<uint32_t>(SPV_ENV_OPENGL_4_3)); in EMSCRIPTEN_BINDINGS()
66 constant("SPV_ENV_OPENGL_4_ in EMSCRIPTEN_BINDINGS()
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/wasm/
H A Dspirv-tools.cpp57 constant("SPV_ENV_UNIVERSAL_1_0", static_cast<uint32_t>(SPV_ENV_UNIVERSAL_1_0)); in EMSCRIPTEN_BINDINGS()
58 constant("SPV_ENV_VULKAN_1_0", static_cast<uint32_t>(SPV_ENV_VULKAN_1_0)); in EMSCRIPTEN_BINDINGS()
59 constant("SPV_ENV_UNIVERSAL_1_1", static_cast<uint32_t>(SPV_ENV_UNIVERSAL_1_1)); in EMSCRIPTEN_BINDINGS()
60 constant("SPV_ENV_OPENCL_2_1", static_cast<uint32_t>(SPV_ENV_OPENCL_2_1)); in EMSCRIPTEN_BINDINGS()
61 constant("SPV_ENV_OPENCL_2_2", static_cast<uint32_t>(SPV_ENV_OPENCL_2_2)); in EMSCRIPTEN_BINDINGS()
62 constant("SPV_ENV_OPENGL_4_0", static_cast<uint32_t>(SPV_ENV_OPENGL_4_0)); in EMSCRIPTEN_BINDINGS()
63 constant("SPV_ENV_OPENGL_4_1", static_cast<uint32_t>(SPV_ENV_OPENGL_4_1)); in EMSCRIPTEN_BINDINGS()
64 constant("SPV_ENV_OPENGL_4_2", static_cast<uint32_t>(SPV_ENV_OPENGL_4_2)); in EMSCRIPTEN_BINDINGS()
65 constant("SPV_ENV_OPENGL_4_3", static_cast<uint32_t>(SPV_ENV_OPENGL_4_3)); in EMSCRIPTEN_BINDINGS()
66 constant("SPV_ENV_OPENGL_4_ in EMSCRIPTEN_BINDINGS()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/wasm/
H A Dspirv-tools.cpp57 constant("SPV_ENV_UNIVERSAL_1_0", static_cast<uint32_t>(SPV_ENV_UNIVERSAL_1_0)); in EMSCRIPTEN_BINDINGS()
58 constant("SPV_ENV_VULKAN_1_0", static_cast<uint32_t>(SPV_ENV_VULKAN_1_0)); in EMSCRIPTEN_BINDINGS()
59 constant("SPV_ENV_UNIVERSAL_1_1", static_cast<uint32_t>(SPV_ENV_UNIVERSAL_1_1)); in EMSCRIPTEN_BINDINGS()
60 constant("SPV_ENV_OPENCL_2_1", static_cast<uint32_t>(SPV_ENV_OPENCL_2_1)); in EMSCRIPTEN_BINDINGS()
61 constant("SPV_ENV_OPENCL_2_2", static_cast<uint32_t>(SPV_ENV_OPENCL_2_2)); in EMSCRIPTEN_BINDINGS()
62 constant("SPV_ENV_OPENGL_4_0", static_cast<uint32_t>(SPV_ENV_OPENGL_4_0)); in EMSCRIPTEN_BINDINGS()
63 constant("SPV_ENV_OPENGL_4_1", static_cast<uint32_t>(SPV_ENV_OPENGL_4_1)); in EMSCRIPTEN_BINDINGS()
64 constant("SPV_ENV_OPENGL_4_2", static_cast<uint32_t>(SPV_ENV_OPENGL_4_2)); in EMSCRIPTEN_BINDINGS()
65 constant("SPV_ENV_OPENGL_4_3", static_cast<uint32_t>(SPV_ENV_OPENGL_4_3)); in EMSCRIPTEN_BINDINGS()
66 constant("SPV_ENV_OPENGL_4_ in EMSCRIPTEN_BINDINGS()
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A DConstantUnion.cpp135 bool TConstantUnion::cast(TBasicType newType, const TConstantUnion &constant) in cast() argument
140 switch (constant.type) in cast()
143 setFConst(static_cast<float>(constant.getIConst())); in cast()
146 setFConst(static_cast<float>(constant.getUConst())); in cast()
149 setFConst(static_cast<float>(constant.getBConst())); in cast()
152 setFConst(static_cast<float>(constant.getFConst())); in cast()
159 switch (constant.type) in cast()
162 setIConst(static_cast<int>(constant.getIConst())); in cast()
165 setIConst(static_cast<int>(constant.getUConst())); in cast()
168 setIConst(static_cast<int>(constant in cast()
[all...]
H A DConstantUnion.h28 bool cast(TBasicType newType, const TConstantUnion &constant);
69 bool operator==(const TConstantUnion &constant) const;
75 bool operator!=(const TConstantUnion &constant) const;
76 bool operator>(const TConstantUnion &constant) const;
77 bool operator<(const TConstantUnion &constant) const;
90 TConstantUnion operator%(const TConstantUnion &constant) const;
99 TConstantUnion operator&(const TConstantUnion &constant) const;
100 TConstantUnion operator|(const TConstantUnion &constant) const;
101 TConstantUnion operator^(const TConstantUnion &constant) const;
102 TConstantUnion operator&&(const TConstantUnion &constant) cons
[all...]
/third_party/mesa3d/src/compiler/glsl/
H A Dlower_packing_builtins.cpp195 constant(T x) in constant() function in __anon7192::lower_packing_builtins_visitor
197 return factory.constant(x); in constant()
218 return bitfield_insert(bit_and(swizzle_x(u), constant(0xffffu)), in pack_uvec2_to_uint()
220 constant(16u), in pack_uvec2_to_uint()
221 constant(16u)); in pack_uvec2_to_uint()
225 return bit_or(lshift(swizzle_y(u), constant(16u)), in pack_uvec2_to_uint()
226 bit_and(swizzle_x(u), constant(0xffffu))); in pack_uvec2_to_uint()
250 bit_and(swizzle_x(u), constant(0xffu)), in pack_uvec4_to_uint()
251 swizzle_y(u), constant(8u), constant( in pack_uvec4_to_uint()
[all...]
H A Dopt_constant_propagation.cpp5 * constant of this software and associated documentation files (the "Software"),
7 * the rights to use, constant, modify, merge, publish, distribute, sublicense,
28 * usage of those constant channels with direct usage of the constants.
30 * This can lead to constant folding and algebraic optimizations in
33 * constant push buffer or as instruction immediate values) and
53 acp_entry(ir_variable *var, unsigned write_mask, ir_constant *constant) in acp_entry() argument
56 assert(constant); in acp_entry()
59 this->constant = constant; in acp_entry()
67 this->constant in acp_entry()
72 ir_constant *constant; global() member in __anon7204::acp_entry
139 ir_constant *constant = constant_folding() local
493 ir_constant *constant = ir->rhs->as_constant(); add_constant() local
[all...]
H A Dbuiltin_int64.h26 body.emit(assign(r0010, add(r0012, body.constant(int(32))), 0x01)); in udivmod64()
29 ir_expression *const r0014 = equal(swizzle_y(r000D), body.constant(0u)); in udivmod64()
45 body.emit(assign(r0017, body.constant(int(31)), 0x01)); in udivmod64()
54 ir_expression *const r001B = less(r0017, body.constant(int(1))); in udivmod64()
70 ir_expression *const r001D = sub(body.constant(int(31)), r0017); in udivmod64()
84 ir_expression *const r0023 = lshift(body.constant(1u), r0017); in udivmod64()
93 body.emit(assign(r0017, add(r0017, body.constant(int(-1))), 0x01)); in udivmod64()
110 body.emit(assign(r0011, bit_or(swizzle_y(r0011), body.constant(1u)), 0x02)); in udivmod64()
129 body.emit(assign(r000E, body.constant(int(31)), 0x01)); in udivmod64()
138 ir_expression *const r0029 = less(r000E, body.constant(in in udivmod64()
[all...]
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_code.c59 unsigned rc_constants_add(struct rc_constant_list * c, struct rc_constant * constant) in rc_constants_add() argument
77 c->Constants[index] = *constant; in rc_constants_add()
85 * Add a state vector to the constant list, while trying to avoid duplicates.
90 struct rc_constant constant; in rc_constants_add_state() local
100 memset(&constant, 0, sizeof(constant)); in rc_constants_add_state()
101 constant.Type = RC_CONSTANT_STATE; in rc_constants_add_state()
102 constant.Size = 4; in rc_constants_add_state()
103 constant.u.State[0] = state0; in rc_constants_add_state()
104 constant in rc_constants_add_state()
117 struct rc_constant constant; rc_constants_add_immediate_vec4() local
143 struct rc_constant constant; rc_constants_add_immediate_scalar() local
[all...]
/third_party/glslang/glslang/MachineIndependent/
H A DSpirvIntrinsics.cpp211 const auto appendDecorate = [&](const TIntermTyped* constant) { in getSpirvDecorateQualifierString()
212 if (constant->getAsConstantUnion()) { in getSpirvDecorateQualifierString()
213 auto& constArray = constant->getAsConstantUnion()->getConstArray(); in getSpirvDecorateQualifierString()
214 if (constant->getBasicType() == EbtFloat) { in getSpirvDecorateQualifierString()
217 } else if (constant->getBasicType() == EbtInt) { in getSpirvDecorateQualifierString()
220 } else if (constant->getBasicType() == EbtUint) { in getSpirvDecorateQualifierString()
223 } else if (constant->getBasicType() == EbtBool) { in getSpirvDecorateQualifierString()
226 } else if (constant->getBasicType() == EbtString) { in getSpirvDecorateQualifierString()
232 assert(constant->getAsSymbolNode()); in getSpirvDecorateQualifierString()
233 appendStr(constant in getSpirvDecorateQualifierString()
284 makeSpirvTypeParameters(const TSourceLoc& loc, const TIntermConstantUnion* constant) makeSpirvTypeParameters() argument
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A Dfuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp42 // Randomly decide whether to consider this constant. in Apply()
48 auto constant = GetIRContext()->get_constant_mgr()->FindDeclaredConstant( in Apply() local
58 if (!constant->AsIntConstant() && in Apply()
59 !(constant->AsVectorConstant() && in Apply()
60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply()
94 // Consider each constant and each block. in Apply()
142 // Find or create the corresponding constant containing the number of in Apply()
154 // Get the content of the existing constant. in Apply()
155 const auto constant = in Apply() local
160 if (constant in Apply()
[all...]
H A Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp41 // identifying the use of a constant id and the second is the id that should in Apply()
45 for (auto constant : GetIRContext()->GetConstants()) { in Apply()
46 uint32_t constant_id = constant->result_id(); in Apply()
48 // We want to record the synonymity of an integer constant with another in Apply()
49 // constant with opposite signedness, and this can only be done if they are in Apply()
57 FindOrCreateToggledIntegerConstant(constant->result_id()); in Apply()
59 // Not an integer constant in Apply()
71 // Find all the uses of the constant and, for each, probabilistically in Apply()
95 // |id| must not be a specialization constant because we do not know the value in FindOrCreateToggledIntegerConstant()
102 auto constant in FindOrCreateToggledIntegerConstant() local
[all...]
H A Dfuzzer_pass_interchange_zero_like_constants.cpp35 // |declaration| must not be a specialization constant because we do not know in FindOrCreateToggledConstant()
41 auto constant = GetIRContext()->get_constant_mgr()->FindDeclaredConstant( in FindOrCreateToggledConstant() local
45 if (!constant->IsZero()) { in FindOrCreateToggledConstant()
49 if (constant->AsScalarConstant()) { in FindOrCreateToggledConstant()
51 } else if (constant->AsNullConstant()) { in FindOrCreateToggledConstant()
52 // Add declaration of equivalent scalar constant in FindOrCreateToggledConstant()
53 auto kind = constant->type()->kind(); in FindOrCreateToggledConstant()
67 // identifying the use of a constant id and the second is the id that should in Apply()
71 for (auto constant : GetIRContext()->GetConstants()) { in Apply()
72 uint32_t constant_id = constant in Apply()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A Dfuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp42 // Randomly decide whether to consider this constant. in Apply()
48 auto constant = GetIRContext()->get_constant_mgr()->FindDeclaredConstant( in Apply() local
58 if (!constant->AsIntConstant() && in Apply()
59 !(constant->AsVectorConstant() && in Apply()
60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply()
94 // Consider each constant and each block. in Apply()
142 // Find or create the corresponding constant containing the number of in Apply()
154 // Get the content of the existing constant. in Apply()
155 const auto constant = in Apply() local
160 if (constant in Apply()
[all...]
H A Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp41 // identifying the use of a constant id and the second is the id that should in Apply()
45 for (auto constant : GetIRContext()->GetConstants()) { in Apply()
46 uint32_t constant_id = constant->result_id(); in Apply()
48 // We want to record the synonymity of an integer constant with another in Apply()
49 // constant with opposite signedness, and this can only be done if they are in Apply()
57 FindOrCreateToggledIntegerConstant(constant->result_id()); in Apply()
59 // Not an integer constant in Apply()
71 // Find all the uses of the constant and, for each, probabilistically in Apply()
95 // |id| must not be a specialization constant because we do not know the value in FindOrCreateToggledIntegerConstant()
102 auto constant in FindOrCreateToggledIntegerConstant() local
[all...]
H A Dfuzzer_pass_interchange_zero_like_constants.cpp35 // |declaration| must not be a specialization constant because we do not know in FindOrCreateToggledConstant()
41 auto constant = GetIRContext()->get_constant_mgr()->FindDeclaredConstant( in FindOrCreateToggledConstant() local
45 if (!constant->IsZero()) { in FindOrCreateToggledConstant()
49 if (constant->AsScalarConstant()) { in FindOrCreateToggledConstant()
51 } else if (constant->AsNullConstant()) { in FindOrCreateToggledConstant()
52 // Add declaration of equivalent scalar constant in FindOrCreateToggledConstant()
53 auto kind = constant->type()->kind(); in FindOrCreateToggledConstant()
67 // identifying the use of a constant id and the second is the id that should in Apply()
71 for (auto constant : GetIRContext()->GetConstants()) { in Apply()
72 uint32_t constant_id = constant in Apply()
[all...]
/third_party/spirv-tools/source/fuzz/
H A Dfuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp42 // Randomly decide whether to consider this constant. in Apply()
48 auto constant = GetIRContext()->get_constant_mgr()->FindDeclaredConstant( in Apply() local
58 if (!constant->AsIntConstant() && in Apply()
59 !(constant->AsVectorConstant() && in Apply()
60 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply()
94 // Consider each constant and each block. in Apply()
142 // Find or create the corresponding constant containing the number of in Apply()
154 // Get the content of the existing constant. in Apply()
155 const auto constant = in Apply() local
160 if (constant in Apply()
[all...]
H A Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp41 // identifying the use of a constant id and the second is the id that should in Apply()
45 for (auto constant : GetIRContext()->GetConstants()) { in Apply()
46 uint32_t constant_id = constant->result_id(); in Apply()
48 // We want to record the synonymity of an integer constant with another in Apply()
49 // constant with opposite signedness, and this can only be done if they are in Apply()
57 FindOrCreateToggledIntegerConstant(constant->result_id()); in Apply()
59 // Not an integer constant in Apply()
71 // Find all the uses of the constant and, for each, probabilistically in Apply()
95 // |id| must not be a specialization constant because we do not know the value in FindOrCreateToggledIntegerConstant()
102 auto constant in FindOrCreateToggledIntegerConstant() local
[all...]
H A Dfuzzer_pass_interchange_zero_like_constants.cpp35 // |declaration| must not be a specialization constant because we do not know in FindOrCreateToggledConstant()
41 auto constant = GetIRContext()->get_constant_mgr()->FindDeclaredConstant( in FindOrCreateToggledConstant() local
45 if (!constant->IsZero()) { in FindOrCreateToggledConstant()
49 if (constant->AsScalarConstant()) { in FindOrCreateToggledConstant()
51 } else if (constant->AsNullConstant()) { in FindOrCreateToggledConstant()
52 // Add declaration of equivalent scalar constant in FindOrCreateToggledConstant()
53 auto kind = constant->type()->kind(); in FindOrCreateToggledConstant()
67 // identifying the use of a constant id and the second is the id that should in Apply()
71 for (auto constant : GetIRContext()->GetConstants()) { in Apply()
72 uint32_t constant_id = constant in Apply()
[all...]
/third_party/musl/src/linux/
H A Dclock_adjtime.c14 long long constant, precision, tolerance; member
28 long constant, precision, tolerance; member
48 .constant = utx->constant, in clock_adjtime()
72 utx->constant = ktx.constant; in clock_adjtime()
101 .constant = utx->constant, in clock_adjtime()
129 utx->constant = ktx.constant; in clock_adjtime()
[all...]
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c47 const unsigned char *constant, size_t constant_len,
55 unsigned char *constant; member
91 OPENSSL_clear_free(ctx->constant, ctx->constant_len); in krb5kdf_reset()
124 if (ctx->constant == NULL) { in krb5kdf_derive()
130 ctx->constant, ctx->constant_len, in krb5kdf_derive()
152 if (!krb5kdf_set_membuf(&ctx->constant, &ctx->constant_len, p)) in krb5kdf_set_ctx_params()
253 * s |= constant rot 13*(r-1))
261 * s[l] = (constant rot 13*(l/K))[l%k]
266 const unsigned char *constant, size_t constant_len) in n_fold()
272 memcpy(block, constant, constant_le in n_fold()
265 n_fold(unsigned char *block, unsigned int blocksize, const unsigned char *constant, size_t constant_len) n_fold() argument
355 KRB5KDF(const EVP_CIPHER *cipher, ENGINE *engine, const unsigned char *key, size_t key_len, const unsigned char *constant, size_t constant_len, unsigned char *okey, size_t okey_len) KRB5KDF() argument
[all...]
/third_party/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c47 const unsigned char *constant, size_t constant_len,
55 unsigned char *constant; member
91 OPENSSL_clear_free(ctx->constant, ctx->constant_len); in krb5kdf_reset()
124 if (ctx->constant == NULL) { in krb5kdf_derive()
130 ctx->constant, ctx->constant_len, in krb5kdf_derive()
152 if (!krb5kdf_set_membuf(&ctx->constant, &ctx->constant_len, p)) in krb5kdf_set_ctx_params()
253 * s |= constant rot 13*(r-1))
261 * s[l] = (constant rot 13*(l/K))[l%k]
266 const unsigned char *constant, size_t constant_len) in n_fold()
272 memcpy(block, constant, constant_le in n_fold()
265 n_fold(unsigned char *block, unsigned int blocksize, const unsigned char *constant, size_t constant_len) n_fold() argument
355 KRB5KDF(const EVP_CIPHER *cipher, ENGINE *engine, const unsigned char *key, size_t key_len, const unsigned char *constant, size_t constant_len, unsigned char *okey, size_t okey_len) KRB5KDF() argument
[all...]
/third_party/mesa3d/src/compiler/glsl/tests/
H A Darray_refcount_test.cpp503 body->constant(int(2))))); in TEST_F()
534 deref_array(var_b, body->constant(int(2))), in TEST_F()
535 body->constant(int(1))), in TEST_F()
536 body->constant(int(0))))); in TEST_F()
569 deref_array(var_b, body->constant(int(2))), in TEST_F()
571 body->constant(int(1))))); in TEST_F()
613 deref_array(var_b, body->constant(int(2))), in TEST_F()
614 body->constant(int(3))), in TEST_F()
675 deref_array(var_b, body->constant(int(0))), in TEST_F()
676 body->constant(in in TEST_F()
[all...]

Completed in 12 milliseconds

12345678910>>...18