Remove android_atomic_swap from mips & mips64.

Looks like this got left behind in mips by mistake, and
84c3e99231 carried this over to mips64.
Clean up before it wastes any more time...

Change-Id: I6aeaa6e68be81f94065589337e2f7d3483e6e43c
This commit is contained in:
Elliott Hughes 2014-06-23 11:57:30 -07:00
parent 2970517132
commit a74680fcc8
2 changed files with 0 additions and 34 deletions

View file

@ -116,23 +116,6 @@ android_atomic_release_cas(int32_t old_value,
}
extern ANDROID_ATOMIC_INLINE int32_t
android_atomic_swap(int32_t new_value, volatile int32_t *ptr)
{
int32_t prev, status;
do {
__asm__ __volatile__ (
" move %[status], %[new_value]\n"
" ll %[prev], (%[ptr])\n"
" sc %[status], (%[ptr])\n"
: [prev] "=&r" (prev), [status] "=&r" (status)
: [ptr] "r" (ptr), [new_value] "r" (new_value)
);
} while (__builtin_expect(status == 0, 0));
android_memory_barrier();
return prev;
}
extern ANDROID_ATOMIC_INLINE int32_t
android_atomic_add(int32_t increment, volatile int32_t *ptr)
{

View file

@ -168,23 +168,6 @@ int64_t android_atomic_release_cas64(int64_t old_value, int64_t new_value,
return android_atomic_cas64(old_value, new_value, ptr);
}
extern ANDROID_ATOMIC_INLINE
int32_t android_atomic_swap(int32_t new_value, volatile int32_t *ptr)
{
int32_t prev, status;
do {
__asm__ __volatile__ (
" move %[status], %[new_value]\n"
" ll %[prev], (%[ptr])\n"
" sc %[status], (%[ptr])\n"
: [prev] "=&r" (prev), [status] "=&r" (status)
: [ptr] "r" (ptr), [new_value] "r" (new_value)
);
} while (__builtin_expect(status == 0, 0));
android_memory_barrier();
return prev;
}
extern ANDROID_ATOMIC_INLINE
int32_t android_atomic_add(int32_t increment, volatile int32_t *ptr)
{