]> git.proxmox.com Git - mirror_ovs.git/commit - tests/test-atomic.c
lib/ovs-atomic-i586: Faster 64-bit atomics on 32-bit builds with SSE.
authorJarno Rajahalme <jrajahalme@nicira.com>
Thu, 2 Oct 2014 16:12:11 +0000 (09:12 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Thu, 2 Oct 2014 16:12:11 +0000 (09:12 -0700)
commit55eebc01a5471be25f16302131cb1a9c8564a591
tree3f4f352e0d58ddda6f8b18db14b169b08b4a1f39
parent3b6709431c4f24a8356d962578df520e97aa8fb5
lib/ovs-atomic-i586: Faster 64-bit atomics on 32-bit builds with SSE.

Aligned 64-bit memory accesses in i586 are atomic.  By using an SSE
register we can make such memory accesses in one instruction without
bus-locking.  Need to compile with -msse (or higher) to enable this
feature.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ovs-atomic-i586.h
tests/test-atomic.c