Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DFloat16Utils.java76 int exponent = (val & EXPONENT_MASK) >> 10; in convertFloat16ToFloat() local
95 result = Math.scalb(1, exponent - 15) * (1 + mantissaAsFloat); in convertFloat16ToFloat()
110 private static double constructDouble(long mantissa, long exponent, boolean isNegative) { in constructDouble() argument
111 exponent = exponent << 52; in constructDouble()
112 long bits = (exponent & DOUBLE_EXPONENT_MASK) | (mantissa & DOUBLE_MANTISSA_MASK); in constructDouble()
129 long exponent = valueBits & DOUBLE_EXPONENT_MASK; // 11-bit exponent in roundToFloat16() local
130 long unbiasedExponent = (exponent >> 52) - 1023; in roundToFloat16()
232 long exponent = valueBits & DOUBLE_EXPONENT_MASK; // 11-bit exponent in float16Ulp() local
233 long unbiasedExponent = (exponent >> 52) - 1023; in float16Ulp()
310 long exponent = valueBits & DOUBLE_EXPONENT_MASK; // 11-bit exponent in convertDoubleToFloat16() local
[all …]
DRSUtils.java80 int exponent = minExponent + r.nextInt(maxExponent - minExponent); in genRandomDoubles() local
82 double rand = sign * mantissa * Math.pow(2.0, exponent); in genRandomDoubles()
131 int exponent = minExponent + r.nextInt(maxExponent - minExponent); in genRandomFloats() local
133 float rand = sign * mantissa * (float) Math.pow(2.0, exponent); in genRandomFloats()
DFloatyUnitTest.java416 int exponent = -13; in validateFloat16Ulp() local
417 double limit = Math.scalb(1., exponent); in validateFloat16Ulp()
418 for (; exponent <= 16; exponent ++, limit *= 2) { in validateFloat16Ulp()
420 assertEquals(ulp, Math.scalb(1., exponent - 11)); in validateFloat16Ulp()
DCoreMathVerifier.java38 public int exponent; field in CoreMathVerifier.FrexpResult
854 Target.Floaty exponent = t.newFloaty(y); in pow() local
856 Math.pow(base.mid(), exponent.mid()), in pow()
857 Math.pow(base.min(), exponent.min()), in pow()
858 Math.pow(base.min(), exponent.max()), in pow()
859 Math.pow(base.max(), exponent.min()), in pow()
860 Math.pow(base.max(), exponent.max())); in pow()
865 Target.Floaty exponent = t.new32(y); in powr() local
867 pow(base.mid32(), exponent.mid32()), in powr()
868 pow(base.min32(), exponent.min32()), in powr()
[all …]
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DRSUtils.java58 int exponent = minExponent + r.nextInt(maxExponent - minExponent); in genRandomDoubles() local
60 double rand = sign * mantissa * Math.pow(2.0, exponent); in genRandomDoubles()
109 int exponent = minExponent + r.nextInt(maxExponent - minExponent); in genRandomFloats() local
111 float rand = sign * mantissa * (float) Math.pow(2.0, exponent); in genRandomFloats()
/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java145 public void exponent() { in exponent() method in HalfTest