diff options
author | 2012-06-08 19:05:47 +0900 | |
---|---|---|
committer | 2012-06-08 20:46:19 +0900 | |
commit | e7b34b9f867b64eabc3606e5ef21e26eda8de0f6 (patch) | |
tree | 52354e792d3ea6dc84b62ef1940a62677b195f2d /java/src/com/android/inputmethod/latin/NativeUtils.java | |
parent | aa564e336e6f2562ac05e384e06ed66c6b162c45 (diff) | |
download | latinime-e7b34b9f867b64eabc3606e5ef21e26eda8de0f6.tar.gz latinime-e7b34b9f867b64eabc3606e5ef21e26eda8de0f6.tar.xz latinime-e7b34b9f867b64eabc3606e5ef21e26eda8de0f6.zip |
Add NativeUtils.powf()
Change-Id: I0339f39d49bc6390d098017f32d92c776974e03e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/NativeUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/NativeUtils.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/NativeUtils.java b/java/src/com/android/inputmethod/latin/NativeUtils.java new file mode 100644 index 000000000..9cc2bc02e --- /dev/null +++ b/java/src/com/android/inputmethod/latin/NativeUtils.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.inputmethod.latin; + +public class NativeUtils { + static { + JniUtils.loadNativeLibrary(); + } + + private NativeUtils() { + // This utility class is not publicly instantiable. + } + + /** + * This method just calls up libm's powf() directly. + */ + public static native float powf(float x, float y); +} |