diff options
author | Elliott Hughes <enh@google.com> | 2012-09-14 11:54:57 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-09-14 11:54:57 -0700 |
commit | 6986bcfd1cdeafb594203fee605ebed456fe83c3 (patch) | |
tree | dde0fe9d77f4ce87b805a14dff8633ed80ab8655 /vm/InlineNative.h | |
parent | cfeacbdd0cdd71a7974ac623e6534d0221d93ed9 (diff) | |
download | android_dalvik-6986bcfd1cdeafb594203fee605ebed456fe83c3.tar.gz android_dalvik-6986bcfd1cdeafb594203fee605ebed456fe83c3.tar.bz2 android_dalvik-6986bcfd1cdeafb594203fee605ebed456fe83c3.zip |
Optimize those StrictMath routines that are identical to Math routines.
We can just use the existing Math intinsics.
Bug: 7146208
Change-Id: I9e78d33cf65a5dcc5a7c0133e67bd9c3c1e43f23
Diffstat (limited to 'vm/InlineNative.h')
-rw-r--r-- | vm/InlineNative.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vm/InlineNative.h b/vm/InlineNative.h index 101ddd192..fe14f8bf8 100644 --- a/vm/InlineNative.h +++ b/vm/InlineNative.h @@ -53,7 +53,7 @@ struct InlineOperation { }; /* - * Must be kept in sync w/ gDvmInlineOpsTable in InlineNative.c + * Must be kept in sync w/ gDvmInlineOpsTable in InlineNative.cpp * * You should also add a test to libcore's IntrinsicTest. */ @@ -80,6 +80,13 @@ enum NativeInlineOps { INLINE_DOUBLE_TO_LONG_BITS = 19, INLINE_DOUBLE_TO_RAW_LONG_BITS = 20, INLINE_LONG_BITS_TO_DOUBLE = 21, + INLINE_STRICT_MATH_ABS_INT = 22, + INLINE_STRICT_MATH_ABS_LONG = 23, + INLINE_STRICT_MATH_ABS_FLOAT = 24, + INLINE_STRICT_MATH_ABS_DOUBLE = 25, + INLINE_STRICT_MATH_MIN_INT = 26, + INLINE_STRICT_MATH_MAX_INT = 27, + INLINE_STRICT_MATH_SQRT = 28, }; /* |