Home
last modified time | relevance | path

Searched refs:scalb (Results 1 – 9 of 9) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStrictMathTest.java998 assertEquals(4.1422946304E7, StrictMath.scalb(1.2345, 25)); in test_scalb_DI()
999 assertEquals(3.679096698760986E-8, StrictMath.scalb(1.2345, -25)); in test_scalb_DI()
1000 assertEquals(1.2345, StrictMath.scalb(1.2345, 0)); in test_scalb_DI()
1001 assertEquals(7868514.304, StrictMath.scalb(0.2345, 25)); in test_scalb_DI()
1003 double normal = StrictMath.scalb(0.2345, -25); in test_scalb_DI()
1006 assertEquals(0.2345, StrictMath.scalb(normal, 25)); in test_scalb_DI()
1008 assertEquals(0.2345, StrictMath.scalb(0.2345, 0)); in test_scalb_DI()
1009 assertEquals(-4.1422946304E7, StrictMath.scalb(-1.2345, 25)); in test_scalb_DI()
1010 assertEquals(-6.98864459991455E-9, StrictMath.scalb(-0.2345, -25)); in test_scalb_DI()
1011 assertEquals(2.0, StrictMath.scalb(Double.MIN_NORMAL / 2, 1024)); in test_scalb_DI()
[all …]
DMathTest.java1434 assertEquals(4.1422946304E7, Math.scalb(1.2345, 25)); in test_scalb_DI()
1435 assertEquals(3.679096698760986E-8, Math.scalb(1.2345, -25)); in test_scalb_DI()
1436 assertEquals(1.2345, Math.scalb(1.2345, 0)); in test_scalb_DI()
1437 assertEquals(7868514.304, Math.scalb(0.2345, 25)); in test_scalb_DI()
1439 double normal = Math.scalb(0.2345, -25); in test_scalb_DI()
1442 assertEquals(0.2345, Math.scalb(normal, 25)); in test_scalb_DI()
1444 assertEquals(0.2345, Math.scalb(0.2345, 0)); in test_scalb_DI()
1445 assertEquals(-4.1422946304E7, Math.scalb(-1.2345, 25)); in test_scalb_DI()
1446 assertEquals(-6.98864459991455E-9, Math.scalb(-0.2345, -25)); in test_scalb_DI()
1447 assertEquals(2.0, Math.scalb(Double.MIN_NORMAL / 2, 1024)); in test_scalb_DI()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java533 public static double scalb(double d, int scale_factor) { in scalb() method in FpUtils
534 return Math.scalb(d, scale_factor); in scalb()
571 public static float scalb(float f, int scale_factor) { in scalb() method in FpUtils
572 return Math.scalb(f, scale_factor); in scalb()
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java1782 public static double scalb(double d, int scaleFactor) { in scalb() method in StrictMath
1783 return Math.scalb(d, scaleFactor); in scalb()
1816 public static float scalb(float f, int scaleFactor) { in scalb() method in StrictMath
1817 return Math.scalb(f, scaleFactor); in scalb()
DFloat.java289 String s = Double.toHexString(Math.scalb((double)f, in toHexString()
DMath.java2375 public static double scalb(double d, int scaleFactor) { in scalb() method in Math
2482 public static float scalb(float f, int scaleFactor) { in scalb() method in Math
/libcore/ojluni/src/main/native/
Dfdlibm.h166 extern double scalb __P((double, int));
168 extern double scalb __P((double, double));
/libcore/benchmarks/src/benchmarks/regression/
DStrictMathBenchmark.java311 StrictMath.scalb(d, 5); in timeScalbD()
317 StrictMath.scalb(f, 5); in timeScalbF()
DMathBenchmark.java381 result = Math.scalb(d, 5); in timeScalbD()
389 result = Math.scalb(f, 5); in timeScalbF()