Home
last modified time | relevance | path

Searched refs:magnitude (Results 1 – 10 of 10) 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()
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/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/lang/
DStrictMath.java1387 public static double copySign(double magnitude, double sign) { in copySign() argument
1388 return Math.copySign(magnitude, (Double.isNaN(sign)?1.0d:sign)); in copySign()
1403 public static float copySign(float magnitude, float sign) { in copySign() argument
1404 return Math.copySign(magnitude, (Float.isNaN(sign)?1.0f:sign)); in copySign()
DMath.java1781 public static double copySign(double magnitude, double sign) { in copySign() argument
1784 (Double.doubleToRawLongBits(magnitude) & in copySign()
1804 public static float copySign(float magnitude, float sign) { in copySign() argument
1807 (Float.floatToRawIntBits(magnitude) & in copySign()
/libcore/ojluni/src/main/java/java/text/
DChoiceFormat.java611 long magnitude = bits & ~SIGN; in nextDouble() local
615 if (magnitude != POSITIVEINFINITY) { in nextDouble()
616 magnitude += 1; in nextDouble()
621 magnitude -= 1; in nextDouble()
626 return Double.longBitsToDouble (magnitude | signbit); in nextDouble()
/libcore/luni/src/main/java/java/math/
DBigInteger.java91 private byte[] magnitude; field in BigInteger
271 public BigInteger(int signum, byte @NonNull [] magnitude) { in BigInteger() argument
272 if (magnitude == null) { in BigInteger()
279 for (byte element : magnitude) { in BigInteger()
286 bigInt.putBigEndian(magnitude, signum < 0); in BigInteger()
1241 bigInt.putBigEndian(magnitude, signum < 0); in readObject()
1252 magnitude = bigInt.bigEndianMagnitude(); in writeObject()
/libcore/ojluni/annotations/mmodule/java/lang/
DMath.annotated.java162 public static double copySign(double magnitude, double sign) { throw new RuntimeException("Stub!");… in copySign() argument
164 public static float copySign(float magnitude, float sign) { throw new RuntimeException("Stub!"); } in copySign() argument
/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 …]