diff options
| author | Verena Beckham <verena@codeplay.com> | 2015-11-18 12:14:09 +0000 |
|---|---|---|
| committer | Verena Beckham <verena@codeplay.com> | 2015-12-17 12:33:07 +0000 |
| commit | d1be4d815ed18d5cf538ff5f36f5d36304eb337f (patch) | |
| tree | b5157780be8660e67ed68f5633629e8e0edbc60d /cpu_ref/rsCpuRuntimeMath.cpp | |
| parent | 8ea0a4219a55a84bf41b324a26f18babdd251dc3 (diff) | |
Move implementation of rsFrac from cpu_ref into driver/runtime.
Move the implementation of all the rsFrac functions from
rsCpuRuntimeMath.cpp to driver/runtime/rs_core.c.
Change-Id: I42bb4ba694fff76854c8deaefdd55671fec40acc
Signed-off-by: Verena Beckham <verena@codeplay.com>
Diffstat (limited to 'cpu_ref/rsCpuRuntimeMath.cpp')
| -rw-r--r-- | cpu_ref/rsCpuRuntimeMath.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cpu_ref/rsCpuRuntimeMath.cpp b/cpu_ref/rsCpuRuntimeMath.cpp index 49a96bc2..24539d3f 100644 --- a/cpu_ref/rsCpuRuntimeMath.cpp +++ b/cpu_ref/rsCpuRuntimeMath.cpp @@ -107,11 +107,6 @@ float SC_randf2(float min, float max) { return r; } -static float SC_frac(float v) { - int i = (int)floor(v); - return fmin(v - i, 0x1.fffffep-1f); -} - EXPORT_F32_FN_F32(acosf) EXPORT_F32_FN_F32(acoshf) EXPORT_F32_FN_F32(asinf) @@ -158,9 +153,6 @@ EXPORT_F32_FN_F32(sqrtf) EXPORT_F32_FN_F32(tanf) EXPORT_F32_FN_F32(tanhf) EXPORT_F32_FN_F32(truncf) -float __attribute__((overloadable)) rsFrac(float f) { - return SC_frac(f); -} void __attribute__((overloadable)) rsMatrixLoadRotate(rs_matrix4x4 *m, float rot, float x, float y, float z) { SC_MatrixLoadRotate((Matrix4x4 *) m, rot, x, y, z); |
