diff options
| author | Stephen Hines <srhines@google.com> | 2012-01-25 18:17:34 -0800 |
|---|---|---|
| committer | Stephen Hines <srhines@google.com> | 2012-01-25 18:17:34 -0800 |
| commit | fa54999eb657180fe82b556c75761f37fed599dc (patch) | |
| tree | d14b19c495f77cf972a0deb304bb90d862ec776a /scriptc/rs_atomic.rsh | |
| parent | b9dfecaf56642de220c7e5563ff306aa9a5412f9 (diff) | |
| download | android_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.rsh | 2 |
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) |
