Home
last modified time | relevance | path

Searched refs:NumericType (Results 1 – 25 of 162) sorted by relevance

1234567

/external/r8/src/main/java/com/android/tools/r8/ir/code/
DNumericType.java10 public enum NumericType { enum
20 if (this == NumericType.DOUBLE || this == NumericType.LONG) { in moveTypeFor()
47 public static NumericType fromDexType(DexType type) { in fromDexType()
50 return NumericType.BYTE; in fromDexType()
52 return NumericType.SHORT; in fromDexType()
54 return NumericType.CHAR; in fromDexType()
56 return NumericType.INT; in fromDexType()
58 return NumericType.FLOAT; in fromDexType()
60 return NumericType.LONG; in fromDexType()
62 return NumericType.DOUBLE; in fromDexType()
DNeg.java15 public final NumericType type;
17 public Neg(NumericType type, Value dest, Value source) { in Neg()
24 return (type == NumericType.INT || type == NumericType.LONG || type == NumericType.FLOAT in canBeFolded()
25 || type == NumericType.DOUBLE) in canBeFolded()
32 if (type == NumericType.INT) { in fold()
36 } else if (type == NumericType.LONG) { in fold()
40 } else if (type == NumericType.FLOAT) { in fold()
45 assert type == NumericType.DOUBLE; in fold()
DArithmeticBinop.java13 public ArithmeticBinop(NumericType type, Value dest, Value left, Value right) { in ArithmeticBinop()
39 return (type == NumericType.INT || type == NumericType.LONG || type == NumericType.FLOAT in canBeFolded()
40 || type == NumericType.DOUBLE) in canBeFolded()
58 if (type == NumericType.INT) { in fold()
64 } else if (type == NumericType.LONG) { in fold()
70 } else if (type == NumericType.FLOAT) { in fold()
77 assert type == NumericType.DOUBLE; in fold()
DBinop.java17 protected final NumericType type;
19 public Binop(NumericType type, Value dest, Value left, Value right) { in Binop()
26 public NumericType getNumericType() { in getNumericType()
58 return type == NumericType.INT && in fitsInLit16Instruction()
64 return type == NumericType.INT && in fitsInLit8Instruction()
DNot.java13 public final NumericType type;
15 public Not(NumericType type, Value dest, Value source) { in Not()
28 if (type == NumericType.INT) { in fold()
33 assert type == NumericType.LONG; in fold()
/external/r8/src/main/java/com/android/tools/r8/ir/desugar/
DLambdaMainMethodSourceCode.java17 import com.android.tools.r8.ir.code.NumericType;
359 NumericType from = NumericType.fromDexType(fromType); in addPrimitiveWideningConversion()
360 NumericType to = NumericType.fromDexType(toType); in addPrimitiveWideningConversion()
367 if (from != NumericType.BYTE) { in addPrimitiveWideningConversion()
371 add(builder -> builder.addConversion(to, NumericType.INT, result, register)); in addPrimitiveWideningConversion()
376 if (from == NumericType.BYTE || from == NumericType.CHAR || from == NumericType.SHORT) { in addPrimitiveWideningConversion()
382 if (from == NumericType.FLOAT || from == NumericType.DOUBLE) { in addPrimitiveWideningConversion()
386 add(builder -> builder.addConversion(to, NumericType.INT, result, register)); in addPrimitiveWideningConversion()
391 if (from == NumericType.DOUBLE) { in addPrimitiveWideningConversion()
395 NumericType type = (from == NumericType.LONG) ? NumericType.LONG : NumericType.INT; in addPrimitiveWideningConversion()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterTest.java2185 … if(UCharacter.getIntPropertyMaxValue(UProperty.NUMERIC_TYPE)!=UCharacter.NumericType.COUNT-1) { in TestAdditionalProperties()
2313 { 0x0F33, UCharacter.NumericType.NUMERIC, -1./2. }, in TestNumericProperties()
2314 { 0x0C66, UCharacter.NumericType.DECIMAL, 0 }, in TestNumericProperties()
2315 { 0x96f6, UCharacter.NumericType.NUMERIC, 0 }, in TestNumericProperties()
2316 { 0xa833, UCharacter.NumericType.NUMERIC, 1./16. }, in TestNumericProperties()
2317 { 0x2152, UCharacter.NumericType.NUMERIC, 1./10. }, in TestNumericProperties()
2318 { 0x2151, UCharacter.NumericType.NUMERIC, 1./9. }, in TestNumericProperties()
2319 { 0x1245f, UCharacter.NumericType.NUMERIC, 1./8. }, in TestNumericProperties()
2320 { 0x2150, UCharacter.NumericType.NUMERIC, 1./7. }, in TestNumericProperties()
2321 { 0x2159, UCharacter.NumericType.NUMERIC, 1./6. }, in TestNumericProperties()
[all …]
/external/r8/src/main/java/com/android/tools/r8/code/
DIntToByte.java6 import com.android.tools.r8.ir.code.NumericType;
36 builder.addConversion(NumericType.BYTE, NumericType.INT, A, B); in buildIR()
DLongToDouble.java6 import com.android.tools.r8.ir.code.NumericType;
36 builder.addConversion(NumericType.DOUBLE, NumericType.LONG, A, B); in buildIR()
DDoubleToFloat.java6 import com.android.tools.r8.ir.code.NumericType;
37 builder.addConversion(NumericType.FLOAT, NumericType.DOUBLE, A, B); in buildIR()
DFloatToLong.java6 import com.android.tools.r8.ir.code.NumericType;
36 builder.addConversion(NumericType.LONG, NumericType.FLOAT, A, B); in buildIR()
DIntToChar.java6 import com.android.tools.r8.ir.code.NumericType;
37 builder.addConversion(NumericType.CHAR, NumericType.INT, A, B); in buildIR()
DIntToShort.java6 import com.android.tools.r8.ir.code.NumericType;
37 builder.addConversion(NumericType.SHORT, NumericType.INT, A, B); in buildIR()
DLongToInt.java6 import com.android.tools.r8.ir.code.NumericType;
37 builder.addConversion(NumericType.INT, NumericType.LONG, A, B); in buildIR()
DFloatToInt.java6 import com.android.tools.r8.ir.code.NumericType;
37 builder.addConversion(NumericType.INT, NumericType.FLOAT, A, B); in buildIR()
DFloatToDouble.java6 import com.android.tools.r8.ir.code.NumericType;
37 builder.addConversion(NumericType.DOUBLE, NumericType.FLOAT, A, B); in buildIR()
DDoubleToLong.java6 import com.android.tools.r8.ir.code.NumericType;
36 builder.addConversion(NumericType.LONG, NumericType.DOUBLE, A, B); in buildIR()
DLongToFloat.java6 import com.android.tools.r8.ir.code.NumericType;
36 builder.addConversion(NumericType.FLOAT, NumericType.LONG, A, B); in buildIR()
DIntToFloat.java6 import com.android.tools.r8.ir.code.NumericType;
36 builder.addConversion(NumericType.FLOAT, NumericType.INT, A, B); in buildIR()
DIntToDouble.java6 import com.android.tools.r8.ir.code.NumericType;
37 builder.addConversion(NumericType.DOUBLE, NumericType.INT, A, B); in buildIR()
DDoubleToInt.java6 import com.android.tools.r8.ir.code.NumericType;
36 builder.addConversion(NumericType.INT, NumericType.DOUBLE, A, B); in buildIR()
DIntToLong.java6 import com.android.tools.r8.ir.code.NumericType;
37 builder.addConversion(NumericType.LONG, NumericType.INT, A, B); in buildIR()
/external/r8/src/main/java/com/android/tools/r8/ir/conversion/
DIRBuilder.java63 import com.android.tools.r8.ir.code.NumericType;
572 public void addAdd(NumericType type, int dest, int left, int right) {
581 public void addAddLiteral(NumericType type, int dest, int value, int constant) {
591 public void addAnd(NumericType type, int dest, int left, int right) {
601 public void addAndLiteral(NumericType type, int dest, int value, int constant) {
645 public void addCmp(NumericType type, Bias bias, int dest, int left, int right) {
732 public void addDiv(NumericType type, int dest, int left, int right) {
733 boolean canThrow = type != NumericType.DOUBLE && type != NumericType.FLOAT;
743 public void addDivLiteral(NumericType type, int dest, int value, int constant) {
745 boolean canThrow = type != NumericType.DOUBLE && type != NumericType.FLOAT;
[all …]
/external/libchrome/base/numerics/
Dsafe_conversions_impl.h20 template <typename NumericType>
22 static_assert(std::is_arithmetic<NumericType>::value,
24 static const int value = std::numeric_limits<NumericType>::is_iec559
25 ? std::numeric_limits<NumericType>::max_exponent
26 : (sizeof(NumericType) * CHAR_BIT + 1 -
27 std::numeric_limits<NumericType>::is_signed);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterTest.java2184 … if(UCharacter.getIntPropertyMaxValue(UProperty.NUMERIC_TYPE)!=UCharacter.NumericType.COUNT-1) { in TestAdditionalProperties()
2312 { 0x0F33, UCharacter.NumericType.NUMERIC, -1./2. }, in TestNumericProperties()
2313 { 0x0C66, UCharacter.NumericType.DECIMAL, 0 }, in TestNumericProperties()
2314 { 0x96f6, UCharacter.NumericType.NUMERIC, 0 }, in TestNumericProperties()
2315 { 0xa833, UCharacter.NumericType.NUMERIC, 1./16. }, in TestNumericProperties()
2316 { 0x2152, UCharacter.NumericType.NUMERIC, 1./10. }, in TestNumericProperties()
2317 { 0x2151, UCharacter.NumericType.NUMERIC, 1./9. }, in TestNumericProperties()
2318 { 0x1245f, UCharacter.NumericType.NUMERIC, 1./8. }, in TestNumericProperties()
2319 { 0x2150, UCharacter.NumericType.NUMERIC, 1./7. }, in TestNumericProperties()
2320 { 0x2159, UCharacter.NumericType.NUMERIC, 1./6. }, in TestNumericProperties()
[all …]

1234567