summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuRuntimeMath.cpp
AgeCommit message (Collapse)Author
2015-04-09remove dead codeJason Sams
Change-Id: I9ebda4e61be9cf270233ea8c0c51892517395487
2015-01-14Skip linkloader, use shared object filesPirama Arumuga Nainar
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
2015-01-13Fix ilogb's return typePirama Arumuga Nainar
Fix ilobg's return type in compat mode - was float instead of an int. Change-Id: I523248fd1e2a867f3f8dbb0772771ef51f76ff53
2014-08-20Replace NULL macros with nullptr literals.Chris Wailes
Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
2014-05-30Update runtime stubs.Tim Murray
Adds exp2f. Change-Id: I97c83af4b3be2cdadea2c2e9243da4772d5b4e69
2014-05-27Update runtime stubs. Tim Murray
Adds rsDebug for doubles. Also adds additional powf lookup. Change-Id: I0f0a815a2b143102bcbf6d274d1ca4a0d897b651
2013-12-12Add missing functions and tests for support library.Stephen Hines
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
2013-08-15Remove barriers to using NDK v8 includes.Stephen Hines
Bug: 10315692 Removed CLOCK_BOOTTIME, added some additional guards around cutils includes, and explicitly included errno.h when we use ETIMEDOUT. Change-Id: I0a764beea2f8ff7387a9afe985f00b5f03c68725
2013-08-14Provide a tgammaf() wrapper for compatibility on Gingerbread.Stephen Hines
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
2013-03-27Add rsRand(float, float) support back to compat lib.Stephen Hines
Change-Id: I0acaa409908f83c690c95b47979f820bc2dac9f5
2013-03-27Add some missing compat lib functions and fix a bug.Tim Murray
Change-Id: I2950e1b4f785bcc1f0b6154ce822fe17832b3f4f
2013-03-19Add x86 server support.Tim Murray
Change-Id: I674acaf15b67afa48bc736f72942a11e2e38e940
2013-03-15Reduce diffs with compat lib.Jason Sams
Change-Id: Ibfa2c7c7da56d158f424ac343e364feacd0a21da
2013-03-11Move simple functions to on device lib.Jason Sams
Change-Id: I690673f98244c490302cb25145cfcc8dd4125637
2012-12-17Remove unused functions.Jason Sams
Change-Id: I962ea4327c11d10b35e93bb71a1367a7ee41464f
2012-11-19Separate CPU driver impl from reference driver.Jason Sams
Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d