Home
last modified time | relevance | path

Searched full:constants (Results 1 – 25 of 5917) sorted by relevance

12345678910>>...237

/external/swiftshader/src/Pipeline/
DVertexRoutine.cpp18 #include "Constants.hpp"
52 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants)); in generate()
120 …clipFlags = *Pointer<Int>(constants + OFFSET(Constants,maxX) + SignMask(maxX) * 4); // FIXME: Ar… in computeClipFlags()
121 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxY) + SignMask(maxY) * 4); in computeClipFlags()
122 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxZ) + SignMask(maxZ) * 4); in computeClipFlags()
123 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minX) + SignMask(minX) * 4); in computeClipFlags()
124 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minY) + SignMask(minY) * 4); in computeClipFlags()
125 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minZ) + SignMask(minZ) * 4); in computeClipFlags()
127 Int4 finiteX = CmpLE(Abs(o[pos].x), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
128 Int4 finiteY = CmpLE(Abs(o[pos].y), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
[all …]
DPixelRoutine.cpp18 #include "Constants.hpp"
86 x -= *Pointer<Float4>(constants + OFFSET(Constants,X) + q * sizeof(float4)); in quad()
121 XXXX += *Pointer<Float4>(constants + OFFSET(Constants,sampleX[q]) + 16 * cMask[q]); in quad()
122 YYYY += *Pointer<Float4>(constants + OFFSET(Constants,sampleY[q]) + 16 * cMask[q]); in quad()
123 WWWW += *Pointer<Float4>(constants + OFFSET(Constants,weight) + 16 * cMask[q]); in quad()
247 …occlusion += *Pointer<UInt>(constants + OFFSET(Constants,occlusionCount) + 4 * (zMask[q] & sMask[q… in quad()
641 …Z = As<Float4>(As<Int4>(Z) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X) + zMask * 16, 16… in writeDepth()
642 …zValue = As<Float4>(As<Int4>(zValue) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X) + z… in writeDepth()
716 newValue &= *Pointer<Byte8>(constants + OFFSET(Constants,maskB4Q) + 8 * cMask); in writeStencil()
717 bufferValue &= *Pointer<Byte8>(constants + OFFSET(Constants,invMaskB4Q) + 8 * cMask); in writeStencil()
[all …]
/external/swiftshader/src/Shader/
DVertexRoutine.cpp18 #include "Constants.hpp"
52 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants)); in generate()
120 …clipFlags = *Pointer<Int>(constants + OFFSET(Constants,maxX) + SignMask(maxX) * 4); // FIXME: Ar… in computeClipFlags()
121 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxY) + SignMask(maxY) * 4); in computeClipFlags()
122 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxZ) + SignMask(maxZ) * 4); in computeClipFlags()
123 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minX) + SignMask(minX) * 4); in computeClipFlags()
124 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minY) + SignMask(minY) * 4); in computeClipFlags()
125 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minZ) + SignMask(minZ) * 4); in computeClipFlags()
127 Int4 finiteX = CmpLE(Abs(o[pos].x), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
128 Int4 finiteY = CmpLE(Abs(o[pos].y), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
[all …]
DPixelRoutine.cpp18 #include "Constants.hpp"
86 x -= *Pointer<Float4>(constants + OFFSET(Constants,X) + q * sizeof(float4)); in quad()
121 XXXX += *Pointer<Float4>(constants + OFFSET(Constants,sampleX[q]) + 16 * cMask[q]); in quad()
122 YYYY += *Pointer<Float4>(constants + OFFSET(Constants,sampleY[q]) + 16 * cMask[q]); in quad()
123 WWWW += *Pointer<Float4>(constants + OFFSET(Constants,weight) + 16 * cMask[q]); in quad()
247 …occlusion += *Pointer<UInt>(constants + OFFSET(Constants,occlusionCount) + 4 * (zMask[q] & sMask[q… in quad()
714 …Z = As<Float4>(As<Int4>(Z) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X) + zMask * 16, 16… in writeDepth()
715 …zValue = As<Float4>(As<Int4>(zValue) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X) + z… in writeDepth()
789 newValue &= *Pointer<Byte8>(constants + OFFSET(Constants,maskB4Q) + 8 * cMask); in writeStencil()
790 bufferValue &= *Pointer<Byte8>(constants + OFFSET(Constants,invMaskB4Q) + 8 * cMask); in writeStencil()
[all …]
/external/deqp-deps/SPIRV-Tools/test/opt/
Dunify_const_test.cpp188 // So far we don't have valid decorations for constants. This is in TEST_F()
273 // duplicated constants. in TEST_F()
319 // preserved constants.
321 // expected uses of the preserved constants.
323 // duplicated constants of the preserved constants.
325 // uses of the duplicated constants, expected to be updated to use the
326 // preserved constants.
329 // constants.
347 // Duplicated constants are killed in the expected output, and the debug in TEST_P()
349 // the corresponding preserved constants. in TEST_P()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dunify_const_test.cpp188 // So far we don't have valid decorations for constants. This is in TEST_F()
273 // duplicated constants. in TEST_F()
319 // preserved constants.
321 // expected uses of the preserved constants.
323 // duplicated constants of the preserved constants.
325 // uses of the duplicated constants, expected to be updated to use the
326 // preserved constants.
329 // constants.
347 // Duplicated constants are killed in the expected output, and the debug in TEST_P()
349 // the corresponding preserved constants. in TEST_P()
[all …]
/external/deqp-deps/SPIRV-Tools/source/opt/
Dfold.cpp222 std::vector<const analysis::Constant*> constants = in FoldInstructionInternal() local
226 if (rule(context_, inst, constants)) { in FoldInstructionInternal()
235 // result in 32 bit word. Scalar constants with longer than 32-bit width are
247 "Scalar constants with longer than 32-bit width are not allowed " in FoldScalars()
268 const analysis::IntConstant* constants[2]; in FoldBinaryIntegerOpToConstant() local
277 constants[i] = (constant != nullptr ? constant->AsIntConstant() : nullptr); in FoldBinaryIntegerOpToConstant()
284 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
297 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
307 if (constants[1] != nullptr) { in FoldBinaryIntegerOpToConstant()
311 uint32_t shift_amount = constants[1]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
[all …]
Dfold_spec_constant_op_and_composite_pass.cpp21 #include "source/opt/constants.h"
32 // Constants whose values are determined and do not depend on OpUndef in Process()
35 // Constants later. in Process()
36 // For Spec Constants defined with OpSpecConstantComposite instructions, if in Process()
37 // all of their components are Normal Constants, they will be turned into in Process()
38 // Normal Constants too. For Spec Constants defined with OpSpecConstantOp in Process()
39 // instructions, we check if they only depends on Normal Constants and fold in Process()
40 // them when possible. The two maps for Normal Constants: id_to_const_val_ in Process()
42 // Normal Constants generated from folding can be used to fold following Spec in Process()
43 // Constants. in Process()
[all …]
Dconst_folding_rules.cpp39 const std::vector<const analysis::Constant*>& constants) in FoldExtractWithConstants()
41 const analysis::Constant* c = constants[kExtractCompositeIdInIdx]; in FoldExtractWithConstants()
66 const std::vector<const analysis::Constant*>& constants) in FoldVectorShuffleWithConstants()
69 const analysis::Constant* c1 = constants[0]; in FoldVectorShuffleWithConstants()
70 const analysis::Constant* c2 = constants[1]; in FoldVectorShuffleWithConstants()
122 const std::vector<const analysis::Constant*>& constants) in FoldVectorTimesScalar()
134 const analysis::Constant* c1 = constants[0]; in FoldVectorTimesScalar()
135 const analysis::Constant* c2 = constants[1]; in FoldVectorTimesScalar()
196 // Folds an OpCompositeConstruct where all of the inputs are constants to a in FoldCompositeWithConstants()
199 const std::vector<const analysis::Constant*>& constants) in FoldCompositeWithConstants()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dfold.cpp240 std::vector<const analysis::Constant*> constants = in FoldInstructionInternal() local
244 if (rule(context_, inst, constants)) { in FoldInstructionInternal()
253 // result in 32 bit word. Scalar constants with longer than 32-bit width are
265 "Scalar constants with longer than 32-bit width are not allowed " in FoldScalars()
286 const analysis::IntConstant* constants[2]; in FoldBinaryIntegerOpToConstant() local
295 constants[i] = (constant != nullptr ? constant->AsIntConstant() : nullptr); in FoldBinaryIntegerOpToConstant()
302 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
315 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
325 if (constants[1] != nullptr) { in FoldBinaryIntegerOpToConstant()
330 uint32_t shift_amount = constants[1]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
[all …]
Dfold_spec_constant_op_and_composite_pass.cpp21 #include "source/opt/constants.h"
32 // Constants whose values are determined and do not depend on OpUndef in Process()
35 // Constants later. in Process()
36 // For Spec Constants defined with OpSpecConstantComposite instructions, if in Process()
37 // all of their components are Normal Constants, they will be turned into in Process()
38 // Normal Constants too. For Spec Constants defined with OpSpecConstantOp in Process()
39 // instructions, we check if they only depends on Normal Constants and fold in Process()
40 // them when possible. The two maps for Normal Constants: id_to_const_val_ in Process()
42 // Normal Constants generated from folding can be used to fold following Spec in Process()
43 // Constants. in Process()
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DElemComment.java43 * @see org.apache.xalan.templates.Constants
49 return Constants.ELEMNAME_COMMENT; in getXSLToken()
59 return Constants.ELEMNAME_COMMENT_STRING; in getNodeName()
112 case Constants.ELEMNAME_TEXTLITERALRESULT : in appendChild()
113 case Constants.ELEMNAME_APPLY_TEMPLATES : in appendChild()
114 case Constants.ELEMNAME_APPLY_IMPORTS : in appendChild()
115 case Constants.ELEMNAME_CALLTEMPLATE : in appendChild()
116 case Constants.ELEMNAME_FOREACH : in appendChild()
117 case Constants.ELEMNAME_VALUEOF : in appendChild()
118 case Constants.ELEMNAME_COPY_OF : in appendChild()
[all …]
DElemPI.java95 * @see org.apache.xalan.templates.Constants
101 return Constants.ELEMNAME_PI; in getXSLToken()
111 return Constants.ELEMNAME_PI_STRING; in getNodeName()
141 new Object[]{ Constants.ATTRNAME_NAME, piName }); in execute()
151 new Object[]{ Constants.ATTRNAME_NAME, piName }); in execute()
193 case Constants.ELEMNAME_TEXTLITERALRESULT : in appendChild()
194 case Constants.ELEMNAME_APPLY_TEMPLATES : in appendChild()
195 case Constants.ELEMNAME_APPLY_IMPORTS : in appendChild()
196 case Constants.ELEMNAME_CALLTEMPLATE : in appendChild()
197 case Constants.ELEMNAME_FOREACH : in appendChild()
[all …]
DElemAttribute.java53 * @see org.apache.xalan.templates.Constants
59 return Constants.ELEMNAME_ATTRIBUTE; in getXSLToken()
69 return Constants.ELEMNAME_ATTRIBUTE_STRING; in getNodeName()
231 case Constants.ELEMNAME_TEXTLITERALRESULT : in appendChild()
232 case Constants.ELEMNAME_APPLY_TEMPLATES : in appendChild()
233 case Constants.ELEMNAME_APPLY_IMPORTS : in appendChild()
234 case Constants.ELEMNAME_CALLTEMPLATE : in appendChild()
235 case Constants.ELEMNAME_FOREACH : in appendChild()
236 case Constants.ELEMNAME_VALUEOF : in appendChild()
237 case Constants.ELEMNAME_COPY_OF : in appendChild()
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_remove_constants.c70 struct rc_constant *constants = c->Program.Constants.Constants; in rc_remove_unused_constants() local
74 if (!c->Program.Constants.Count) { in rc_remove_unused_constants()
79 const_used = malloc(c->Program.Constants.Count); in rc_remove_unused_constants()
80 memset(const_used, 0, c->Program.Constants.Count); in rc_remove_unused_constants()
85 /* Pass 1: Mark used constants. */ in rc_remove_unused_constants()
94 for (unsigned i = 0; i < c->Program.Constants.Count; i++) in rc_remove_unused_constants()
95 if (constants[i].Type == RC_CONSTANT_EXTERNAL) in rc_remove_unused_constants()
99 /* Pass 3: Make the remapping table and remap constants. in rc_remove_unused_constants()
100 * This pass removes unused constants simply by overwriting them by other constants. */ in rc_remove_unused_constants()
101 remap_table = malloc(c->Program.Constants.Count * sizeof(unsigned)); in rc_remove_unused_constants()
[all …]
Dradeon_code.c42 * Copy a constants structure, assuming that the destination structure
47 dst->Constants = malloc(sizeof(struct rc_constant) * src->Count); in rc_constants_copy()
48 memcpy(dst->Constants, src->Constants, sizeof(struct rc_constant) * src->Count); in rc_constants_copy()
55 free(c->Constants); in rc_constants_destroy()
71 memcpy(newlist, c->Constants, sizeof(struct rc_constant) * c->Count); in rc_constants_add()
73 free(c->Constants); in rc_constants_add()
74 c->Constants = newlist; in rc_constants_add()
77 c->Constants[index] = *constant; in rc_constants_add()
93 if (c->Constants[index].Type == RC_CONSTANT_STATE) { in rc_constants_add_state()
94 if (c->Constants[index].u.State[0] == state0 && in rc_constants_add_state()
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/
Dfirmware_constants.py5 """Define constants for firmware touch device MTB tests."""
21 """This is a constant base class to ensure no rebinding of constants."""
29 """Define constants classes in alphabetic order below."""
33 """Constants about two axes."""
42 """Constants about device types."""
50 """Constants about fuzzy membership functions."""
62 """Constants about gesture variations."""
65 # constants about directions
91 # constants about locations
104 # constants about pinch to zoom
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DConstantPoolGen.java42 * constants via `addXXX' methods, `addString', `addClass',
47 * Constants.MAX_SHORT entries. Note that the first (0) is used by the
48 * JVM and that Double and Long constants need two slots.
67 protected Constant[] constants; field in ConstantPoolGen
92 * Initialize with given array of constants.
94 * @param cs array of given constants, new ones will be appended
100 constants = new Constant[size]; in ConstantPoolGen()
102 System.arraycopy(cs, 0, constants, 0, cs.length); in ConstantPoolGen()
109 final Constant c = constants[i]; in ConstantPoolGen()
112 final ConstantUtf8 u8 = (ConstantUtf8) constants[s.getStringIndex()]; in ConstantPoolGen()
[all …]
/external/autotest/client/site_tests/video_GlitchDetection/
Dvideo_GlitchDetection.py12 from autotest_lib.client.cros import constants as cros_constants
17 from autotest_lib.client.cros.video import constants
41 shutil.copy2(constants.VIDEO_HTML_FILEPATH, self.bindir)
43 file_utils.make_leaf_dir(constants.TEST_DIR)
93 box = (0, 0, constants.DESIRED_WIDTH, constants.DESIRED_HEIGHT)
96 for n in xrange(constants.NUM_CAPTURE_TRIES):
99 player, max_frame_count = constants.FCOUNT,
107 constants.MAX_FRAME_REPEAT_COUNT)
117 'tries. Checksums: %s' % (constants.NUM_CAPTURE_TRIES,
131 constants.TEST_DIR,
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/processor/
DXSLTSchema.java25 import org.apache.xalan.templates.Constants;
230 …new XSLTAttributeDef(Constants.S_XMLNAMESPACEURI, "space", false, false, false, XSLTAttributeDef.W… in build()
231 "default", Constants.ATTRVAL_STRIP, "preserve", in build()
232 Constants.ATTRVAL_PRESERVE); in build()
236 new XSLTAttributeDef(Constants.S_XMLNAMESPACEURI, "space", in build()
254 "single", Constants.NUMBERLEVEL_SINGLE, in build()
255 "multiple", Constants.NUMBERLEVEL_MULTI, in build()
256 "any", Constants.NUMBERLEVEL_ANY); in build()
276 "alphabetic", Constants.NUMBERLETTER_ALPHABETIC, in build()
277 "traditional", Constants.NUMBERLETTER_TRADITIONAL); in build()
[all …]
/external/tensorflow/tensorflow/contrib/session_bundle/
Dsession_bundle.py26 from tensorflow.contrib.session_bundle import constants
50 constants.META_GRAPH_DEF_FILENAME)
83 constants.META_GRAPH_DEF_FILENAME)
97 constants.VARIABLES_INDEX_FILENAME_V2)
104 export_dir, constants.VARIABLES_FILENAME_PATTERN_V2)
109 variables_filename = os.path.join(export_dir, constants.VARIABLES_FILENAME)
114 constants.VARIABLES_FILENAME_PATTERN)
124 restore_files = constants.VARIABLES_FILENAME
126 restore_files = constants.VARIABLES_FILENAME_PATTERN
128 assets_dir = os.path.join(export_dir, constants.ASSETS_DIRECTORY)
[all …]
/external/python/cpython2/Doc/library/
Dcarbon.rst61 :mod:`Carbon.Appearance` --- Appearance Manager constants
102 :mod:`Carbon.CarbonEvents` --- Carbon Event Manager constants
107 :synopsis: Constants for the interface to the Carbon Event Manager.
120 :mod:`Carbon.Components` --- Component Manager constants
125 :synopsis: Constants for the interface to the Component Manager.
137 :mod:`Carbon.Controls` --- Control Manager constants
142 :synopsis: Constants for the interface to the Control Manager.
145 :mod:`Carbon.CoreFounation` --- CoreFounation constants
150 :synopsis: Constants for the interface to CoreFoundation.
153 :mod:`Carbon.CoreGraphics` --- CoreGraphics constants
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DJDWPCommands.java29 * This class defines constants for JDWP commands and command sets.
34 * JDWP VirtualMachine Command Set constants.
85 * JDWP ReferenceType Command Set constants.
130 * JDWP ClassType Command Set constants.
146 * JDWP ArrayType Command Set constants.
156 * JDWP InterfaceType Command Set constants.
165 * JDWP Method Command Set constants.
183 * JDWP Field Command Set constants.
191 * JDWP ObjectReference Command Set constants.
218 * JDWP String Command Set constants.
[all …]
/external/apache-commons-bcel/src/examples/
DHelloWorldBuilder.java21 import org.apache.bcel.Constants;
66 "<generated>", Constants.ACC_PUBLIC | in main()
67 Constants.ACC_SUPER, in main()
71 MethodGen mg = new MethodGen(Constants.ACC_STATIC | in main()
72 Constants.ACC_PUBLIC,// access flags in main()
90 … il.append(factory.createFieldAccess("java.lang.System", "in", i_stream, Constants.GETSTATIC)); in main()
95 Constants.INVOKESPECIAL)); in main()
98 Constants.INVOKESPECIAL)); in main()
113 … il.append(factory.createFieldAccess("java.lang.System", "out", p_stream, Constants.GETSTATIC)); in main()
117 new Type[]{Type.STRING}, Constants.INVOKEVIRTUAL)); in main()
[all …]
/external/minijail/tools/
Darch.py25 'arch_nr', 'arch_name', 'bits', 'syscalls', 'constants',
48 constants = json.load(json_file)
50 arch_nr=constants['arch_nr'],
51 arch_name=constants['arch_name'],
52 bits=constants['bits'],
53 syscalls=constants['syscalls'],
54 constants=constants['constants'],
55 syscall_groups=constants.get('syscall_groups', {}),

12345678910>>...237