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/api/rs_graphics.spec b/api/rs_graphics.spec
index f5b8096..db93cfc 100644
--- a/api/rs_graphics.spec
+++ b/api/rs_graphics.spec
@@ -691,7 +691,6 @@
function: rsgMeshComputeBoundingBox
version: 9 22
size: 32
-attrib: always_inline
ret: void
arg: rs_mesh mesh
arg: float3* bBoxMin
diff --git a/api/rs_math.spec b/api/rs_math.spec
index 070bb4f..b390610 100644
--- a/api/rs_math.spec
+++ b/api/rs_math.spec
@@ -3387,8 +3387,7 @@
end:
function: rsClamp
-# TODO Why always_inline?
-attrib: const, always_inline
+attrib: const
t: i8, i16, i32, u8, u16, u32
ret: #1
arg: #1 amount, "Value to clamp."
diff --git a/api/rs_matrix.spec b/api/rs_matrix.spec
index d66e9d9..7f7ff0b 100644
--- a/api/rs_matrix.spec
+++ b/api/rs_matrix.spec
@@ -46,8 +46,6 @@
end:
function: rsExtractFrustumPlanes
-# TODO Why always_inline?
-attrib: always_inline
ret: void
arg: const rs_matrix4x4* viewProj, "Matrix to extract planes from."
arg: float4* left, "Left plane."
@@ -107,7 +105,6 @@
end:
function: rsIsSphereInFrustum
-attrib: always_inline
ret: bool
arg: float4* sphere, "float4 representing the sphere."
arg: float4* left, "Left plane."