/libcore/luni/src/test/resources/ |
D | math_important_numbers.csv | 696 floor,0x1.0p1,0x1.5bf0a8b145769p1,2.718281828459045 697 floor,-0x1.8p1,-0x1.5bf0a8b145769p1,-2.718281828459045 698 floor,0x0.0p0,0x0.0p0,0.0 699 floor,-0x0.0p0,-0x0.0p0,-0.0 700 floor,0x1.0p0,0x1.0p0,1.0 701 floor,-0x1.0p0,-0x1.0p0,-1.0 702 floor,-0x1.0p0,-0x1.0p-1,-0.5 703 floor,0x0.0p0,0x1.0p-1,0.5 704 floor,0x0.0p2047,0x0.0p2047,infty 705 floor,-0x0.0p2047,-0x0.0p2047,-infty [all …]
|
D | math_java_only.csv | 1933 floor,-0x1.0p0,-0x1.60ea637ea2799p-1 1934 floor,0x1.0p0,0x1.a0e6ad21f666dp0 1935 floor,-0x1.0p0,-0x1.8140ade02e521p-1 1936 floor,0x1.0p0,0x1.e8f78ef0d2ee3p0 1937 floor,0x0.0p0,0x1.4768d41c69116p-3 1938 floor,0x0.0p0,0x1.b135df74fb11ap-2 1939 floor,-0x1.0p1,-0x1.467b1c700773ap0 1940 floor,-0x1.8p1,-0x1.262bff2a64dfbp1 1941 floor,0x0.0p0,0x1.e0c30caa288c9p-5 1942 floor,0x0.0p0,0x1.c9114e290ccb5p-4 [all …]
|
/libcore/ojluni/src/main/native/ |
D | Math.c | 131 return floor(d); in Math_floor() 156 FAST_NATIVE_METHOD(Math, floor, "(D)D"),
|
D | jfdlibm.h | 51 #define floor jfloor macro
|
D | fdlibm.h | 141 extern double floor __P((double));
|
D | Character.cpp | 111 } else if (result < 0 || floor(result + 0.5) != result) { in Character_getNumericValueImpl()
|
/libcore/ojluni/src/main/java/java/util/ |
D | NavigableSet.java | 117 E floor(E e); in floor() method
|
D | TreeSet.java | 424 public E floor(E e) { in floor() method in TreeSet
|
D | Collections.java | 1291 public E floor(E e) { return ns.floor(e); } in floor() method in UnmodifiableNavigableSet 1942 Entry<K,V> floor = (Entry<K, V>) nm.floorEntry(key); 1943 return (null != floor) 1944 ? new UnmodifiableEntrySet.UnmodifiableEntry<>(floor) 2351 public E floor(E e) { synchronized (mutex) {return ns.floor(e);} } 3400 public E floor(E e) { return ns.floor(e); } 4116 Entry<K,V> floor = nm.floorEntry(key); 4117 return (null != floor) 4118 ? new CheckedMap.CheckedEntrySet.CheckedEntry<>(floor, valueType)
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | CollectionsTest.java | 655 assertEquals("melon", set.floor("nonexistent")); in test_unmodifiableNavigableSet_nonEmpty() 876 K floor = map.floorKey(absentKey); in check_unmodifiableNavigableMap_defaultMethods() local 879 assertNull(floor); in check_unmodifiableNavigableMap_defaultMethods() 882 assertFalse(Objects.equals(floor, ceiling)); in check_unmodifiableNavigableMap_defaultMethods() 883 assertTrue(floor != null || ceiling != null); in check_unmodifiableNavigableMap_defaultMethods() 884 assertEquals(ceiling, floor == null ? map.firstKey() : map.higherKey(floor)); in check_unmodifiableNavigableMap_defaultMethods() 885 assertEquals(floor, ceiling == null ? map.lastKey() : map.lowerKey(ceiling)); in check_unmodifiableNavigableMap_defaultMethods() 1106 assertEquals(element, set.floor(element)); in check_navigableSet() 1110 K floor = set.floor(absentElement); in check_navigableSet() local 1113 assertNull(floor); in check_navigableSet() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TreeSubSetTest.java | 377 Object e1 = q.floor(three); in testFloor() 380 Object e2 = q.floor(six); in testFloor() 383 Object e3 = q.floor(one); in testFloor() 386 Object e4 = q.floor(zero); in testFloor() 856 Object e1 = q.floor(m3); in testDescendingFloor() 859 Object e2 = q.floor(m6); in testDescendingFloor() 862 Object e3 = q.floor(m1); in testDescendingFloor() 865 Object e4 = q.floor(zero); in testDescendingFloor()
|
D | ConcurrentSkipListSubSetTest.java | 380 Object e1 = q.floor(three); in testFloor() 383 Object e2 = q.floor(six); in testFloor() 386 Object e3 = q.floor(one); in testFloor() 389 Object e4 = q.floor(zero); in testFloor() 870 Object e1 = q.floor(m3); in testDescendingFloor() 873 Object e2 = q.floor(m6); in testDescendingFloor() 876 Object e3 = q.floor(m1); in testDescendingFloor() 879 Object e4 = q.floor(zero); in testDescendingFloor()
|
D | TreeSetTest.java | 426 Object e1 = q.floor(three); in testFloor() 429 Object e2 = q.floor(six); in testFloor() 432 Object e3 = q.floor(one); in testFloor() 435 Object e4 = q.floor(zero); in testFloor() 870 int floor(int element) { in check() method in TreeSetTest.ReferenceSet 952 assertEq(set.floor(element), rs.floor(element)); in check()
|
D | ConcurrentSkipListSetTest.java | 422 Object e1 = q.floor(three); in testFloor() 425 Object e2 = q.floor(six); in testFloor() 428 Object e3 = q.floor(one); in testFloor() 431 Object e4 = q.floor(zero); in testFloor() 869 int floor(int element) { in check() method in ConcurrentSkipListSetTest.ReferenceSet 951 assertEq(set.floor(element), rs.floor(element)); in check()
|
D | TreeMapTest.java | 976 int floor(int key) { 1055 assertEq(map.floorKey(key), rs.floor(key));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | MathTest.java | 379 assertEquals("Incorrect floor for int", 42, Math.floor(42), 0); in test_floorD() 380 assertEquals("Incorrect floor for -int", -2, Math.floor(-2), 0); in test_floorD() 381 assertEquals("Incorrect floor for zero", 0d, Math.floor(0d), 0); in test_floorD() 383 assertEquals("Incorrect floor for +double", 78, Math.floor(78.89), 0); in test_floorD() 384 assertEquals("Incorrect floor for -double", -79, Math.floor(-78.89), 0); in test_floorD() 385 … assertEquals("floor large +double", 3.7314645675925406E19, Math.floor(3.7314645675925406E19), 0); in test_floorD() 386 assertEquals("floor large -double", -8.173521839218E12, Math.floor(-8.173521839218E12), 0); in test_floorD() 387 assertEquals("floor small double", 0.0d, Math.floor(1.11895241315E-102), 0); in test_floorD() 392 Double.toString(Double.NaN), Double.toString(Math.floor(Double.NaN))); in test_floorD() 394 Double.toString(+0.0d), Double.toString(Math.floor(+0.0d))); in test_floorD() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TreeMapExtendTest.java | 5011 descendingSet.floor(null); 5020 entry = (Entry) descendingSet.floor(entryArray[i]); 5026 Object x = descendingSet.floor(afterEnd); 5031 Object y = descendingSet.floor(beforeStart); 5041 descendingSet.floor(null); 5050 entry = (Entry) descendingSet.floor(entryArray[i]); 5060 descendingSet.floor(null); 5069 entry = (Entry) descendingSet.floor(entryArray[i]); 5078 descendingSet.floor(null); 5087 entry = (Entry) descendingSet.floor(entryArray[i]); [all …]
|
/libcore/ojluni/annotations/mmodule/java/lang/ |
D | Math.annotated.java | 67 public static native double floor(double a); in floor() method in Math
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentSkipListSet.java | 357 public E floor(E e) { in floor() method in ConcurrentSkipListSet
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 358 public static double floor(double a) { in floor() method in StrictMath
|
D | Math.java | 430 public static native double floor(double a); in floor() method in Math
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StrictMathBenchmark.java | 160 StrictMath.floor(FLOOR_DOUBLES[i]); in timeFloorOverInterestingValues()
|
D | MathBenchmark.java | 181 result = Math.floor(d); in timeFloor()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidStrictMathTest.java | 219 78, StrictMath.floor(78.89), 0.0); in testFloorD() 221 -79, StrictMath.floor(-78.89), 0.0); in testFloorD()
|
D | OldAndroidMathTest.java | 264 78, Math.floor(78.89), 0); in testFloorD() 266 -79, Math.floor(-78.89), 0); in testFloorD()
|