Searched refs:floor (Results 1 - 25 of 26) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/
H A DNavigableSet.java45 * {@link #floor}, {@link #ceiling}, and {@link #higher} return elements
117 E floor(E e); method in interface:NavigableSet
H A DTreeSet.java424 public E floor(E e) { method in class:TreeSet
H A DCollections.java1286 public E floor(E e) { return ns.floor(e); } method in class:Collections.UnmodifiableNavigableSet
1935 Entry<K,V> floor = (Entry<K, V>) nm.floorEntry(key);
1936 return (null != floor)
1937 ? new UnmodifiableEntrySet.UnmodifiableEntry<>(floor)
2344 public E floor(E e) { synchronized (mutex) {return ns.floor(e);} } method in class:Collections.SynchronizedNavigableSet
3392 public E floor(E e) { return ns.floor(e); } method in class:Collections.CheckedNavigableSet
4107 Entry<K,V> floor
[all...]
H A DTreeMap.java1141 public E floor(E e) { return m.floorKey(e); } method in class:TreeMap.KeySet
/libcore/ojluni/src/main/native/
H A Djfdlibm.h51 #define floor jfloor macro
H A DMath.c130 return floor(d);
155 FAST_NATIVE_METHOD(Math, floor, "(D)D"),
H A Dfdlibm.h141 extern double floor __P((double));
H A DCharacter.cpp110 } else if (result < 0 || floor(result + 0.5) != result) {
/libcore/luni/src/test/java/libcore/java/util/
H A DCollectionsTest.java680 assertEquals("melon", set.floor("nonexistent"));
901 K floor = map.floorKey(absentKey);
904 assertNull(floor);
907 assertFalse(Objects.equals(floor, ceiling));
908 assertTrue(floor != null || ceiling != null);
909 assertEquals(ceiling, floor == null ? map.firstKey() : map.higherKey(floor));
910 assertEquals(floor, ceiling == null ? map.lastKey() : map.lowerKey(ceiling));
1131 assertEquals(element, set.floor(element));
1135 K floor
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DConcurrentSkipListSetTest.java418 * floor returns preceding element
422 Object e1 = q.floor(three);
425 Object e2 = q.floor(six);
428 Object e3 = q.floor(one);
431 Object e4 = q.floor(zero);
869 int floor(int element) {
951 assertEq(set.floor(element), rs.floor(element));
H A DTreeSetTest.java422 * floor returns preceding element
426 Object e1 = q.floor(three);
429 Object e2 = q.floor(six);
432 Object e3 = q.floor(one);
435 Object e4 = q.floor(zero);
870 int floor(int element) {
952 assertEq(set.floor(element), rs.floor(element));
H A DConcurrentSkipListSubSetTest.java376 * floor returns preceding element
380 Object e1 = q.floor(three);
383 Object e2 = q.floor(six);
386 Object e3 = q.floor(one);
389 Object e4 = q.floor(zero);
866 * floor returns preceding element
870 Object e1 = q.floor(m3);
873 Object e2 = q.floor(m6);
876 Object e3 = q.floor(m1);
879 Object e4 = q.floor(zer
[all...]
H A DTreeSubSetTest.java373 * floor returns preceding element
377 Object e1 = q.floor(three);
380 Object e2 = q.floor(six);
383 Object e3 = q.floor(one);
386 Object e4 = q.floor(zero);
852 * floor returns preceding element
856 Object e1 = q.floor(m3);
859 Object e2 = q.floor(m6);
862 Object e3 = q.floor(m1);
865 Object e4 = q.floor(zer
[all...]
H A DConcurrentSkipListMapTest.java1171 int floor(int key) {
1250 assertEq(map.floorKey(key), rs.floor(key));
H A DTreeMapTest.java976 int floor(int key) {
1055 assertEq(map.floorKey(key), rs.floor(key));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DMathTest.java376 * java.lang.Math#floor(double)
379 assertEquals("Incorrect floor for int", 42, Math.floor(42), 0);
380 assertEquals("Incorrect floor for -int", -2, Math.floor(-2), 0);
381 assertEquals("Incorrect floor for zero", 0d, Math.floor(0d), 0);
383 assertEquals("Incorrect floor for +double", 78, Math.floor(78.89), 0);
384 assertEquals("Incorrect floor fo
[all...]
H A DStrictMathTest.java396 * java.lang.StrictMath#floor(double)
399 // Test for method double java.lang.StrictMath.floor(double)
400 assertEquals("Incorrect floor for double",
401 78, StrictMath.floor(78.89), 0.0);
402 assertEquals("Incorrect floor for double",
403 -79, StrictMath.floor(-78.89), 0.0);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A 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(entryArra
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DStrictMath.java332 * value of {@code -StrictMath.floor(-x)}.
358 public static double floor(double a) { method in class:StrictMath
363 * Internal method to share logic between floor and ceil.
623 * equivalently, a fixed point of the method {@link #floor
624 * floor}. A value is a fixed point of a one-argument
833 * @see Math#floor(double)
857 * @see Math#floor(double)
865 * Returns the floor modulus of the {@code int} arguments.
867 * The floor modulus is {@code x - (floorDiv(x, y) * y)},
881 * @return the floor modulu
[all...]
H A DMath.java403 * value of {@code -Math.floor(-x)}.
430 public static native double floor(double a); method in class:Math
616 * equivalently, a fixed point of the method {@link #floor
617 * floor}. A value is a fixed point of a one-argument
667 // (r >> shift) evaluates to floor(a * 2)
668 // ((r >> shift) + 1) evaluates to floor((a + 1/2) * 2)
669 // (((r >> shift) + 1) >> 1) evaluates to floor(a + 1/2)
716 // (r >> shift) evaluates to floor(a * 2)
717 // ((r >> shift) + 1) evaluates to floor((a + 1/2) * 2)
718 // (((r >> shift) + 1) >> 1) evaluates to floor(
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentSkipListSet.java357 public E floor(E e) { method in class:ConcurrentSkipListSet
/libcore/benchmarks/src/benchmarks/regression/
H A DStrictMathBenchmark.java44 /* Values for full line coverage of floor function */
160 StrictMath.floor(FLOOR_DOUBLES[i]);
H A DMathBenchmark.java181 result = Math.floor(d);
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldAndroidMathTest.java262 // Test for method double java.lang.Math.floor(double)
263 assertEquals("Incorrect floor for double",
264 78, Math.floor(78.89), 0);
265 assertEquals("Incorrect floor for double",
266 -79, Math.floor(-78.89), 0);
H A DOldAndroidStrictMathTest.java217 // Test for method double java.lang.StrictMath.floor(double)
218 assertEquals("Incorrect floor for double",
219 78, StrictMath.floor(78.89), 0.0);
220 assertEquals("Incorrect floor for double",
221 -79, StrictMath.floor(-78.89), 0.0);

Completed in 596 milliseconds

12