Move implementations of matrix functions into driver/runtime.

Move the implementation of rsExtractFrustumPlanes and
rsIsSphereInFrustum from rs_math.rsh into driver/runtime. The old
implementation remains in place for older versions, and the move
occurs only for API level 24 and up.

Change-Id: I7661e71eb5d344e39fa84e0aa502c621936e68a0
Signed-off-by: Verena Beckham <verena@codeplay.com>
diff --git a/api/rs_matrix.spec b/api/rs_matrix.spec
index 7f7ff0b..89f09c4 100644
--- a/api/rs_matrix.spec
+++ b/api/rs_matrix.spec
@@ -46,6 +46,7 @@
 end:
 
 function: rsExtractFrustumPlanes
+version: 9 23
 ret: void
 arg: const rs_matrix4x4* viewProj, "Matrix to extract planes from."
 arg: float4* left, "Left plane."
@@ -104,7 +105,23 @@
 test: none
 end:
 
+# New version. Same signature but doesn't contain a body.
+function: rsExtractFrustumPlanes
+version: 24
+ret: void
+arg: const rs_matrix4x4* viewProj
+arg: float4* left
+arg: float4* righ
+arg: float4* top
+arg: float4* bottom
+arg: float4* near
+arg: float4* far
+test: none
+end:
+
 function: rsIsSphereInFrustum
+version: 9 23
+attrib: always_inline
 ret: bool
 arg: float4* sphere, "float4 representing the sphere."
 arg: float4* left, "Left plane."
@@ -145,6 +162,20 @@
 test: none
 end:
 
+# New version. Same signature but doesn't contain a body.
+function: rsIsSphereInFrustum
+version: 24
+ret: bool
+arg: float4* sphere
+arg: float4* left
+arg: float4* right
+arg: float4* top
+arg: float4* bottom
+arg: float4* near
+arg: float4* far
+test: none
+end:
+
 function: rsMatrixGet
 t: rs_matrix4x4, rs_matrix3x3, rs_matrix2x2
 ret: float