summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r--libs/rs/rsScriptC.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp
index 557f3aea1f40..e170b8ca9d8f 100644
--- a/libs/rs/rsScriptC.cpp
+++ b/libs/rs/rsScriptC.cpp
@@ -43,6 +43,16 @@ ScriptC::~ScriptC()
}
}
+extern "C" float fixedToFloat(int32_t f)
+{
+ return ((float)f) / 0x10000;
+}
+
+extern "C" float intToFloat(int32_t f)
+{
+ return (float)f;
+}
+
extern "C" void matrixLoadIdentity(rsc_Matrix *mat)
{
Matrix *m = reinterpret_cast<Matrix *>(mat);