-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [1.1.0] - 2024-04-01 - Add implementation to support implicit and explicit atomic operations using the `_Interlocked` API - Implementation has id `patomic_id_MSVC`, kind `patomic_kind_ASM`, and supports up to `128` bit operations --------- Signed-off-by: doodspav <[email protected]>
- Loading branch information
Showing
67 changed files
with
10,280 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (c) doodspav. | ||
# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception | ||
|
||
# add all subdirectories | ||
add_subdirectory(ops) | ||
|
||
# add directory files to target | ||
target_sources(${target_name} PRIVATE | ||
msvc.h | ||
msvc.c | ||
ops.h | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Visual C++ 4.1 (_MSC_VER == 1010) | ||
|
||
Atomic: | ||
|
||
- `CompareExchange` | ||
- `Decrement` | ||
- `Exchange` | ||
- `ExchangeAdd` | ||
- `Increment` | ||
|
||
# Visual C++ 4.2 (_MSC_VER == 1020) | ||
|
||
Nothing. | ||
|
||
# Visual Studio 97 (_MSC_VER == 1100) | ||
|
||
Nothing. | ||
|
||
# Visual Studio 6.0 (_MSC_VER == 1200) | ||
|
||
Nothing. | ||
|
||
# Visual Studio .NET 2002 (_MSC_VER == 1300) | ||
|
||
Atomic: | ||
|
||
- `And` | ||
- `Or` | ||
- `Xor` | ||
|
||
Other: | ||
|
||
- `_ReadWriteBarrier` | ||
- `_WriteBarrier` | ||
|
||
# Visual Studio .NET 2003 (_MSC_VER == 1310) | ||
|
||
Nothing. | ||
|
||
# Visual Studio 2005 | ||
|
||
TODO: (GHI #49) | ||
|
||
# Visual Studio 2008 | ||
|
||
TODO: (GHI #49) | ||
|
||
# Visual Studio 2010 | ||
|
||
TODO: (GHI #49) | ||
|
||
# Visual Studio 2012 | ||
|
||
TODO: (GHI #49) | ||
|
||
|
||
|
||
# Later | ||
|
||
Atomic: | ||
|
||
- `_InterlockedAdd` | ||
- `_InterlockedAdd64` | ||
- `_InterlockedAnd8` | ||
- `_InterlockedAnd16` | ||
- `_InterlockedAnd64` | ||
- `_interlockedbittestandreset` | ||
- `_interlockedbittestandreset64` | ||
- `_interlockedbittestandset` | ||
- `_interlockedbittestandset64` | ||
- `_InterlockedCompareExchange8` | ||
- `_InterlockedCompareExchange16` | ||
- `_InterlockedCompareExchange64` | ||
- `_InterlockedCompareExchange128` | ||
- `_InterlockedCompareExchangePointer` | ||
- `_InterlockedDecrement16` | ||
- `_InterlockedDecrement64` | ||
- `_InterlockedExchange8` | ||
- `_InterlockedExchange16` | ||
- `_InterlockedExchange64` | ||
- `_InterlockedExchangeAdd8` | ||
- `_InterlockedExchangeAdd16` | ||
- `_InterlockedExchangeAdd64` | ||
- `_InterlockedExchangePointer` | ||
- `_InterlockedIncrement16` | ||
- `_InterlockedIncrement64` | ||
- `_InterlockedOr8` | ||
- `_InterlockedOr16` | ||
- `_InterlockedOr64` | ||
- `_InterlockedXor8` | ||
- `_InterlockedXor16` | ||
- `_InterlockedXor64` | ||
|
||
Other: | ||
|
||
- `__writeeflags` | ||
- `__readeflags` | ||
- `__cpuid` | ||
- `__cpuidex` | ||
- `_ReadBarrier` |
Oops, something went wrong.