Home
last modified time | relevance | path

Searched refs:magnitude (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java170 public static double rawCopySign(double magnitude, double sign) { in rawCopySign() argument
171 return Math.copySign(magnitude, sign); in rawCopySign()
191 public static float rawCopySign(float magnitude, float sign) { in rawCopySign() argument
192 return Math.copySign(magnitude, sign); in rawCopySign()
806 public static double copySign(double magnitude, double sign) { in copySign() argument
807 return StrictMath.copySign(magnitude, sign); in copySign()
824 public static float copySign(float magnitude, float sign) { in copySign() argument
825 return StrictMath.copySign(magnitude, sign); in copySign()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFpUtils.java47 public static double rawCopySign(double magnitude, double sign) { in rawCopySign() argument
52 public static float rawCopySign(float magnitude, float sign) { in rawCopySign() argument
139 public static double copySign(double magnitude, double sign) { in copySign() argument
144 public static float copySign(float magnitude, float sign) { in copySign() argument
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java395 public BigInteger(int signum, byte[] magnitude, int off, int len) { in BigInteger() argument
399 Objects.checkFromIndexSize(off, len, magnitude.length); in BigInteger()
402 this.mag = stripLeadingZeroBytes(magnitude, off, len); in BigInteger()
434 public BigInteger(int signum, byte[] magnitude) { in BigInteger() argument
435 this(signum, magnitude, 0, magnitude.length); in BigInteger()
445 private BigInteger(int signum, int[] magnitude) { in BigInteger() argument
446 this.mag = stripLeadingZeroInts(magnitude); in BigInteger()
530 int[] magnitude = new int[numWords]; in BigInteger() local
537 magnitude[numWords - 1] = Integer.parseInt(group, radix); in BigInteger()
538 if (magnitude[numWords - 1] < 0) in BigInteger()
[all …]
/libcore/ojluni/src/main/java/jdk/internal/math/
DFDBigInteger.java1487 byte[] magnitude = new byte[nWords * 4 + 1]; in toBigInteger()
1490 magnitude[magnitude.length - 4 * i - 1] = (byte) w; in toBigInteger()
1491 magnitude[magnitude.length - 4 * i - 2] = (byte) (w >> 8); in toBigInteger()
1492 magnitude[magnitude.length - 4 * i - 3] = (byte) (w >> 16); in toBigInteger()
1493 magnitude[magnitude.length - 4 * i - 4] = (byte) (w >> 24); in toBigInteger()
1495 return new BigInteger(magnitude).shiftLeft(offset * 32); in toBigInteger()
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java2349 public static double copySign(double magnitude, double sign) { in copySign() argument
2350 return Math.copySign(magnitude, (Double.isNaN(sign)?1.0d:sign)); in copySign()
2365 public static float copySign(float magnitude, float sign) { in copySign() argument
2366 return Math.copySign(magnitude, (Float.isNaN(sign)?1.0f:sign)); in copySign()
DMath.java3067 public static double copySign(double magnitude, double sign) {
3070 (Double.doubleToRawLongBits(magnitude) &
3095 public static float copySign(float magnitude, float sign) {
3098 (Float.floatToRawIntBits(magnitude) &
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStrictMathTest.java185 final double magnitude = COPYSIGN_DD_CASES[i]; in test_copySign_DD() local
187 .abs(magnitude)); in test_copySign_DD()
189 .abs(magnitude)); in test_copySign_DD()
194 .copySign(magnitude, Double.NaN))); in test_copySign_DD()
196 .copySign(Double.NaN, magnitude))); in test_copySign_DD()
201 .copySign(magnitude, sign)); in test_copySign_DD()
250 final float magnitude = COPYSIGN_FF_CASES[i]; in test_copySign_FF() local
252 .abs(magnitude)); in test_copySign_FF()
254 .abs(magnitude)); in test_copySign_FF()
259 magnitude, Float.NaN))); in test_copySign_FF()
[all …]
DMathTest.java169 final double magnitude = COPYSIGN_DD_CASES[i]; in test_copySign_DD() local
171 .abs(magnitude)); in test_copySign_DD()
173 .abs(magnitude)); in test_copySign_DD()
178 magnitude, Double.NaN))); in test_copySign_DD()
180 Double.NaN, magnitude))); in test_copySign_DD()
185 magnitude, sign)); in test_copySign_DD()
241 final float magnitude = COPYSIGN_FF_CASES[i]; in test_copySign_FF() local
243 .abs(magnitude)); in test_copySign_FF()
245 .abs(magnitude)); in test_copySign_FF()
250 magnitude, Float.NaN))); in test_copySign_FF()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/math/
DBigInteger.annotated.java35 …public BigInteger(int signum, byte[] magnitude, int off, int len) { throw new RuntimeException("St… in BigInteger() argument
37 public BigInteger(int signum, byte[] magnitude) { throw new RuntimeException("Stub!"); } in BigInteger() argument
/libcore/ojluni/annotations/flagged_api/java/lang/
DStrictMath.annotated.java225 public static double copySign(double magnitude, double sign) { throw new RuntimeException("Stub!");… in copySign() argument
227 public static float copySign(float magnitude, float sign) { throw new RuntimeException("Stub!"); } in copySign() argument
DMath.annotated.java226 public static double copySign(double magnitude, double sign) { throw new RuntimeException("Stub!");… in copySign() argument
228 public static float copySign(float magnitude, float sign) { throw new RuntimeException("Stub!"); } in copySign() argument