< prev index next >

src/java.base/share/classes/java/lang/StrictMath.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 641,651 **** * * @param a base. * @param b the exponent. * @return the value {@code a}<sup>{@code b}</sup>. */ ! public static native double pow(double a, double b); /** * Returns the closest {@code int} to the argument, with ties * rounding to positive infinity. * --- 641,653 ---- * * @param a base. * @param b the exponent. * @return the value {@code a}<sup>{@code b}</sup>. */ ! public static double pow(double a, double b) { ! return FdLibm.Pow.compute(a, b); ! } /** * Returns the closest {@code int} to the argument, with ties * rounding to positive infinity. *
< prev index next >