/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/ |
D | Preconditions.java | 72 public static int checkNibbleLiteral(int literal) { in checkNibbleLiteral() argument 73 if (literal < -8 || literal > 7) { in checkNibbleLiteral() 75 … String.format("Invalid literal value: %d. Must be between -8 and 7, inclusive.", literal)); in checkNibbleLiteral() 77 return literal; in checkNibbleLiteral() 80 public static int checkByteLiteral(int literal) { in checkByteLiteral() argument 81 if (literal < -128 || literal > 127) { in checkByteLiteral() 83 … String.format("Invalid literal value: %d. Must be between -128 and 127, inclusive.", literal)); in checkByteLiteral() 85 return literal; in checkByteLiteral() 88 public static int checkShortLiteral(int literal) { in checkShortLiteral() argument 89 if (literal < -32768 || literal > 32767) { in checkShortLiteral() [all …]
|
/external/vixl/doc/aarch32/design/ |
D | literal-pool-aarch32.md | 3 * Consider the literal pool simply as a container of literals 4 * Keep the literal pool at the macro-assembler level 5 * The literal pool is public (can be used by the users) 6 * The macro-assembler will have its own literal pool, and will manage 8 * The macro-assembler is responsible for emitting its managed literal 10 * The assembler does not manage literals, but can place a literal in the 21 specify the maximum range the literal has to be placed. 29 When a literal is added to the literal pool, it’s appended to the list of 31 When an instruction using a literal is emitted, the literal's checkpoint 36 literal pool is emitted. The emission will include an optional branch to let the [all …]
|
/external/clang/test/SemaObjC/ |
D | objc-literal-comparison.m | 1 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare "-Dnil=((id)0)" -verify %s 2 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare "-Dnil=(id)0" -verify %s 3 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare "-Dnil=0" -verify %s 5 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare -fobjc-arc "-Dnil=((id)0)" … 6 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare -fobjc-arc "-Dnil=(id)0" -v… 7 // RUN: %clang_cc1 -fsyntax-only -Wno-everything -Wobjc-literal-compare -fobjc-arc "-Dnil=0" -verif… 39 …if (obj == @"") return; // expected-warning{{direct comparison of a string literal has undefined b… 40 …if (obj != @"") return; // expected-warning{{direct comparison of a string literal has undefined b… 41 …if (@"" == obj) return; // expected-warning{{direct comparison of a string literal has undefined b… 42 …if (@"" == @"") return; // expected-warning{{direct comparison of a string literal has undefined b… [all …]
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
D | ObjCTarget.java | 50 String literal) in getTargetCharLiteralFromANTLRCharLiteral() argument 52 if (literal.startsWith("'\\u") ) { in getTargetCharLiteralFromANTLRCharLiteral() 53 literal = "0x" +literal.substring(3, 7); in getTargetCharLiteralFromANTLRCharLiteral() 55 int c = literal.charAt(1); // TJP in getTargetCharLiteralFromANTLRCharLiteral() 57 literal = "0x" + Integer.toHexString(c); in getTargetCharLiteralFromANTLRCharLiteral() 61 return literal; in getTargetCharLiteralFromANTLRCharLiteral() 71 String literal) in getTargetStringLiteralFromANTLRStringLiteral() argument 73 literal = Utils.replace(literal,"\"","\\\""); in getTargetStringLiteralFromANTLRStringLiteral() 74 StringBuffer buf = new StringBuffer(literal); in getTargetStringLiteralFromANTLRStringLiteral() 76 buf.setCharAt(literal.length()-1,'"'); in getTargetStringLiteralFromANTLRStringLiteral()
|
D | DelphiTarget.java | 71 String literal) in getTargetCharLiteralFromANTLRCharLiteral() argument 74 int c = Grammar.getCharValueFromGrammarCharLiteral(literal); in getTargetCharLiteralFromANTLRCharLiteral() 118 String literal) in getTargetStringLiteralFromANTLRStringLiteral() argument 120 literal = Utils.replace(literal,"\\\'","''"); // \' to ' to normalize in getTargetStringLiteralFromANTLRStringLiteral() 121 literal = Utils.replace(literal,"\\r\\n","'#13#10'"); in getTargetStringLiteralFromANTLRStringLiteral() 122 literal = Utils.replace(literal,"\\r","'#13'"); in getTargetStringLiteralFromANTLRStringLiteral() 123 literal = Utils.replace(literal,"\\n","'#10'"); in getTargetStringLiteralFromANTLRStringLiteral() 124 StringBuffer buf = new StringBuffer(literal); in getTargetStringLiteralFromANTLRStringLiteral() 126 buf.setCharAt(literal.length()-1,'\''); in getTargetStringLiteralFromANTLRStringLiteral()
|
D | CTarget.java | 168 String literal) { in getTargetCharLiteralFromANTLRCharLiteral() argument 170 if (literal.startsWith("'\\u")) { in getTargetCharLiteralFromANTLRCharLiteral() 171 literal = "0x" + literal.substring(3, 7); in getTargetCharLiteralFromANTLRCharLiteral() 173 int c = literal.charAt(1); in getTargetCharLiteralFromANTLRCharLiteral() 176 literal = "0x" + Integer.toHexString(c); in getTargetCharLiteralFromANTLRCharLiteral() 180 return literal; in getTargetCharLiteralFromANTLRCharLiteral() 194 String literal) { in getTargetStringLiteralFromANTLRStringLiteral() argument 205 for (int i = 1; i < literal.length() - 1; i++) { in getTargetStringLiteralFromANTLRStringLiteral() 208 if (literal.charAt(i) == '\\') { in getTargetStringLiteralFromANTLRStringLiteral() 211 switch (literal.charAt(i)) { in getTargetStringLiteralFromANTLRStringLiteral() [all …]
|
/external/clang/test/SemaObjCXX/ |
D | warn-objc-literal-conversion.mm | 1 // RUN: %clang_cc1 -fsyntax-only -verify -Wobjc-literal-conversion %s 24 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 29 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 31 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 33 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 35 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 40 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 42 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 44 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 46 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/ |
D | ImmutableInstructionFactory.java | 60 int literal) { in makeInstruction11n() argument 61 return new ImmutableInstruction11n(opcode, registerA, literal); in makeInstruction11n() 94 int literal) { in makeInstruction21ih() argument 95 return new ImmutableInstruction21ih(opcode, registerA, literal); in makeInstruction21ih() 100 long literal) { in makeInstruction21lh() argument 101 return new ImmutableInstruction21lh(opcode, registerA, literal); in makeInstruction21lh() 106 int literal) { in makeInstruction21s() argument 107 return new ImmutableInstruction21s(opcode, registerA, literal); in makeInstruction21s() 119 int literal) { in makeInstruction22b() argument 120 return new ImmutableInstruction22b(opcode, registerA, registerB, literal); in makeInstruction22b() [all …]
|
D | ImmutableInstruction21ih.java | 45 protected final int literal; field in ImmutableInstruction21ih 49 int literal) { in ImmutableInstruction21ih() argument 52 this.literal = Preconditions.checkIntegerHatLiteral(literal); in ImmutableInstruction21ih() 66 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 67 @Override public long getWideLiteral() { return literal; } in getWideLiteral() 68 @Override public short getHatLiteral() { return (short)(literal >>> 16); } in getHatLiteral()
|
D | ImmutableInstruction31i.java | 45 protected final int literal; field in ImmutableInstruction31i 49 int literal) { in ImmutableInstruction31i() argument 52 this.literal = literal; in ImmutableInstruction31i() 66 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 67 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | ImmutableInstruction21s.java | 45 protected final int literal; field in ImmutableInstruction21s 49 int literal) { in ImmutableInstruction21s() argument 52 this.literal = Preconditions.checkShortLiteral(literal); in ImmutableInstruction21s() 66 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 67 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | ImmutableInstruction21lh.java | 45 protected final long literal; field in ImmutableInstruction21lh 49 long literal) { in ImmutableInstruction21lh() argument 52 this.literal = Preconditions.checkLongHatLiteral(literal); in ImmutableInstruction21lh() 66 @Override public long getWideLiteral() { return literal; } in getWideLiteral() 67 @Override public short getHatLiteral() { return (short)(literal >>> 48); } in getHatLiteral()
|
D | ImmutableInstruction11n.java | 45 protected final int literal; field in ImmutableInstruction11n 49 int literal) { in ImmutableInstruction11n() argument 52 this.literal = Preconditions.checkNibbleLiteral(literal); in ImmutableInstruction11n() 66 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 67 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/instruction/ |
D | BuilderInstruction21ih.java | 46 protected final int literal; field in BuilderInstruction21ih 50 int literal) { in BuilderInstruction21ih() argument 53 this.literal = Preconditions.checkIntegerHatLiteral(literal); in BuilderInstruction21ih() 57 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 58 @Override public long getWideLiteral() { return literal; } in getWideLiteral() 59 @Override public short getHatLiteral() { return (short)(literal >>> 16); } in getHatLiteral()
|
D | BuilderInstruction31i.java | 46 protected final int literal; field in BuilderInstruction31i 50 int literal) { in BuilderInstruction31i() argument 53 this.literal = literal; in BuilderInstruction31i() 57 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 58 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | BuilderInstruction21s.java | 46 protected final int literal; field in BuilderInstruction21s 50 int literal) { in BuilderInstruction21s() argument 53 this.literal = Preconditions.checkShortLiteral(literal); in BuilderInstruction21s() 57 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 58 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | BuilderInstruction11n.java | 46 protected final int literal; field in BuilderInstruction11n 50 int literal) { in BuilderInstruction11n() argument 53 this.literal = Preconditions.checkNibbleLiteral(literal); in BuilderInstruction11n() 57 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 58 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | BuilderInstruction21lh.java | 46 protected final long literal; field in BuilderInstruction21lh 50 long literal) { in BuilderInstruction21lh() argument 53 this.literal = Preconditions.checkLongHatLiteral(literal); in BuilderInstruction21lh() 57 @Override public long getWideLiteral() { return literal; } in getWideLiteral() 58 @Override public short getHatLiteral() { return (short)(literal >>> 48); } in getHatLiteral()
|
D | BuilderInstruction22b.java | 47 protected final int literal; field in BuilderInstruction22b 52 int literal) { in BuilderInstruction22b() argument 56 this.literal = Preconditions.checkByteLiteral(literal); in BuilderInstruction22b() 61 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 62 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
D | BuilderInstruction22s.java | 47 protected final int literal; field in BuilderInstruction22s 52 int literal) { in BuilderInstruction22s() argument 56 this.literal = Preconditions.checkShortLiteral(literal); in BuilderInstruction22s() 61 @Override public int getNarrowLiteral() { return literal; } in getNarrowLiteral() 62 @Override public long getWideLiteral() { return literal; } in getWideLiteral()
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/ |
D | StringLiteral.java | 70 private final String literal; field in StringLiteral 72 private StringLiteral(String value, String literal) { in StringLiteral() argument 74 this.literal = literal; in StringLiteral() 81 public String literal() { in literal() method in StringLiteral 82 return literal; in literal() 87 return literal; in toString()
|
/external/mesa3d/src/gallium/drivers/r600/sb/ |
D | sb_expr.h | 63 value* get_const(const literal &l); 81 bool eval_const_op(unsigned op, literal &r, literal cv0, literal cv1); 84 static void apply_alu_src_mod(const bc_alu &bc, unsigned src, literal &v); 85 static void apply_alu_dst_mod(const bc_alu &bc, literal &v); 89 static bool evaluate_condition(unsigned alu_cnd_flags, literal s1, 90 literal s2);
|
/external/v8/src/ast/ |
D | ast-value-factory.cc | 251 Vector<const uint8_t> literal) { in GetOneByteStringInternal() argument 252 if (literal.length() == 1 && IsInRange(literal[0], 'a', 'z')) { in GetOneByteStringInternal() 253 int key = literal[0] - 'a'; in GetOneByteStringInternal() 256 literal.start(), literal.length(), hash_seed_); in GetOneByteStringInternal() 257 one_character_strings_[key] = GetString(hash, true, literal); in GetOneByteStringInternal() 262 literal.start(), literal.length(), hash_seed_); in GetOneByteStringInternal() 263 return GetString(hash, true, literal); in GetOneByteStringInternal() 268 Vector<const uint16_t> literal) { in GetTwoByteStringInternal() argument 270 literal.start(), literal.length(), hash_seed_); in GetTwoByteStringInternal() 271 return GetString(hash, false, Vector<const byte>::cast(literal)); in GetTwoByteStringInternal() [all …]
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | sra.ll | 66 ; EG: SUB_INT {{\*? *}}[[COMPSH:T[0-9]+\.[XYZW]]], {{literal.[xy]}}, [[SHIFT:T[0-9]+\.[XYZW]]] 68 ; EG-DAG: ADD_INT {{\*? *}}[[BIGSH:T[0-9]+\.[XYZW]]], [[SHIFT]], literal 73 ; EG-DAG: ASHR {{\*? *}}[[LOBIG:T[0-9]+\.[XYZW]]], [[OPHI]], literal 74 ; EG-DAG: ASHR {{\*? *}}[[HIBIG:T[0-9]+\.[XYZW]]], [[OPHI]], literal 75 ; EG-DAG: SETGT_UINT {{\*? *}}[[RESC:T[0-9]+\.[XYZW]]], [[SHIFT]], literal 92 ; EG-DAG: SUB_INT {{\*? *}}[[COMPSHA:T[0-9]+\.[XYZW]]], {{literal.[xy]}}, [[SHA:T[0-9]+\.[XYZW]]] 93 ; EG-DAG: SUB_INT {{\*? *}}[[COMPSHB:T[0-9]+\.[XYZW]]], {{literal.[xy]}}, [[SHB:T[0-9]+\.[XYZW]]] 104 ; EG-DAG: ADD_INT {{\*? *}}[[BIGSHA:T[0-9]+\.[XYZW]]]{{.*}}, literal 105 ; EG-DAG: ADD_INT {{\*? *}}[[BIGSHB:T[0-9]+\.[XYZW]]]{{.*}}, literal 108 ; EG-DAG: ASHR {{.*}}, literal [all …]
|
/external/libvterm/src/ |
D | input.c | 62 char literal; member 170 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%du", k.literal, mod+1); in vterm_input_push_key() 172 vterm_push_output_sprintf(vt, mod & VTERM_MOD_ALT ? "\e%c" : "%c", k.literal); in vterm_input_push_key() 177 vterm_push_output_sprintf_ctrl(vt, C1_SS3, "%c", k.literal); in vterm_input_push_key() 184 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%c", k.literal); in vterm_input_push_key() 186 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "1;%d%c", mod + 1, k.literal); in vterm_input_push_key() 191 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d%c", k.csinum, k.literal); in vterm_input_push_key() 193 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%d%c", k.csinum, mod + 1, k.literal); in vterm_input_push_key() 204 k.literal = k.csinum; in vterm_input_push_key()
|