Home
last modified time | relevance | path

Searched refs:mantissa (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DFloat16Utils.java77 int mantissa = val & MANTISSA_MASK; in convertFloat16ToFloat() local
80 float mantissaAsFloat = Math.scalb(mantissa, -10); in convertFloat16ToFloat()
110 private static double constructDouble(long mantissa, long exponent, boolean isNegative) { in constructDouble() argument
112 long bits = (exponent & DOUBLE_EXPONENT_MASK) | (mantissa & DOUBLE_MANTISSA_MASK); in constructDouble()
128 long mantissa = valueBits & DOUBLE_MANTISSA_MASK; // 52-bit mantissa in roundToFloat16() local
141 if (unbiasedExponent == -1023 && mantissa == 0) { in roundToFloat16()
182 long lowFloat16Mantissa = mantissa & ~mask; in roundToFloat16()
183 long highFloat16Mantissa = mantissa & ~mask; in roundToFloat16()
188 if ((mantissa & mask) != 0) { in roundToFloat16()
231 long mantissa = valueBits & DOUBLE_MANTISSA_MASK; // 52-bit mantissa in float16Ulp() local
[all …]
DRSUtils.java79 double mantissa = r.nextDouble(); in genRandomDoubles() local
82 double rand = sign * mantissa * Math.pow(2.0, exponent); in genRandomDoubles()
130 float mantissa = r.nextFloat(); in genRandomFloats() local
133 float rand = sign * mantissa * (float) Math.pow(2.0, exponent); in genRandomFloats()
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DRSUtils.java57 double mantissa = r.nextDouble(); in genRandomDoubles() local
60 double rand = sign * mantissa * Math.pow(2.0, exponent); in genRandomDoubles()
108 float mantissa = r.nextFloat(); in genRandomFloats() local
111 float rand = sign * mantissa * (float) Math.pow(2.0, exponent); in genRandomFloats()