Commit b63ea712 authored by Chris Metcalf's avatar Chris Metcalf

tile: fix comment bug in sys_cmpxchg description

Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 77f8c740
...@@ -1609,7 +1609,7 @@ ENTRY(sys_cmpxchg) ...@@ -1609,7 +1609,7 @@ ENTRY(sys_cmpxchg)
* Because of C pointer arithmetic, we want to compute this: * Because of C pointer arithmetic, we want to compute this:
* *
* ((char*)atomic_locks + * ((char*)atomic_locks +
* (((r0 >> 3) & (1 << (ATOMIC_HASH_SIZE - 1))) << 2)) * (((r0 >> 3) & ((1 << ATOMIC_HASH_SHIFT) - 1)) << 2))
* *
* Instead of two shifts we just ">> 1", and use 'mm' * Instead of two shifts we just ">> 1", and use 'mm'
* to ignore the low and high bits we don't want. * to ignore the low and high bits we don't want.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment