Searched refs:copySign (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/util/src/android/util/cts/ |
D | HalfTest.java | 269 public void copySign() { in copySign() method in HalfTest 270 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(-7.5f), POSITIVE_INFINITY)); in copySign() 271 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(-7.5f), POSITIVE_ZERO)); in copySign() 272 assertShortEquals(toHalf(-7.5f), Half.copySign(toHalf(7.5f), NEGATIVE_INFINITY)); in copySign() 273 assertShortEquals(toHalf(-7.5f), Half.copySign(toHalf(7.5f), NEGATIVE_ZERO)); in copySign() 274 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(7.5f), NaN)); in copySign() 275 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(7.5f), toHalf(12.4f))); in copySign() 276 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()
|