Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -22876,6 +22876,7 @@ package android.util { method public static float cos(float); method public static float exp(float); method public static float floor(float); method public static float hypot(float, float); method public static float sin(float); method public static float sqrt(float); } core/java/android/util/FloatMath.java +10 −0 Original line number Diff line number Diff line Loading @@ -80,4 +80,14 @@ public class FloatMath { * @return the exponential of value */ public static native float exp(float value); /** * Returns {@code sqrt(}<i>{@code x}</i><sup>{@code 2}</sup>{@code +} <i> * {@code y}</i><sup>{@code 2}</sup>{@code )}. * * @param x a float number * @param y a float number * @return the hypotenuse */ public static native float hypot(float x, float y); } core/jni/android_util_FloatMath.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,10 @@ public: static float ExpF(JNIEnv* env, jobject clazz, float x) { return expf(x); } static float HypotF(JNIEnv* env, jobject clazz, float x, float y) { return hypotf(x, y); } }; static JNINativeMethod gMathUtilsMethods[] = { Loading @@ -38,6 +42,7 @@ static JNINativeMethod gMathUtilsMethods[] = { {"cos", "(F)F", (void*) MathUtilsGlue::CosF}, {"sqrt", "(F)F", (void*) MathUtilsGlue::SqrtF}, {"exp", "(F)F", (void*) MathUtilsGlue::ExpF}, {"hypot", "(FF)F", (void*) MathUtilsGlue::HypotF}, }; int register_android_util_FloatMath(JNIEnv* env) Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -22876,6 +22876,7 @@ package android.util { method public static float cos(float); method public static float exp(float); method public static float floor(float); method public static float hypot(float, float); method public static float sin(float); method public static float sqrt(float); }
core/java/android/util/FloatMath.java +10 −0 Original line number Diff line number Diff line Loading @@ -80,4 +80,14 @@ public class FloatMath { * @return the exponential of value */ public static native float exp(float value); /** * Returns {@code sqrt(}<i>{@code x}</i><sup>{@code 2}</sup>{@code +} <i> * {@code y}</i><sup>{@code 2}</sup>{@code )}. * * @param x a float number * @param y a float number * @return the hypotenuse */ public static native float hypot(float x, float y); }
core/jni/android_util_FloatMath.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,10 @@ public: static float ExpF(JNIEnv* env, jobject clazz, float x) { return expf(x); } static float HypotF(JNIEnv* env, jobject clazz, float x, float y) { return hypotf(x, y); } }; static JNINativeMethod gMathUtilsMethods[] = { Loading @@ -38,6 +42,7 @@ static JNINativeMethod gMathUtilsMethods[] = { {"cos", "(F)F", (void*) MathUtilsGlue::CosF}, {"sqrt", "(F)F", (void*) MathUtilsGlue::SqrtF}, {"exp", "(F)F", (void*) MathUtilsGlue::ExpF}, {"hypot", "(FF)F", (void*) MathUtilsGlue::HypotF}, }; int register_android_util_FloatMath(JNIEnv* env) Loading