summaryrefslogtreecommitdiffstats
path: root/libs/rs/scriptc
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2010-10-15 12:47:49 -0700
committerStephen Hines <srhines@google.com>2010-10-15 14:17:55 -0700
commit6568896117197216de4877a31c382c7769617a10 (patch)
treedc7ed134725e5a93dfd450b706c2efb658969809 /libs/rs/scriptc
parentdb3694d03068aca596feee7326d3c14eb71d8dc9 (diff)
downloadframeworks_base-6568896117197216de4877a31c382c7769617a10.zip
frameworks_base-6568896117197216de4877a31c382c7769617a10.tar.gz
frameworks_base-6568896117197216de4877a31c382c7769617a10.tar.bz2
Add support for rsDebug with 64-bit types.
Bug: 3099081 Change-Id: Ieb3af7757489876ef951be8527aa73f69e1481fd
Diffstat (limited to 'libs/rs/scriptc')
-rw-r--r--libs/rs/scriptc/rs_core.rsh14
1 files changed, 12 insertions, 2 deletions
diff --git a/libs/rs/scriptc/rs_core.rsh b/libs/rs/scriptc/rs_core.rsh
index 9950184..0e0532c 100644
--- a/libs/rs/scriptc/rs_core.rsh
+++ b/libs/rs/scriptc/rs_core.rsh
@@ -11,6 +11,8 @@ extern void __attribute__((overloadable))
extern void __attribute__((overloadable))
rsDebug(const char *, float, float, float, float);
extern void __attribute__((overloadable))
+ rsDebug(const char *, double);
+extern void __attribute__((overloadable))
rsDebug(const char *, const rs_matrix4x4 *);
extern void __attribute__((overloadable))
rsDebug(const char *, const rs_matrix3x3 *);
@@ -21,6 +23,14 @@ extern void __attribute__((overloadable))
extern void __attribute__((overloadable))
rsDebug(const char *, uint);
extern void __attribute__((overloadable))
+ rsDebug(const char *, long);
+extern void __attribute__((overloadable))
+ rsDebug(const char *, unsigned long);
+extern void __attribute__((overloadable))
+ rsDebug(const char *, long long);
+extern void __attribute__((overloadable))
+ rsDebug(const char *, unsigned long long);
+extern void __attribute__((overloadable))
rsDebug(const char *, const void *);
#define RS_DEBUG(a) rsDebug(#a, a)
#define RS_DEBUG_MARKER rsDebug(__FILE__, __LINE__)
@@ -803,7 +813,7 @@ static void rsQuaternionGetMatrixUnit(rs_matrix4x4 *m, const rs_quaternion *q) {
/////////////////////////////////////////////////////
// utility funcs
/////////////////////////////////////////////////////
-void __attribute__((overloadable))
+__inline__ static void __attribute__((overloadable, always_inline))
rsExtractFrustumPlanes(const rs_matrix4x4 *modelViewProj,
float4 *left, float4 *right,
float4 *top, float4 *bottom,
@@ -853,7 +863,7 @@ rsExtractFrustumPlanes(const rs_matrix4x4 *modelViewProj,
*far /= len;
}
-bool __attribute__((overloadable))
+__inline__ static bool __attribute__((overloadable, always_inline))
rsIsSphereInFrustum(float4 *sphere,
float4 *left, float4 *right,
float4 *top, float4 *bottom,