HomeSort by relevance Sort by last modified time
    Searched refs:halfToIntBits (Results 1 - 4 of 4) sorted by null

  /cts/tests/tests/util/src/android/util/cts/
HalfTest.java 532 assertEquals(POSITIVE_INFINITY & 0xffff, halfToIntBits(POSITIVE_INFINITY));
533 assertEquals(NEGATIVE_INFINITY & 0xffff, halfToIntBits(NEGATIVE_INFINITY));
534 assertEquals(POSITIVE_ZERO & 0xffff, halfToIntBits(POSITIVE_ZERO));
535 assertEquals(NEGATIVE_ZERO & 0xffff, halfToIntBits(NEGATIVE_ZERO));
536 assertEquals(NaN & 0xffff, halfToIntBits(NaN));
537 assertEquals(NaN & 0xffff, halfToIntBits((short) 0xfc98)); // NaN
538 assertEquals(toHalf(12.462f) & 0xffff, halfToIntBits(toHalf(12.462f)));
539 assertEquals(toHalf(-12.462f) & 0xffff, halfToIntBits(toHalf(-12.462f)));
541 assertShortEquals(POSITIVE_INFINITY, intBitsToHalf(halfToIntBits(POSITIVE_INFINITY)));
542 assertShortEquals(NEGATIVE_INFINITY, intBitsToHalf(halfToIntBits(NEGATIVE_INFINITY)))
    [all...]
  /frameworks/base/core/java/android/util/
Half.java 325 * {@link #halfToIntBits(short)} returns an identical {@code int} value for both.
330 * @see #halfToIntBits(short)
335 (halfToIntBits(((Half) o).mValue) == halfToIntBits(mValue));
341 * {@link #halfToIntBits(short)}, of the primitive half-precision float
395 return halfToIntBits(h);
421 // Collapse NaNs, akin to halfToIntBits(), but we want to keep
434 * <p>Similar to {@link #halfToIntBits(short)}, this method collapses all
441 * @see #halfToIntBits(short)
462 public static int halfToIntBits(@HalfFloat short h)
    [all...]
  /prebuilts/sdk/26/
android.jar 
  /prebuilts/sdk/27/
android.jar 

Completed in 197 milliseconds