Home
last modified time | relevance | path

Searched refs:floor (Results 1 – 25 of 51) sorted by relevance

123

/libcore/luni/src/test/resources/
Dmath_important_numbers.csv696 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 …]
Dmath_java_only.csv1933 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/luni/src/test/java/libcore/libcore/util/
DFP16Test.java194 assertEquals(POSITIVE_INFINITY, FP16.floor(POSITIVE_INFINITY)); in testFloor()
195 assertEquals(NEGATIVE_INFINITY, FP16.floor(NEGATIVE_INFINITY)); in testFloor()
196 assertEquals(POSITIVE_ZERO, FP16.floor(POSITIVE_ZERO)); in testFloor()
197 assertEquals(NEGATIVE_ZERO, FP16.floor(NEGATIVE_ZERO)); in testFloor()
198 assertEquals(NaN, FP16.floor(NaN)); in testFloor()
199 assertEquals(LOWEST_VALUE, FP16.floor(LOWEST_VALUE)); in testFloor()
200 assertEquals(POSITIVE_ZERO, FP16.floor(MIN_NORMAL)); in testFloor()
201 assertEquals(POSITIVE_ZERO, FP16.floor((short) 0x3ff)); in testFloor()
202 assertEquals(POSITIVE_ZERO, FP16.floor(toHalf(0.2f))); in testFloor()
203 assertEquals(-1.0f, toFloat(FP16.floor(toHalf(-0.2f))), 0.0f); in testFloor()
[all …]
/libcore/ojluni/src/test/java/util/Random/
DRandomTestBsi1999.java426 () -> (int)(long)Math.floor(iter.next() * 0x1.0p32), in testOneRng()
431 () -> (int)(long)Math.floor(rng.nextDouble() * 0x1.0p32), in testOneRng()
435 () -> (((int)(long)Math.floor(rng.nextFloat() * 0x1.0p16f) << 16) in testOneRng()
436 | (int)(long)Math.floor(rng.nextFloat() * 0x1.0p16f)), in testOneRng()
/libcore/ojluni/src/test/java/lang/Math/
DCeilAndFloorTests.java41 Tests.test("Math.floor", input, Math.floor(input), expected); in testFloorCase()
42 Tests.test("StrictMath.floor", input, StrictMath.floor(input), expected); in testFloorCase()
DPowTests.java295 (a != Math.floor(a))) { // only integers are fixed-points of floor in intClassify()
/libcore/ojluni/src/main/native/
DMath.c131 return floor(d); in Math_floor()
156 FAST_NATIVE_METHOD(Math, floor, "(D)D"),
Djfdlibm.h51 #define floor jfloor macro
Dfdlibm.h140 extern double floor __P((double));
/libcore/luni/src/test/java/libcore/java/util/
DCollectionsTest.java657 assertEquals("melon", set.floor("nonexistent")); in test_unmodifiableNavigableSet_nonEmpty()
878 K floor = map.floorKey(absentKey); in check_unmodifiableNavigableMap_defaultMethods() local
881 assertNull(floor); in check_unmodifiableNavigableMap_defaultMethods()
884 assertFalse(Objects.equals(floor, ceiling)); in check_unmodifiableNavigableMap_defaultMethods()
885 assertTrue(floor != null || ceiling != null); in check_unmodifiableNavigableMap_defaultMethods()
886 assertEquals(ceiling, floor == null ? map.firstKey() : map.higherKey(floor)); in check_unmodifiableNavigableMap_defaultMethods()
887 assertEquals(floor, ceiling == null ? map.lastKey() : map.lowerKey(ceiling)); in check_unmodifiableNavigableMap_defaultMethods()
1108 assertEquals(element, set.floor(element)); in check_navigableSet()
1112 K floor = set.floor(absentElement); in check_navigableSet() local
1115 assertNull(floor); in check_navigableSet()
[all …]
/libcore/ojluni/src/main/java/java/util/
DNavigableSet.java117 E floor(E e); in floor() method
DTreeSet.java425 public E floor(E e) { in floor() method in TreeSet
/libcore/ojluni/annotations/flagged_api/java/util/
DNavigableSet.annotated.java48 public E floor(E e); in floor() method
DTreeSet.annotated.java80 public E floor(E e) { throw new RuntimeException("Stub!"); } in floor() method in TreeSet
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSubSetTest.java377 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()
DConcurrentSkipListSubSetTest.java380 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()
DTreeSetTest.java426 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()
DConcurrentSkipListSetTest.java422 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()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentSkipListSubSetTest.java403 Object e1 = q.floor(three); in testFloor()
406 Object e2 = q.floor(six); in testFloor()
409 Object e3 = q.floor(one); in testFloor()
412 Object e4 = q.floor(zero); in testFloor()
893 Object e1 = q.floor(m3); in testDescendingFloor()
896 Object e2 = q.floor(m6); in testDescendingFloor()
899 Object e3 = q.floor(m1); in testDescendingFloor()
902 Object e4 = q.floor(zero); in testDescendingFloor()
DTreeSubSetTest.java400 Object e1 = q.floor(three); in testFloor()
403 Object e2 = q.floor(six); in testFloor()
406 Object e3 = q.floor(one); in testFloor()
409 Object e4 = q.floor(zero); in testFloor()
879 Object e1 = q.floor(m3); in testDescendingFloor()
882 Object e2 = q.floor(m6); in testDescendingFloor()
885 Object e3 = q.floor(m1); in testDescendingFloor()
888 Object e4 = q.floor(zero); in testDescendingFloor()
DConcurrentSkipListSetTest.java452 Object e1 = q.floor(three); in testFloor()
455 Object e2 = q.floor(six); in testFloor()
458 Object e3 = q.floor(one); in testFloor()
461 Object e4 = q.floor(zero); in testFloor()
900 int floor(int element) { in check() method in ConcurrentSkipListSetTest.ReferenceSet
982 assertEq(set.floor(element), rs.floor(element)); in check()
DTreeSetTest.java449 Object e1 = q.floor(three); in testFloor()
452 Object e2 = q.floor(six); in testFloor()
455 Object e3 = q.floor(one); in testFloor()
458 Object e4 = q.floor(zero); in testFloor()
894 int floor(int element) { in check() method in TreeSetTest.ReferenceSet
976 assertEq(set.floor(element), rs.floor(element)); in check()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DMathTest.java379 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/ojluni/annotations/flagged_api/java/util/concurrent/
DConcurrentSkipListSet.annotated.java74 public E floor(E e) { throw new RuntimeException("Stub!"); } in floor() method in ConcurrentSkipListSet
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapExtendTest.java5011 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 …]

123