mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Remove unnecessary xchg* lock prefixes.
This commit is contained in:
@@ -119,7 +119,7 @@ atomic_write_uint64(uint64_t *p, uint64_t x)
|
|||||||
{
|
{
|
||||||
|
|
||||||
asm volatile (
|
asm volatile (
|
||||||
"lock; xchgq %1, %0;"
|
"xchgq %1, %0;" /* Lock is implied by xchgq. */
|
||||||
: "=m" (*p), "+r" (x) /* Outputs. */
|
: "=m" (*p), "+r" (x) /* Outputs. */
|
||||||
: "m" (*p) /* Inputs. */
|
: "m" (*p) /* Inputs. */
|
||||||
: "memory" /* Clobbers. */
|
: "memory" /* Clobbers. */
|
||||||
@@ -343,7 +343,7 @@ atomic_write_uint32(uint32_t *p, uint32_t x)
|
|||||||
{
|
{
|
||||||
|
|
||||||
asm volatile (
|
asm volatile (
|
||||||
"lock; xchgl %1, %0;"
|
"xchgl %1, %0;" /* Lock is implied by xchgl. */
|
||||||
: "=m" (*p), "+r" (x) /* Outputs. */
|
: "=m" (*p), "+r" (x) /* Outputs. */
|
||||||
: "m" (*p) /* Inputs. */
|
: "m" (*p) /* Inputs. */
|
||||||
: "memory" /* Clobbers. */
|
: "memory" /* Clobbers. */
|
||||||
|
|||||||
Reference in New Issue
Block a user