Use RW_SPINLOCK_USE_X86_INTRINSIC_ in RWSpinLockTest
authorPeter Griess <pgriess@fb.com>
Thu, 26 Sep 2013 14:35:29 +0000 (09:35 -0500)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:46:31 +0000 (18:46 -0700)
commit01d9c7dda77f3a0141324946afedb19036bc1292
tree316abfabcccc9cdb027e576e84fc5faffd3973a2
parentd53c9e56b261b1dcc560c1bbd835db9883b986e3
Use RW_SPINLOCK_USE_X86_INTRINSIC_ in RWSpinLockTest

Summary:
- This macro is computed based on whether or not we support x86
intrinsics in RWSpinLock.h; re-use it rather than re-computing
this (and getting it wrong).

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: oyamauchi@fb.com

FB internal diff: D998586
folly/test/RWSpinLockTest.cpp