HomeSort by relevance Sort by last modified time
    Searched refs:copySign (Results 1 - 25 of 56) sorted by null

1 2 3

  /libcore/ojluni/src/main/java/sun/misc/
FpUtils.java 156 * FpUtils#copySign(double, double) copySign} method, this method
167 * @deprecated Use Math.copySign.
171 return Math.copySign(magnitude, sign);
177 * FpUtils#copySign(float, float) copySign} method, this method
188 * @deprecated Use Math.copySign.
192 return Math.copySign(magnitude, sign);
803 * @deprecated Use StrictMath.copySign.
806 public static double copySign(double magnitude, double sign)
    [all...]
  /libcore/ojluni/src/main/java/java/lang/
StrictMath.java 450 double sign = Math.copySign(1.0, a); // preserve sign info
    [all...]
Double.java 294 if (Math.copySign(1.0, d) == -1.0) // value is negative,
    [all...]
Math.java     [all...]
  /external/guava/guava/src/com/google/common/math/
DoubleMath.java 30 import static java.lang.Math.copySign;
87 return x + Math.copySign(1.0, x);
96 return x + copySign(0.5, x);
354 Math.copySign(a - b, 1.0) <= tolerance
355 // copySign(x, 1.0) is a branch-free version of abs(x), but with different NaN semantics
  /external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DoubleMath.java 139 Math.copySign(a - b, 1.0) <= tolerance
140 // copySign(x, 1.0) is a branch-free version of abs(x), but with different NaN semantics
  /external/llvm/include/llvm/ADT/
APFloat.h 349 void copySign(const APFloat &);
353 static APFloat copySign(APFloat Value, const APFloat &Sign) {
354 Value.copySign(Sign);
  /libcore/benchmarks/src/benchmarks/regression/
MathBenchmark.java 117 result = Math.copySign(d, d);
125 result = Math.copySign(f, f);
133 result = StrictMath.copySign(d, d);
141 result = StrictMath.copySign(f, f);
StrictMathBenchmark.java 123 StrictMath.copySign(d, d);
129 StrictMath.copySign(f, f);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
StrictMathTest.java 179 * {@link java.lang.StrictMath#copySign(double, double)}
194 .copySign(magnitude, Double.NaN)));
196 .copySign(Double.NaN, magnitude)));
201 .copySign(magnitude, sign));
218 .copySign(Double.NaN, Double.NaN)));
221 StrictMath.copySign((Double) null, 2.3);
227 StrictMath.copySign(2.3, (Double) null);
233 StrictMath.copySign((Double) null, (Double) null);
240 assertEquals(1.0, StrictMath.copySign(1.0, d), 0d);
244 * {@link java.lang.StrictMath#copySign(float, float)
    [all...]
MathTest.java 163 * {@link java.lang.Math#copySign(double, double)}
177 absMagnitudeBits, Double.doubleToLongBits(Math.copySign(
179 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign(
184 final long resultBits = Double.doubleToLongBits(Math.copySign(
201 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign(
205 Math.copySign((Double) null, 2.3);
211 Math.copySign(2.3, (Double) null);
217 Math.copySign((Double) null, (Double) null);
235 * {@link java.lang.Math#copySign(float, float)}
249 absMagnitudeBits, Float.floatToIntBits(Math.copySign(
    [all...]
  /external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
APFloat.h 297 void copySign(const IEEEFloat &);
301 static IEEEFloat copySign(IEEEFloat Value, const IEEEFloat &Sign) {
302 Value.copySign(Sign);
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
OldAndroidMathTest.java 114 double negativeZero = Math.copySign(0d, -1d);
116 assertTrue("Wrong sign for atan(0)", Math.copySign(1, Math.atan(0d)) == 1);
119 assertTrue("Wrong sign for atan(-0)", Math.copySign(1, Math.atan(negativeZero)) == -1);
142 double negativeZero = Math.copySign(0d, -1d);
145 Math.copySign(1, Math.atan2(+0, +0)) == 1);;
149 Math.copySign(1, Math.atan2(negativeZero, +0)) == -1);
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
RSUtils.java 185 minValueInHalf = Math.copySign(Float16Utils.MAX_VALUE, minValueInHalf);
188 maxValueInHalf = Math.copySign(Float16Utils.MAX_VALUE, maxValueInHalf);
  /cts/tests/tests/util/src/android/util/cts/
HalfTest.java 246 public void copySign() {
247 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(-7.5f), POSITIVE_INFINITY));
248 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(-7.5f), POSITIVE_ZERO));
249 assertShortEquals(toHalf(-7.5f), Half.copySign(toHalf(7.5f), NEGATIVE_INFINITY));
250 assertShortEquals(toHalf(-7.5f), Half.copySign(toHalf(7.5f), NEGATIVE_ZERO));
251 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(7.5f), NaN));
252 assertShortEquals(toHalf(7.5f), Half.copySign(toHalf(7.5f), toHalf(12.4f)));
253 assertShortEquals(toHalf(-7.5f), Half.copySign(toHalf(7.5f), toHalf(-12.4f)));
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/ADT/
APFloat.h 281 void copySign(const APFloat &);
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/
APFloat.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-4393122/include/llvm/ADT/
APFloat.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-4479392/include/llvm/ADT/
APFloat.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-4579689/include/llvm/ADT/
APFloat.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-4630689/include/llvm/ADT/
APFloat.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-4639204/include/llvm/ADT/
APFloat.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-4691093/include/llvm/ADT/
APFloat.h     [all...]
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/
APFloat.h     [all...]
  /prebuilts/clang/host/linux-x86/clang-4393122/include/llvm/ADT/
APFloat.h     [all...]

Completed in 327 milliseconds

1 2 3