Searched refs:copySign (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/util/src/android/util/cts/ |
D | HalfTest.java | 246 public void copySign() { in copySign() method in HalfTest 247 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(-7.5f), POSITIVE_INFINITY)); in copySign() 248 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(-7.5f), POSITIVE_ZERO)); in copySign() 249 assertShortEquals(toHalf(-7.5f), Half.copySign(toHalf(7.5f), NEGATIVE_INFINITY)); in copySign() 250 assertShortEquals(toHalf(-7.5f), Half.copySign(toHalf(7.5f), NEGATIVE_ZERO)); in copySign() 251 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(7.5f), NaN)); in copySign() 252 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(7.5f), toHalf(12.4f))); in copySign() 253 assertShortEquals(toHalf(-7.5f), Half.copySign(toHalf(7.5f), toHalf(-12.4f))); in copySign()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | RSUtils.java | 185 minValueInHalf = Math.copySign(Float16Utils.MAX_VALUE, minValueInHalf); in genRandomFloat16s() 188 maxValueInHalf = Math.copySign(Float16Utils.MAX_VALUE, maxValueInHalf); in genRandomFloat16s()
|
D | CoreMathVerifier.java | 418 return t.newFloaty(Math.copySign(magnitude, sign)); in copysign() 908 value = Math.copySign(pow(Math.abs(inV), 1.f / inN), in rootn() 1732 args.out = t.new32(Math.copySign(args.inMagnitudeValue, args.inSignValue)); in computeCopysign()
|