From 6986bcfd1cdeafb594203fee605ebed456fe83c3 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 14 Sep 2012 11:54:57 -0700 Subject: Optimize those StrictMath routines that are identical to Math routines. We can just use the existing Math intinsics. Bug: 7146208 Change-Id: I9e78d33cf65a5dcc5a7c0133e67bd9c3c1e43f23 --- vm/InlineNative.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'vm/InlineNative.h') 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, }; /* -- cgit v1.2.3