Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always use cmpxchg16b on x64 for atomic_ref<16 bytes> #4751

Merged
merged 20 commits into from
Jul 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
be1dabe
Simplify `__std_atomic_has_cmpxchg16b`: cmpxchg16b is always availabl…
StephanTLavavej Jun 16, 2024
b16508d
Simplify `__std_atomic_compare_exchange_128` accordingly.
StephanTLavavej Jun 16, 2024
bad4814
`__std_atomic_compare_exchange_128` and `__std_atomic_has_cmpxchg16b`…
StephanTLavavej Jun 16, 2024
7bf2aa7
Preserve `__std_atomic_compare_exchange_128` for bincompat.
StephanTLavavej Jun 16, 2024
e3a9a91
Replace the `_STD_COMPARE_EXCHANGE_128` macro with `_InterlockedCompa…
StephanTLavavej Jun 16, 2024
60798a3
Allow Clang x64 to use `_InterlockedCompareExchange128`.
StephanTLavavej Jun 16, 2024
c7261ef
Simplify the "future ABI" `atomic<T>::is_lock_free()`.
StephanTLavavej Jun 16, 2024
72349d3
Major style: Add parens when mixing arithmetic and bitwise operators …
StephanTLavavej Jun 16, 2024
6411c97
Minor style: Simplify `atomic<T>::is_lock_free()`.
StephanTLavavej Jun 16, 2024
b855bb9
Enhance the "future ABI" `_Is_always_lock_free` (aka `atomic<T>::is_a…
StephanTLavavej Jun 16, 2024
ea085c5
Centralize `atomic<T>::is_lock_free()` and `_Is_always_lock_free`.
StephanTLavavej Jun 16, 2024
c468e9e
`atomic_ref::is_lock_free()`: Simplify.
StephanTLavavej Jun 16, 2024
3861e48
`atomic_ref::is_lock_free()`: Further simplify.
StephanTLavavej Jun 16, 2024
0e17494
Enhance `atomic_ref::is_always_lock_free`.
StephanTLavavej Jun 16, 2024
fe82b0c
Collapse `atomic_ref` `is_always_lock_free` and `is_lock_free()`.
StephanTLavavej Jun 16, 2024
0c46d60
`_ATOMIC_HAS_DCAS` is now unused.
StephanTLavavej Jun 16, 2024
ba77cd1
Preserve `__std_atomic_has_cmpxchg16b` for bincompat.
StephanTLavavej Jun 16, 2024
96d86e7
Drop `_STD_ATOMIC_ALWAYS_USE_CMPXCHG16B` and simplify test coverage.
StephanTLavavej Jun 16, 2024
537bc95
`_STL_WIN32_WINNT_WINBLUE` is now unused.
StephanTLavavej Jun 25, 2024
e13d679
Silence unreferenced parameter warnings for 32-bit.
StephanTLavavej Jun 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
_STL_WIN32_WINNT_WINBLUE is now unused.
  • Loading branch information
StephanTLavavej committed Jun 27, 2024
commit 537bc95e6bef94a023818f724b8bb2c38546f172
7 changes: 3 additions & 4 deletions stl/inc/yvals_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1941,10 +1941,9 @@ compiler option, or define _ALLOW_RTCc_IN_STL to suppress this error.
#error In yvals_core.h, defined(MRTDLL) implies defined(_M_CEE_PURE); !defined(_M_CEE_PURE) implies !defined(MRTDLL)
#endif // defined(MRTDLL) && !defined(_M_CEE_PURE)

#define _STL_WIN32_WINNT_VISTA 0x0600 // _WIN32_WINNT_VISTA from sdkddkver.h
#define _STL_WIN32_WINNT_WIN8 0x0602 // _WIN32_WINNT_WIN8 from sdkddkver.h
#define _STL_WIN32_WINNT_WINBLUE 0x0603 // _WIN32_WINNT_WINBLUE from sdkddkver.h
#define _STL_WIN32_WINNT_WIN10 0x0A00 // _WIN32_WINNT_WIN10 from sdkddkver.h
#define _STL_WIN32_WINNT_VISTA 0x0600 // _WIN32_WINNT_VISTA from sdkddkver.h
#define _STL_WIN32_WINNT_WIN8 0x0602 // _WIN32_WINNT_WIN8 from sdkddkver.h
#define _STL_WIN32_WINNT_WIN10 0x0A00 // _WIN32_WINNT_WIN10 from sdkddkver.h

// Note that the STL DLL builds will set this to XP for ABI compatibility with VS2015 which supported XP.
#ifndef _STL_WIN32_WINNT
Expand Down
Loading