Remove the always_inline attribute on all RS builtins.
Remove the always_inline attribute on all RenderScript builtins
in the specification files. This leads to the removal of that
attribute from the declarations of all those functions in the
RenderScript header files.
Also, updates a comment in the unrelated file rs_for_each.rsh.
I presume someone forgot to update that when they changed the
corresponding spec file.
Signed-off-by: Verena Beckham <verena@codeplay.com>
Change-Id: Ia4cdffdbdc9866a5b961356218dd01732bf2e830
diff --git a/scriptc/rs_math.rsh b/scriptc/rs_math.rsh
index 1a51316..d539867 100644
--- a/scriptc/rs_math.rsh
+++ b/scriptc/rs_math.rsh
@@ -6306,42 +6306,42 @@
* low: Lower bound.
* high: Upper bound.
*/
-extern char __attribute__((const, always_inline, overloadable
+extern char __attribute__((const, overloadable
#if (defined(RS_VERSION) && (RS_VERSION >= 22))
, deprecated("Use clamp() instead.")
#endif
))
rsClamp(char amount, char low, char high);
-extern uchar __attribute__((const, always_inline, overloadable
+extern uchar __attribute__((const, overloadable
#if (defined(RS_VERSION) && (RS_VERSION >= 22))
, deprecated("Use clamp() instead.")
#endif
))
rsClamp(uchar amount, uchar low, uchar high);
-extern short __attribute__((const, always_inline, overloadable
+extern short __attribute__((const, overloadable
#if (defined(RS_VERSION) && (RS_VERSION >= 22))
, deprecated("Use clamp() instead.")
#endif
))
rsClamp(short amount, short low, short high);
-extern ushort __attribute__((const, always_inline, overloadable
+extern ushort __attribute__((const, overloadable
#if (defined(RS_VERSION) && (RS_VERSION >= 22))
, deprecated("Use clamp() instead.")
#endif
))
rsClamp(ushort amount, ushort low, ushort high);
-extern int __attribute__((const, always_inline, overloadable
+extern int __attribute__((const, overloadable
#if (defined(RS_VERSION) && (RS_VERSION >= 22))
, deprecated("Use clamp() instead.")
#endif
))
rsClamp(int amount, int low, int high);
-extern uint __attribute__((const, always_inline, overloadable
+extern uint __attribute__((const, overloadable
#if (defined(RS_VERSION) && (RS_VERSION >= 22))
, deprecated("Use clamp() instead.")
#endif