Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 108) sorted by relevance

12345

/art/test/100-reflect2/src/
DMain.java25 private static float f = 3.14f; field in Main
31 Field f; in testFieldReflection() local
33 f = Main.class.getDeclaredField("z"); in testFieldReflection()
34 System.out.println(f.getBoolean(null)); in testFieldReflection()
35 f = Main.class.getDeclaredField("b"); in testFieldReflection()
36 System.out.println(f.getByte(null)); in testFieldReflection()
37 f = Main.class.getDeclaredField("c"); in testFieldReflection()
38 System.out.println(f.getChar(null)); in testFieldReflection()
39 f = Main.class.getDeclaredField("d"); in testFieldReflection()
40 System.out.println(f.getDouble(null)); in testFieldReflection()
[all …]
/art/test/003-omnibus-opcodes/src/
DFloatMath.java25 float f; in convTest() local
31 f = 1234.5678f; in convTest()
32 i = (int) f; in convTest()
35 f = -1234.5678f; in convTest()
36 i = (int) f; in convTest()
40 f = 1238.5678f; in convTest()
41 l = (long) f; in convTest()
44 f = -1238.5678f; in convTest()
45 l = (long) f; in convTest()
49 f = 1238.5678f; in convTest()
[all …]
/art/test/012-math/src/
DMain.java76 double f, g, fres; in math_012() local
78 f = 3.0f; in math_012()
81 fres = f + g; in math_012()
83 fres = f - g; in math_012()
85 fres = f * g; in math_012()
87 fres = f / g; in math_012()
89 fres = f % g; in math_012()
91 f += g; in math_012()
92 System.out.println("f:" +f); in math_012()
93 f -= g; in math_012()
[all …]
/art/test/027-arithmetic/src/
DMain.java58 long f = 0x66; in shiftTest2() local
63 (e << 24) | (f << 16) | (g << 8) | h); in shiftTest2()
70 float f; in convTest() local
76 f = 1234.5678f; in convTest()
77 i = (int) f; in convTest()
78 System.out.println("f=" + f + " --> i=" + i); in convTest()
80 f = -1234.5678f; in convTest()
81 i = (int) f; in convTest()
82 System.out.println("f=" + f + " --> i=" + i); in convTest()
122 f = (float) i; in convTest()
[all …]
/art/test/474-fp-sub-neg/src/
DMain.java19 float f = 0; in floatTest() local
22 f -= fc; in floatTest()
23 f = -f; in floatTest()
26 System.out.println(f); in floatTest()
27 System.out.println(f + 0f); in floatTest()
28 System.out.println(f - (-0f)); in floatTest()
/art/runtime/native/
Djava_lang_reflect_Field.cc61 ALWAYS_INLINE inline static bool GetFieldValue(mirror::Object* o, mirror::Field* f, in GetFieldValue() argument
65 MemberOffset offset(f->GetOffset()); in GetFieldValue()
66 const bool is_volatile = f->IsVolatile(); in GetFieldValue()
101 StringPrintf("Not a primitive field: %s", PrettyField(f->GetArtField()).c_str()).c_str()); in GetFieldValue()
106 jobject j_rcvr, mirror::Field** f, in CheckReceiver() argument
110 mirror::Class* declaringClass = (*f)->GetDeclaringClass(); in CheckReceiver()
111 if ((*f)->IsStatic()) { in CheckReceiver()
114 HandleWrapper<mirror::Field> h_f(hs.NewHandleWrapper(f)); in CheckReceiver()
135 mirror::Field* f = soa.Decode<mirror::Field*>(javaField); in Field_get() local
137 if (!CheckReceiver(soa, javaObj, &f, &o)) { in Field_get()
[all …]
/art/test/439-swap-double/src/
DMain.java28 callWithDoubles(a, b, c, d, e, f, g); in foo()
29 callWithDoubles(b, c, d, e, f, g, a); in foo()
30 callWithDoubles(c, d, e, f, g, a, b); in foo()
31 callWithDoubles(d, e, f, g, a, b, c); in foo()
35 double a, double b, double c, double d, double e, double f, double g) { in callWithDoubles() argument
36 System.out.println(a - b - c - d - e - f - g); in callWithDoubles()
44 double f = 6.0; field in Main
/art/test/484-checker-register-hints/src/
DMain.java37 int f = live2; in test1() local
45 array[3] = f + i + h; in test1()
51 live1 = e + f + g; in test1()
72 int f = live2; in test2() local
79 array[3] = f + i + h; in test2()
85 live1 = e + f + g; in test2()
108 int f = live2; in test3() local
119 array[3] = f + i + h; in test3()
125 live1 = e + f + g; in test3()
/art/compiler/utils/
Dassembler_test.h54 void DriverFn(TestFn f, std::string test_name) { in DriverFn() argument
55 DriverWrapper(f(this, assembler_.get()), test_name); in DriverFn()
63 std::string RepeatR(void (Ass::*f)(Reg), std::string fmt) { in RepeatR()
64 return RepeatTemplatedRegister<Reg>(f, in RepeatR()
70 std::string Repeatr(void (Ass::*f)(Reg), std::string fmt) { in Repeatr()
71 return RepeatTemplatedRegister<Reg>(f, in Repeatr()
77 std::string RepeatRR(void (Ass::*f)(Reg, Reg), std::string fmt) { in RepeatRR()
78 return RepeatTemplatedRegisters<Reg, Reg>(f, in RepeatRR()
86 std::string Repeatrr(void (Ass::*f)(Reg, Reg), std::string fmt) { in Repeatrr()
87 return RepeatTemplatedRegisters<Reg, Reg>(f, in Repeatrr()
[all …]
/art/test/012-math/
Dexpected.txt28 f:10.0
29 f:3.0
30 f:21.0
31 f:3.0
32 f:3.0
/art/tools/
Dstream-trace-converter.py29 def ReadShortLE(f): argument
30 byte1 = f.read(1)
33 byte2 = f.read(1)
38 def WriteShortLE(f, val): argument
41 f.write(asbytearray)
43 def ReadIntLE(f): argument
44 byte1 = f.read(1)
47 byte2 = f.read(1)
50 byte3 = f.read(1)
53 byte4 = f.read(1)
[all …]
/art/test/528-long-hint/src/
DMain.java28 Main f = new Main(); in main() local
36 unsafe.compareAndSwapLong(f, offset, a, b); in main()
41 Field f = Unsafe.class.getDeclaredField("theUnsafe"); in getUnsafe() local
42 f.setAccessible(true); in getUnsafe()
43 return (Unsafe) f.get(null); in getUnsafe()
/art/compiler/
Dcfi_test.h37 void GenerateExpected(FILE* f, InstructionSet isa, const char* isa_str, in GenerateExpected() argument
42 fprintf(f, "static constexpr uint8_t expected_asm_%s[] = {", isa_str); in GenerateExpected()
43 HexDump(f, actual_asm); in GenerateExpected()
44 fprintf(f, "\n};\n"); in GenerateExpected()
45 fprintf(f, "static constexpr uint8_t expected_cfi_%s[] = {", isa_str); in GenerateExpected()
46 HexDump(f, actual_cfi); in GenerateExpected()
47 fprintf(f, "\n};\n"); in GenerateExpected()
67 fprintf(f, "// %s\n", line.c_str()); in GenerateExpected()
69 fprintf(f, "\n"); in GenerateExpected()
135 static void HexDump(FILE* f, const std::vector<uint8_t>& data) { in HexDump() argument
[all …]
/art/test/405-optimizing-long-allocator/src/
DMain.java92 long f = 0; in $opt$TestMultipleLive() local
100 f += 2; in $opt$TestMultipleLive()
103 return f; in $opt$TestMultipleLive()
135 …public static long $opt$TestAgressiveLive1(long a, long b, long c, long d, long e, long f, long g)… in $opt$TestAgressiveLive1() argument
138 long j = e - f; in $opt$TestAgressiveLive1()
153 return a - b - c - d - e - f - g - h - i - j - k; in $opt$TestAgressiveLive1()
156 …public static long $opt$TestAgressiveLive2(long a, long b, long c, long d, long e, long f, long g)… in $opt$TestAgressiveLive2() argument
159 long j = e - f; in $opt$TestAgressiveLive2()
164 return a - b - c - d - e - f - g - h - i - j - k; in $opt$TestAgressiveLive2()
/art/test/404-optimizing-allocator/src/
DMain.java86 int f = 0; in $opt$reg$TestMultipleLive() local
94 f += 2; in $opt$reg$TestMultipleLive()
97 return f; in $opt$reg$TestMultipleLive()
129 public static int $opt$reg$TestAgressiveLive1(int a, int b, int c, int d, int e, int f, int g) { in $opt$reg$TestAgressiveLive1() argument
132 int j = e - f; in $opt$reg$TestAgressiveLive1()
147 return a - b - c - d - e - f - g - h - i - j - k; in $opt$reg$TestAgressiveLive1()
150 public static int $opt$reg$TestAgressiveLive2(int a, int b, int c, int d, int e, int f, int g) { in $opt$reg$TestAgressiveLive2() argument
153 int j = e - f; in $opt$reg$TestAgressiveLive2()
158 return a - b - c - d - e - f - g - h - i - j - k; in $opt$reg$TestAgressiveLive2()
/art/test/017-float/src/
DMain.java22 float f = 3.1415926535f; in float_017() local
27 System.out.println("base values: d=" + d + " f=" + f); in float_017()
28 System.out.println("base values: d=" + d + " f=" + f); in float_017()
29 System.out.println("base values: f=" + f + " d=" + d); in float_017()
/art/runtime/entrypoints/
Dmath_entrypoints.cc39 extern "C" int64_t art_f2l(float f) { in art_f2l() argument
40 return art_float_to_integral<int64_t, float>(f); in art_f2l()
47 extern "C" int32_t art_f2i(float f) { in art_f2i() argument
48 return art_float_to_integral<int32_t, float>(f); in art_f2i()
/art/runtime/arch/
Dstub_test.cc1558 static void GetSetBooleanStatic(ArtField* f, Thread* self, in GetSetBooleanStatic() argument
1567 test->Invoke3WithReferrer(static_cast<size_t>(f->GetDexFieldIndex()), in GetSetBooleanStatic()
1574 size_t res = test->Invoke3WithReferrer(static_cast<size_t>(f->GetDexFieldIndex()), in GetSetBooleanStatic()
1583 UNUSED(f, self, referrer, test); in GetSetBooleanStatic()
1589 static void GetSetByteStatic(ArtField* f, Thread* self, ArtMethod* referrer, in GetSetByteStatic() argument
1597 test->Invoke3WithReferrer(static_cast<size_t>(f->GetDexFieldIndex()), in GetSetByteStatic()
1604 size_t res = test->Invoke3WithReferrer(static_cast<size_t>(f->GetDexFieldIndex()), in GetSetByteStatic()
1612 UNUSED(f, self, referrer, test); in GetSetByteStatic()
1620 static void GetSetBooleanInstance(Handle<mirror::Object>* obj, ArtField* f, Thread* self, in GetSetBooleanInstance() argument
1628 test->Invoke3WithReferrer(static_cast<size_t>(f->GetDexFieldIndex()), in GetSetBooleanInstance()
[all …]
/art/test/027-arithmetic/
Dexpected.txt1 f=1234.5677 --> i=1234
2 f=-1234.5677 --> i=-1234
11 i=1234 --> f=1234.0
12 i=-1234 --> f=-1234.0
/art/runtime/mirror/
Dclass.cc555 ArtField* f = GetInstanceField(i); in FindDeclaredInstanceField() local
556 if (name == f->GetName() && type == f->GetTypeDescriptor()) { in FindDeclaredInstanceField()
557 return f; in FindDeclaredInstanceField()
566 ArtField* f = GetInstanceField(i); in FindDeclaredInstanceField() local
567 if (f->GetDexFieldIndex() == dex_field_idx) { in FindDeclaredInstanceField()
568 return f; in FindDeclaredInstanceField()
579 ArtField* f = c->FindDeclaredInstanceField(name, type); in FindInstanceField() local
580 if (f != nullptr) { in FindInstanceField()
581 return f; in FindInstanceField()
591 ArtField* f = c->FindDeclaredInstanceField(dex_cache, dex_field_idx); in FindInstanceField() local
[all …]
/art/test/017-float/
Dexpected.txt1 base values: d=3.1415926535 f=3.1415927
2 base values: d=3.1415926535 f=3.1415927
3 base values: f=3.1415927 d=3.1415926535
/art/runtime/arch/arm/
Dmemcmp16_arm.S52 bpl 0f
75 beq 0f
93 bne 5f
103 bmi 1f
132 bne 2f
138 bmi 4f
144 bne 2f
150 bne 8f
177 bne 9f
219 bne 7f
/art/runtime/interpreter/
Dinterpreter_common.cc38 …ArtField* f = FindFieldFromCode<find_type, do_access_check>(field_idx, shadow_frame.GetMethod(), s… in DoFieldGet() local
40 if (UNLIKELY(f == nullptr)) { in DoFieldGet()
46 obj = f->GetDeclaringClass(); in DoFieldGet()
50 ThrowNullPointerExceptionForFieldAccess(f, true); in DoFieldGet()
54 f->GetDeclaringClass()->AssertInitializedOrInitializingInThread(self); in DoFieldGet()
58 Object* this_object = f->IsStatic() ? nullptr : obj; in DoFieldGet()
60 shadow_frame.GetDexPC(), f); in DoFieldGet()
65 shadow_frame.SetVReg(vregA, f->GetBoolean(obj)); in DoFieldGet()
68 shadow_frame.SetVReg(vregA, f->GetByte(obj)); in DoFieldGet()
71 shadow_frame.SetVReg(vregA, f->GetChar(obj)); in DoFieldGet()
[all …]
/art/test/440-stmp/src/
DMain.java24 baz(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o); in bar()
27 public static void baz(float a, float b, float c, float d, float e, float f, float g, in baz() argument
29 System.out.println(a - b - c - d - e - f - g - h - i - j - k - l - m - n - o); in baz()
37 float f = 6.0f; field in Main
/art/test/064-field-access/src/
DMain.java547 for (Field f : fields) { in doReflectionTests()
550 if (f.getName().contains(fieldNameForTypeChar[i])) { in doReflectionTests()
557 if ((f.getName().contains("Private") || in doReflectionTests()
558 (!same_package && f.getName().contains("Package")) || in doReflectionTests()
559 (!same_package && f.getName().contains("Protected"))) && in doReflectionTests()
560 !(protected_class && f.getName().contains("Public"))) { in doReflectionTests()
564 if ((f.getName().contains("Private") || in doReflectionTests()
565 (!same_package && f.getName().contains("Package")) || in doReflectionTests()
566 (!same_package && f.getName().contains("Protected"))) && in doReflectionTests()
567 !(protected_class && f.getName().contains("Public"))) { in doReflectionTests()
[all …]

12345