History log of /frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d1be4d815ed18d5cf538ff5f36f5d36304eb337f 18-Nov-2015 Verena Beckham <verena@codeplay.com> 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>
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
6363723cacc46cfdf473f9c0579e661920f0901c 10-Apr-2015 Jason Sams <jsams@google.com> remove dead code

Change-Id: I9ebda4e61be9cf270233ea8c0c51892517395487
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
dc0d8f7c0f1f43f25c34fbc04656ad578f6e953b 03-Dec-2014 Pirama Arumuga Nainar <pirama@google.com> Skip linkloader, use shared object files

Bug: 18322681

- In rsCpuScript, if property rs.skip.linkloader is set, look for a .so
file in the cache directory and load it. If it is not available, use
bcc to generate relocatable object file and link it to a .so using
ld.mc. Use the embedded symbols in .rs.info and follow steps similar
to the compatibility library to invoke script functions or access
script variables.
- Add rs* symbols like rsGetAllocation to libRSCpuRef (ala
libRSSupport). Do necessary changes to argument types to get mangled
names correct.
- Make 64-bit version of rsSetObject take two pointers instead of a
pointer and a large object. rsIsObject takes a pointer instead of a
large object. Otherwise, we get failures in x86_64 due to calling
convention mismatch. To match the function names in the shared object
path, define these functions as 'extern "C"' with their mangled names.
- Add stubbed Math functions from rsCpuRuntimeMath and
rsCpuRuntimeMathFuncs into libRSCpuRef.so.
- Coalesce separate #ifdef paths in libRSCpuRef. Function parameters
for runtime callbacks and bcc plugin are needed in the
non-compatibilty path, but take default NULL arguments. This patch
introduces these parameters into the compatibility path as well, and
passes default NULL arguments.

Change-Id: I8a853350e39d30b4d852c30e4b5da5a75a2f2820
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
6fdd0601e45aaf7fd6eaa3ec7db0e981d4f8c5dd 13-Jan-2015 Pirama Arumuga Nainar <pirama@google.com> Fix ilogb's return type

Fix ilobg's return type in compat mode - was float instead of an int.

Change-Id: I523248fd1e2a867f3f8dbb0772771ef51f76ff53
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
44bef6fba6244292b751387f3d6c31cca96c28ad 12-Aug-2014 Chris Wailes <chriswailes@google.com> Replace NULL macros with nullptr literals.

Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
6a9cc720f106358880eb33f2ea48fe5f5d6d0c37 31-May-2014 Tim Murray <timmurray@google.com> Update runtime stubs.

Adds exp2f.

Change-Id: I97c83af4b3be2cdadea2c2e9243da4772d5b4e69
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
60fe47db884673ace2b41c6a037a376bbd0fd670 27-May-2014 Tim Murray <timmurray@google.com> Update runtime stubs.

Adds rsDebug for doubles. Also adds additional powf lookup.

Change-Id: I0f0a815a2b143102bcbf6d274d1ca4a0d897b651
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
cadee38f6940e5584d3ec3398a21bd2a494361e2 12-Dec-2013 Stephen Hines <srhines@google.com> Add missing functions and tests for support library.

Missing functions:
rsFrac(float)
rsMatrixLoadRotate(rs_matrix4x4 *, float, float, float, float)
rsMatrixLoadScale(rs_matrix4x4 *, float, float, float)
rsMatrixLoadTranslate(rs_matrix4x4 *, float, float, float)
rsMatrixRotate(rs_matrix4x4 *, float, float, float, float)
rsMatrixScale(rs_matrix4x4 *, float, float, float)
rsMatrixTranslate(rs_matrix4x4 *, float, float, float)
rsMatrixLoadOrtho(rs_matrix4x4 *, float, float, float, float, float, float)
rsMatrixLoadFrustum(rs_matrix4x4 *, float, float, float, float, float, float)
rsMatrixLoadPerspective(rs_matrix4x4 *, float, float, float, float)
rsMatrixInverse(rs_matrix4x4 *)
rsMatrixInverseTranspose(rs_matrix4x4 *)
rsMatrixTranspose(rs_matrix4x4 *)
rsMatrixTranspose(rs_matrix3x3 *)
rsMatrixTranspose(rs_matrix2x2 *)
rsUptimeNanos()
rsGetDt()

Headers tested in this CL:
rs_element.rsh
rs_math.rsh
rs_matrix.rsh
rs_object.rsh
rs_sampler.rsh
rs_time.rsh

Change-Id: I6cb1972a44f66dc7fed8fe3cf0329720d166af81
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
43cfc0cbe6e6e8f585a0ae5f1d9cc2859ab1dda7 15-Aug-2013 Stephen Hines <srhines@google.com> Remove barriers to using NDK v8 includes.

Bug: 10315692

Removed CLOCK_BOOTTIME, added some additional guards around cutils includes,
and explicitly included errno.h when we use ETIMEDOUT.

Change-Id: I0a764beea2f8ff7387a9afe985f00b5f03c68725
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
11418c87254f0cbffa910fe8f105b7da92452487 15-Aug-2013 Stephen Hines <srhines@google.com> Provide a tgammaf() wrapper for compatibility on Gingerbread.

Bug: 10315692

GB devices don't have tgammaf(float) and only have tgamma(double). We
provide a simple wrapper to convert between the two for the compatibility
library.

Change-Id: Id8566450405482e876148d62ffbe46fa62049049
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
b93cb42b4b8511d244ec8df4559fdc5c0b2de1bf 28-Mar-2013 Stephen Hines <srhines@google.com> Add rsRand(float, float) support back to compat lib.

Change-Id: I0acaa409908f83c690c95b47979f820bc2dac9f5
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
d6f1f46b2929ed56c73ba32357cde31b82972fbe 26-Mar-2013 Tim Murray <timmurray@google.com> Add some missing compat lib functions and fix a bug.

Change-Id: I2950e1b4f785bcc1f0b6154ce822fe17832b3f4f
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
0b575de8ed0b628d84d256f5846500b0385979bd 15-Mar-2013 Tim Murray <timmurray@google.com> Add x86 server support.

Change-Id: I674acaf15b67afa48bc736f72942a11e2e38e940
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
110f181b7966212a36ef18016f9b81c7322d0a2f 15-Mar-2013 Jason Sams <jsams@google.com> Reduce diffs with compat lib.

Change-Id: Ibfa2c7c7da56d158f424ac343e364feacd0a21da
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
029e82e1f688dfd132c19b1b94d2cad60d3ceaac 12-Mar-2013 Jason Sams <jsams@google.com> Move simple functions to on device lib.

Change-Id: I690673f98244c490302cb25145cfcc8dd4125637
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
74121b55311b1a31ce41e6e2814ef5ad4ded1864 13-Dec-2012 Jason Sams <jsams@google.com> Remove unused functions.

Change-Id: I962ea4327c11d10b35e93bb71a1367a7ee41464f
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
709a0978ae141198018ca9769f8d96292a8928e6 16-Nov-2012 Jason Sams <jsams@google.com> Separate CPU driver impl from reference driver.

Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
/frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp