summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuRuntimeMath.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move implementation of rsFrac from cpu_ref into driver/runtime.Verena Beckham2015-12-171-8/+0
| | | | | | | | 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>
* remove dead codeJason Sams2015-04-091-111/+0
| | | | Change-Id: I9ebda4e61be9cf270233ea8c0c51892517395487
* Skip linkloader, use shared object filesPirama Arumuga Nainar2015-01-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix ilogb's return typePirama Arumuga Nainar2015-01-131-1/+1
| | | | | | Fix ilobg's return type in compat mode - was float instead of an int. Change-Id: I523248fd1e2a867f3f8dbb0772771ef51f76ff53
* Replace NULL macros with nullptr literals.Chris Wailes2014-08-201-2/+2
| | | | Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
* Update runtime stubs.Tim Murray2014-05-301-0/+1
| | | | | | Adds exp2f. Change-Id: I97c83af4b3be2cdadea2c2e9243da4772d5b4e69
* Update runtime stubs. Tim Murray2014-05-271-0/+1
| | | | | Adds rsDebug for doubles. Also adds additional powf lookup. Change-Id: I0f0a815a2b143102bcbf6d274d1ca4a0d897b651
* Add missing functions and tests for support library.Stephen Hines2013-12-121-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove barriers to using NDK v8 includes.Stephen Hines2013-08-151-1/+1
| | | | | | | | | Bug: 10315692 Removed CLOCK_BOOTTIME, added some additional guards around cutils includes, and explicitly included errno.h when we use ETIMEDOUT. Change-Id: I0a764beea2f8ff7387a9afe985f00b5f03c68725
* Provide a tgammaf() wrapper for compatibility on Gingerbread.Stephen Hines2013-08-141-1/+5
| | | | | | | | | | 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
* Add rsRand(float, float) support back to compat lib.Stephen Hines2013-03-271-1/+1
| | | | Change-Id: I0acaa409908f83c690c95b47979f820bc2dac9f5
* Add some missing compat lib functions and fix a bug.Tim Murray2013-03-271-1/+63
| | | | Change-Id: I2950e1b4f785bcc1f0b6154ce822fe17832b3f4f
* Add x86 server support.Tim Murray2013-03-191-0/+2
| | | | Change-Id: I674acaf15b67afa48bc736f72942a11e2e38e940
* Reduce diffs with compat lib.Jason Sams2013-03-151-141/+0
| | | | Change-Id: Ibfa2c7c7da56d158f424ac343e364feacd0a21da
* Move simple functions to on device lib.Jason Sams2013-03-111-173/+0
| | | | Change-Id: I690673f98244c490302cb25145cfcc8dd4125637
* Remove unused functions.Jason Sams2012-12-171-27/+0
| | | | Change-Id: I962ea4327c11d10b35e93bb71a1367a7ee41464f
* Separate CPU driver impl from reference driver.Jason Sams2012-11-191-0/+546
Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d