summaryrefslogtreecommitdiffstats
path: root/scriptc/rs_atomic.rsh
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-01-25 18:17:34 -0800
committerStephen Hines <srhines@google.com>2012-01-25 18:17:34 -0800
commitfa54999eb657180fe82b556c75761f37fed599dc (patch)
treed14b19c495f77cf972a0deb304bb90d862ec776a /scriptc/rs_atomic.rsh
parentb9dfecaf56642de220c7e5563ff306aa9a5412f9 (diff)
downloadandroid_frameworks_rs-fa54999eb657180fe82b556c75761f37fed599dc.tar.gz
android_frameworks_rs-fa54999eb657180fe82b556c75761f37fed599dc.tar.bz2
android_frameworks_rs-fa54999eb657180fe82b556c75761f37fed599dc.zip
Fix bugs with unsigned rsAtomicCas/Max/Min.
BUG=5888007 rsAtomicMax/Min did not have proper semantics for unsigned integers. They were always using signed comparisons. rsAtomicCas had the wrong function signature in our math library, leading to no way to properly link/execute it. Change-Id: I336cdd8cd9f2d8093f12e101b55b2797515f039b
Diffstat (limited to 'scriptc/rs_atomic.rsh')
-rw-r--r--scriptc/rs_atomic.rsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scriptc/rs_atomic.rsh b/scriptc/rs_atomic.rsh
index 87c6c021..a455edd4 100644
--- a/scriptc/rs_atomic.rsh
+++ b/scriptc/rs_atomic.rsh
@@ -242,7 +242,7 @@ extern int32_t __attribute__((overloadable))
* @return old value
*/
extern uint32_t __attribute__((overloadable))
- rsAtomicCas(volatile uint32_t* addr, int32_t compareValue, int32_t newValue);
+ rsAtomicCas(volatile uint32_t* addr, uint32_t compareValue, uint32_t newValue);
#endif //defined(RS_VERSION) && (RS_VERSION >= 14)