/third_party/node/test/parallel/ |
H A D | test-readline-keys.js | 140 { name: 'f1', sequence: '\x1b[2P', code: '[P', shift: true, meta: false, ctrl: false }, 141 { name: 'f1', sequence: '\x1b[3P', code: '[P', shift: false, meta: true, ctrl: false }, 142 { name: 'f1', sequence: '\x1b[4P', code: '[P', shift: true, meta: true, ctrl: false }, 143 { name: 'f1', sequence: '\x1b[5P', code: '[P', shift: false, meta: false, ctrl: true }, 144 { name: 'f1', sequence: '\x1b[6P', code: '[P', shift: true, meta: false, ctrl: true }, 145 { name: 'f1', sequence: '\x1b[7P', code: '[P', shift: false, meta: true, ctrl: true }, 146 { name: 'f1', sequence: '\x1b[8P', code: '[P', shift: true, meta: true, ctrl: true }, 147 { name: 'f2', sequence: '\x1b[3Q', code: '[Q', meta: true }, 148 { name: 'f2', sequence: '\x1b[8Q', code: '[Q', shift: true, meta: true, ctrl: true }, 149 { name: 'f3', sequence: '\x1b[3R', code [all...] |
/third_party/mesa3d/src/gallium/drivers/lima/ir/gp/ |
H A D | codegen.c | 86 static void gpir_codegen_mul0_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_mul0_slot() argument 91 code->mul0_src0 = gpir_codegen_src_unused; in gpir_codegen_mul0_slot() 92 code->mul0_src1 = gpir_codegen_src_unused; in gpir_codegen_mul0_slot() 100 code->mul0_src0 = gpir_get_alu_input(node, alu->children[0]); in gpir_codegen_mul0_slot() 101 code->mul0_src1 = gpir_get_alu_input(node, alu->children[1]); in gpir_codegen_mul0_slot() 102 if (code->mul0_src1 == gpir_codegen_src_p1_complex) { in gpir_codegen_mul0_slot() 104 code->mul0_src1 = code->mul0_src0; in gpir_codegen_mul0_slot() 105 code->mul0_src0 = gpir_codegen_src_p1_complex; in gpir_codegen_mul0_slot() 108 code in gpir_codegen_mul0_slot() 146 gpir_codegen_mul1_slot(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen_mul1_slot() argument 198 gpir_codegen_add0_slot(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen_add0_slot() argument 283 gpir_codegen_add1_slot(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen_add1_slot() argument 368 gpir_codegen_complex_slot(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen_complex_slot() argument 413 gpir_codegen_pass_slot(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen_pass_slot() argument 458 gpir_codegen_reg0_slot(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen_reg0_slot() argument 467 gpir_codegen_reg1_slot(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen_reg1_slot() argument 475 gpir_codegen_mem_slot(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen_mem_slot() argument 502 gpir_codegen_store_slot(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen_store_slot() argument 548 gpir_codegen(gpir_codegen_instr *code, gpir_instr *instr) gpir_codegen() argument 589 gpir_codegen_instr *code = rzalloc_array(comp->prog, gpir_codegen_instr, num_instr); gpir_codegen_prog() local [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | json_parser.py | 42 /** This code is generated. To make changes, please modify the scripts or the relevant xml **/ 378 code = "" 379 code += "static void parse_%s(const char* s, Json::Value& obj, %s& o)\n" %(baseType, self.baseTypeListMap[baseType]) 380 code += "{\n" 382 code += " if (obj.isString())\n" 384 code += " %sif (obj.asString() == \"%s\")\n" %("else " if index > 0 else "", enumValue[0]) 385 code += " o = %s;\n" %(enumValue[1]) 387 code += " else if (obj.asString() == \"NaN\")\n" 388 code += " o = std::numeric_limits<float>::quiet_NaN();\n" 389 code [all...] |
H A D | json_c_generator.py | 28 /** This code is generated. To make changes, please modify the scripts or the relevant xml **/ 155 code = "" 156 code += "void dumpPNextChain(const void* pNext) {\n" 157 code += " VkBaseInStructure *pBase = (VkBaseInStructure*)pNext;\n" 158 code += " if (pNext) {\n" 159 code += " PRINT_SPACE\n" 160 code += " vk_json_printf(_OUT, \"\\\"pNext\\\":\\n\");\n" 161 code += " switch (pBase->sType) {\n" 175 code += "#endif\n" 178 code [all...] |
H A D | json_generator.py | 41 /** This code is generated. To make changes, please modify the scripts or the relevant xml **/ 302 # Fills in some extensions for exclusion while generating code for layer. 456 code = "" 458 code += "/*************************************** Begin prototypes ***********************************/\n" 480 code += "/*************************************** End prototypes ***********************************/\n\n" 481 code += "static void dumpPNextChain(const void* pNext) {\n" 482 code += " VkBaseInStructure *pBase = (VkBaseInStructure*)pNext;\n" 483 code += " if (pNext) {\n" 484 code += " PRINT_SPACE\n" 485 code [all...] |
/third_party/mesa3d/src/nouveau/codegen/ |
H A D | nv50_ir_emit_nv50.cpp | 138 code[pos / 32] |= SDATA(src).id << (pos % 32); in srcId() 144 code[pos / 32] |= SDATA(*src).id << (pos % 32); in srcId() 162 code[pos / 32] |= offset << (pos % 32); in srcAddr16() 173 code[pos / 32] |= (offset >> 2) << (pos % 32); in srcAddr8() 180 code[pos / 32] |= DDATA(def).id << (pos % 32); in defId() 187 case ROUND_M: code[1] |= 1 << 22; break; in roundMode_MAD() 188 case ROUND_P: code[1] |= 2 << 22; break; in roundMode_MAD() 189 case ROUND_Z: code[1] |= 3 << 22; break; in roundMode_MAD() 199 code[1] |= i->src(0).mod.neg() << 26; in emitMNeg12() 200 code[ in emitMNeg12() 892 nv50_interpApply(const FixupEntry *entry, uint32_t *code, const FixupData& data) nv50_interpApply() argument 1277 alphatestSet(const FixupEntry *entry, uint32_t *code, const FixupData& data) alphatestSet() argument [all...] |
H A D | nv50_ir_emit_gk110.cpp | 161 if (i->src(s).mod.neg()) code[(0x##b) / 32] |= 1 << ((0x##b) % 32) 163 if (i->src(s).mod.abs()) code[(0x##b) / 32] |= 1 << ((0x##b) % 32) 166 code[(0x##b) / 32] |= 1 << ((0x##b) % 32) 168 #define FTZ_(b) if (i->ftz) code[(0x##b) / 32] |= 1 << ((0x##b) % 32) 169 #define DNZ_(b) if (i->dnz) code[(0x##b) / 32] |= 1 << ((0x##b) % 32) 171 #define SAT_(b) if (i->saturate) code[(0x##b) / 32] |= 1 << ((0x##b) % 32) 180 code[pos / 32] |= (src.get() ? SDATA(src).id : GK110_GPR_ZERO) << (pos % 32); in srcId() 185 code[pos / 32] |= (src ? SDATA(*src).id : GK110_GPR_ZERO) << (pos % 32); in srcId() 191 code[pos / 32] |= r << (pos % 32); in srcId() 196 code[po in srcAddr32() 1211 gk110_selpFlip(const FixupEntry *entry, uint32_t *code, const FixupData& data) gk110_selpFlip() argument 2053 gk110_interpApply(const struct FixupEntry *entry, uint32_t *code, const FixupData& data) gk110_interpApply() argument [all...] |
H A D | nv50_ir_emit_nvc0.cpp | 173 code[pos / 32] |= (src.get() ? SDATA(src).id : 63) << (pos % 32); in srcId() 178 code[pos / 32] |= (src ? SDATA(*src).id : 63) << (pos % 32); in srcId() 184 code[pos / 32] |= r << (pos % 32); in srcId() 192 code[pos / 32] |= offset << (pos % 32); in srcAddr32() 194 code[1] |= offset >> (32 - pos); in srcAddr32() 199 code[pos / 32] |= (def.get() && def.getFile() != FILE_FLAGS ? DDATA(def).id : 63) << (pos % 32); in defId() 207 code[pos / 32] |= 63 << (pos % 32); in defId() 225 case ROUND_M: code[1] |= 1 << 23; break; in roundMode_A() 226 case ROUND_P: code[1] |= 2 << 23; break; in roundMode_A() 227 case ROUND_Z: code[ in roundMode_A() 1257 nvc0_selpFlip(const FixupEntry *entry, uint32_t *code, const FixupData& data) nvc0_selpFlip() argument [all...] |
/third_party/pcre2/pcre2/src/ |
H A D | pcre2_printint.c | 9 Original API code Copyright (c) 1997-2012 University of Cambridge 10 New API code Copyright (c) 2016-2022 University of Cambridge 16 * Redistributions of source code must retain the above copyright notice, 45 code unit width, with PCRE2_SUFFIX set appropriately, just like the functions 50 /* Tables of operator names. The same 8-bit table is used for all code unit 81 /* In UTF mode the character may occupy more than one code unit. 85 ptr pointer to first code unit of the character 88 Returns: number of additional code units used 97 /* If UTF is supported and requested, check for a valid single code unit. */ in print_char() 112 /* Handle a valid one-code in print_char() 302 print_prop(FILE *f, PCRE2_SPTR code, const char *before, const char *after) print_prop() argument 341 PCRE2_SPTR codestart, nametable, code; pcre2_printint() local [all...] |
H A D | pcre2_auto_possess.c | 9 Original API code Copyright (c) 1997-2012 University of Cambridge 10 New API code Copyright (c) 2016-2022 University of Cambridge 16 * Redistributions of source code must retain the above copyright notice, 65 zero because property types are handled separately in the code. The last four 165 because they can all use the same code. For more details see the comment where 306 /* Checks whether the code points to an opcode that can take part in auto- 310 code points to start of expression 320 Returns: points to the start of the next opcode if *code is accepted 321 NULL if *code is not accepted 325 get_chr_property_list(PCRE2_SPTR code, BOO argument 536 compare_opcodes(PCRE2_SPTR code, BOOL utf, BOOL ucp, const compile_block *cb, const uint32_t *base_list, PCRE2_SPTR base_end, int *rec_limit) compare_opcodes() argument 1132 auto_possessify(PCRE2_UCHAR *code, const compile_block *cb) auto_possessify() argument [all...] |
/third_party/skia/src/gpu/tessellate/shaders/ |
H A D | GrStrokeTessellationShader_HardwareImpl.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 324 SkString code(versionAndExtensionDecls); in getTessControlShaderGLSL() 326 code.append("layout(vertices = 3) out;\n"); in getTessControlShaderGLSL() 327 code.appendf("precision highp float;\n"); in getTessControlShaderGLSL() 329 code.appendf("#define float2 vec2\n"); in getTessControlShaderGLSL() 330 code.appendf("#define float3 vec3\n"); in getTessControlShaderGLSL() 331 code.appendf("#define float4 vec4\n"); in getTessControlShaderGLSL() 332 code.appendf("#define float2x2 mat2\n"); in getTessControlShaderGLSL() 333 code.appendf("#define float3x2 mat3x2\n"); in getTessControlShaderGLSL() 334 code in getTessControlShaderGLSL() [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | r300_fragprog_emit.c | 60 struct r300_fragment_program_code *code = &c->code->code.r300 85 static void use_temporary(struct r300_fragment_program_code *code, unsigned int index) in use_temporary() argument 87 if (index > code->pixsize) in use_temporary() 88 code->pixsize = index; in use_temporary() 91 static unsigned int use_source(struct r300_fragment_program_code* code, struct rc_pair_instruction_source src) in use_source() argument 99 use_temporary(code, src.Index); in use_source() 159 if (code->alu.length >= c->Base.max_alu_insts) { in emit_alu() 164 ip = code in emit_alu() 310 struct r300_fragment_program_code *code = &emit->compiler->code->code.r300; finish_node() local 483 struct r300_fragment_program_code *code = &compiler->code->code.r300; r300BuildFragmentProgramHwCode() local [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | utypes.cpp | 198 u_errorName(UErrorCode code) { in u_errorName() argument 199 if(U_ZERO_ERROR <= code && code < U_STANDARD_ERROR_LIMIT) { in u_errorName() 200 return _uErrorName[code]; in u_errorName() 201 } else if(U_ERROR_WARNING_START <= code && code < U_ERROR_WARNING_LIMIT) { in u_errorName() 202 return _uErrorInfoName[code - U_ERROR_WARNING_START]; in u_errorName() 203 } else if(U_PARSE_ERROR_START <= code && code < U_PARSE_ERROR_LIMIT){ in u_errorName() 204 return _uTransErrorName[code in u_errorName() [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | utypes.cpp | 198 u_errorName(UErrorCode code) { in u_errorName() argument 199 if(U_ZERO_ERROR <= code && code < U_STANDARD_ERROR_LIMIT) { in u_errorName() 200 return _uErrorName[code]; in u_errorName() 201 } else if(U_ERROR_WARNING_START <= code && code < U_ERROR_WARNING_LIMIT) { in u_errorName() 202 return _uErrorInfoName[code - U_ERROR_WARNING_START]; in u_errorName() 203 } else if(U_PARSE_ERROR_START <= code && code < U_PARSE_ERROR_LIMIT){ in u_errorName() 204 return _uTransErrorName[code in u_errorName() [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | utypes.cpp | 198 u_errorName(UErrorCode code) { in u_errorName() argument 199 if(U_ZERO_ERROR <= code && code < U_STANDARD_ERROR_LIMIT) { in u_errorName() 200 return _uErrorName[code]; in u_errorName() 201 } else if(U_ERROR_WARNING_START <= code && code < U_ERROR_WARNING_LIMIT) { in u_errorName() 202 return _uErrorInfoName[code - U_ERROR_WARNING_START]; in u_errorName() 203 } else if(U_PARSE_ERROR_START <= code && code < U_PARSE_ERROR_LIMIT){ in u_errorName() 204 return _uTransErrorName[code in u_errorName() [all...] |
/third_party/node/deps/v8/tools/profview/ |
H A D | profile-utils.js | 2 // Use of this source code is governed by a BSD-style license that can be 28 function resolveCodeKind(code) { 29 if (!code || !code.type) { 31 } else if (code.type === "CPP") { 33 } else if (code.type === "SHARED_LIB") { 35 } else if (code.type === "CODE") { 36 if (code.kind === "LoadIC" || 37 code.kind === "StoreIC" || 38 code [all...] |
/third_party/mesa3d/src/mapi/glapi/ |
H A D | glapi_entrypoint.c | 28 * Arch-specific code for manipulating GL API entrypoints (dispatch stubs). 99 GLubyte * const code = (GLubyte *) u_execmem_alloc(DISPATCH_FUNCTION_SIZE); in generate_entrypoint() local 102 if ( code != NULL ) { in generate_entrypoint() 103 (void) memcpy(code, template_func, DISPATCH_FUNCTION_SIZE); in generate_entrypoint() 104 fill_in_entrypoint_offset( (_glapi_proc) code, functionOffset ); in generate_entrypoint() 107 return (_glapi_proc) code; in generate_entrypoint() 118 GLubyte * const code = (GLubyte *) entrypoint; in fill_in_entrypoint_offset() local 120 *((unsigned int *)(code + 8)) = 4 * offset; in fill_in_entrypoint_offset() 147 unsigned int *code = &__glapi_sparc_tls_stub; in init_glapi_relocs() local 150 code[ in init_glapi_relocs() 175 unsigned int *code = (unsigned int *) u_execmem_alloc(sizeof(template)); generate_entrypoint() local 193 unsigned int *code = (unsigned int *) entrypoint; fill_in_entrypoint_offset() local [all...] |
/third_party/libinput/test/ |
H A D | litest-device-wacom-cintiq-pro-16-pen.c | 30 { .type = EV_ABS, .code = ABS_X, .value = LITEST_AUTO_ASSIGN }, 31 { .type = EV_ABS, .code = ABS_Y, .value = LITEST_AUTO_ASSIGN }, 32 { .type = EV_ABS, .code = ABS_Z, .value = LITEST_AUTO_ASSIGN }, 33 { .type = EV_ABS, .code = ABS_WHEEL, .value = 0 }, 34 { .type = EV_ABS, .code = ABS_PRESSURE, .value = LITEST_AUTO_ASSIGN }, 35 { .type = EV_ABS, .code = ABS_DISTANCE, .value = LITEST_AUTO_ASSIGN }, 36 { .type = EV_ABS, .code = ABS_TILT_X, .value = LITEST_AUTO_ASSIGN }, 37 { .type = EV_ABS, .code = ABS_TILT_Y, .value = LITEST_AUTO_ASSIGN }, 38 { .type = EV_ABS, .code = ABS_MISC, .value = 2083 }, 39 { .type = EV_MSC, .code [all...] |
H A D | litest-device-wacom-cintiq-13hdt-pen.c | 30 { .type = EV_ABS, .code = ABS_X, .value = LITEST_AUTO_ASSIGN }, 31 { .type = EV_ABS, .code = ABS_Y, .value = LITEST_AUTO_ASSIGN }, 32 { .type = EV_ABS, .code = ABS_DISTANCE, .value = LITEST_AUTO_ASSIGN }, 33 { .type = EV_ABS, .code = ABS_PRESSURE, .value = LITEST_AUTO_ASSIGN }, 34 { .type = EV_ABS, .code = ABS_TILT_X, .value = LITEST_AUTO_ASSIGN }, 35 { .type = EV_ABS, .code = ABS_TILT_Y, .value = LITEST_AUTO_ASSIGN }, 36 { .type = EV_ABS, .code = ABS_MISC, .value = 2083 }, 37 { .type = EV_MSC, .code = MSC_SERIAL, .value = 297797542 }, 38 { .type = EV_KEY, .code = LITEST_BTN_TOOL_AUTO, .value = 1 }, 39 { .type = EV_SYN, .code [all...] |
H A D | litest-device-wacom-cintiq-24hd-pen.c | 30 { .type = EV_ABS, .code = ABS_X, .value = LITEST_AUTO_ASSIGN }, 31 { .type = EV_ABS, .code = ABS_Y, .value = LITEST_AUTO_ASSIGN }, 32 { .type = EV_ABS, .code = ABS_DISTANCE, .value = LITEST_AUTO_ASSIGN }, 33 { .type = EV_ABS, .code = ABS_PRESSURE, .value = LITEST_AUTO_ASSIGN }, 34 { .type = EV_ABS, .code = ABS_TILT_X, .value = LITEST_AUTO_ASSIGN }, 35 { .type = EV_ABS, .code = ABS_TILT_Y, .value = LITEST_AUTO_ASSIGN }, 36 { .type = EV_ABS, .code = ABS_MISC, .value = 2083 }, 37 { .type = EV_MSC, .code = MSC_SERIAL, .value = 297797542 }, 38 { .type = EV_KEY, .code = LITEST_BTN_TOOL_AUTO, .value = 1 }, 39 { .type = EV_SYN, .code [all...] |
/third_party/python/Modules/cjkcodecs/ |
H A D | _codecs_jp.c | 24 DBCHAR code; in ENCODER() local 52 if (TRYMAP_ENC(cp932ext, code, c)) { in ENCODER() 53 OUTBYTE1(code >> 8); in ENCODER() 54 OUTBYTE2(code & 0xff); in ENCODER() 56 else if (TRYMAP_ENC(jisxcommon, code, c)) { in ENCODER() 57 if (code & 0x8000) /* MSB set: JIS X 0212 */ in ENCODER() 61 c1 = code >> 8; in ENCODER() 62 c2 = code & 0xff; in ENCODER() 155 DBCHAR code; in ENCODER() local 167 EMULATE_JISX0213_2000_ENCODE_BMP(code, in ENCODER() 245 Py_UCS4 code, decoded; DECODER() local 333 DBCHAR code; ENCODER() local 453 DBCHAR code; ENCODER() local 568 DBCHAR code = NOCHAR; ENCODER() local 675 Py_UCS4 code, decoded; DECODER() local [all...] |
/third_party/python/Lib/idlelib/ |
H A D | pyparse.py | 1 """Define partial Python code Parser used by editor and hyperparser. 133 self.code = s 149 code, pos = self.code, None 154 limit = len(code) 156 i = code.rfind(":\n", 0, limit) 159 i = code.rfind('\n', 0, i) + 1 # start of colon line (-1+1=0) 160 m = _synchre(code, i, limit) 174 m = _synchre(code) 182 while m := _synchre(code, [all...] |
/third_party/python/Lib/test/ |
H A D | test_peepholer.py | 38 def check_jump_targets(self, code): 39 instructions = list(dis.get_instructions(code)) 59 def check_lnotab(self, code): 61 code = dis._get_code_object(code) 62 lnotab = list(dis.findlinestarts(code)) 68 self.assertLess(max_bytecode, len(code.co_code)) 92 code = compile(line, '', 'single') 93 self.assertInBytecode(code, cmp_op, invert) 94 self.check_lnotab(code) [all...] |
/third_party/python/Tools/unicode/ |
H A D | genmap_japanese.py | 95 for c2, code in m.items(): 96 sjisencmap.setdefault(code >> 8, {}) 97 sjisencmap[code >> 8][code & 0xff] = c1 << 8 | c2 99 for c2, code in m.items(): 100 cp932encmap.setdefault(code >> 8, {}) 101 if (code & 0xff) not in cp932encmap[code >> 8]: 102 cp932encmap[code >> 8][code [all...] |
/third_party/vixl/tools/test_generator/ |
H A D | data_types.py | 7 # * Redistributions of source code must retain the above copyright notice, 66 Generate code to declare the operand `struct Operands`. 73 Generate code to instantiate the operand from inside a `kTests` loop, with 112 Generate code to declare the operand as a single member in 120 Generate code to instantiate the operand as a single local variable. 122 code = "{type_name} {name} = kTests[i].operands.{name};" 123 return code.format(type_name=self.type_name, name=self.name) 212 Return a string describing what C++ code to emit before the instruction 220 Return a string describing what C++ code to emit after the instruction under 228 Generate code t [all...] |