Karoy Lorentey
b58a624375
[manifest] Fix warnings in 5.3 toolchains
2021-08-30 12:32:25 -07:00
Karoy Lorentey
46a6952359
Merge pull request #32 from lorentey/prepping-for-1.0
...
[NFC] Update copyright notices
1.0.0
2021-08-27 18:33:04 -07:00
Karoy Lorentey
38049a4a30
Clarify source stability
2021-08-27 17:31:52 -07:00
Karoy Lorentey
299d1251f1
Regenerate gybbed sources
2021-08-27 17:19:56 -07:00
Karoy Lorentey
eb7e1335f8
[NFC] Update copyright notices
2021-08-27 17:13:03 -07:00
Karoy Lorentey
02183c16b9
Merge pull request #31 from lorentey/prepping-for-1.0
...
Declare Atomics source stable and describe what we consider public API
2021-08-27 15:11:56 -07:00
Karoy Lorentey
d8a2baf4d5
Add PR and issue templates
2021-08-27 12:44:21 -07:00
Karoy Lorentey
83ae389117
Declare Atomics source stable and describe what we consider public API
2021-08-27 12:28:55 -07:00
Karoy Lorentey
2c8a002c6b
Merge pull request #30 from lorentey/prepping-for-1.0
...
Bump required toolchain version to 5.3
2021-08-27 12:26:44 -07:00
Karoy Lorentey
f659ecc1bb
Bump required toolchain version to 5.3
...
Resolves issue #22 .
2021-08-27 11:34:41 -07:00
Karoy Lorentey
9ded028e0d
Merge pull request #25 from compnerd/cmake
...
build: add a CMake based build for Atomics
2021-08-18 19:04:26 -07:00
Saleem Abdulrasool
907a24f5f2
Add the ability to run tests via CMake
...
This adds the ability to run the test suite via CMake + Ninja.
2021-04-30 09:13:39 -07:00
Saleem Abdulrasool
67bbf646d8
build: add a CMake based build for Atomics
...
This adds an initial implementation of a CMake based build system.
2021-04-30 08:32:45 -07:00
Karoy Lorentey
3f940c4519
Merge pull request #29 from compnerd/xctest-manifest
...
Tests: add XCTest manifest for non-SPM based builds
2021-04-29 19:47:48 -07:00
Karoy Lorentey
f8d5956ff9
Merge pull request #28 from compnerd/swap
...
gitignore: ignore vim swap files
2021-04-29 18:33:33 -07:00
Saleem Abdulrasool
c711547ac1
Tests: add XCTest manifest for non-SPM based builds
...
This allows for testing without SPM on non-Darwin targets. We
explicitly exclude the manifest in SPM based builds because we would
like to use the automatic test discovery functionality from SPM.
2021-04-29 14:43:21 -07:00
Saleem Abdulrasool
a2e04c3c60
gitignore: ignore vim swap files
2021-04-29 14:42:54 -07:00
Karoy Lorentey
c9ab2e4cb0
Merge pull request #26 from compnerd/dword
...
_AtomicShims: simplify double word setup
2021-04-26 18:28:03 -07:00
Saleem Abdulrasool
7294d12edd
_AtomicShims: simplify double word setup
...
Unify the double word path by using a bit more macro expansion. The two
differences between 32-bit and 64-bit is:
- `__uint128_t` vs `uint64_t`
- 64-bit shifts vs 32-bit shifts
We can simply use a macro to expand out the underlying C type rather
than bifurcating the definitions. For the second difference, we can
simply use the `__INTPTR_WIDTH__` for the shifts. We explicitly use
macros for the type-definitions to hide the typedef from Swift.
Use the C11 aggregate constructor to further reduce the code.
2021-04-23 08:24:29 -07:00
Karoy Lorentey
a27aa0d6d1
Merge pull request #24 from dfunckt/main
...
Mark the additional Bool methods as public
2021-04-21 23:18:30 -07:00
Akis Kesoglou
7e101a5653
Mark the additional Bool methods as public
...
…inline with the static methods on AtomicStorage and AtomicIntegerStorage.
2021-03-14 19:20:38 +02:00
Karoy Lorentey
3e95ba32cd
Merge pull request #20 from lorentey/watchOS-warning-fix
...
DoubleWord._readersBitWidth: Switch to using Int.bitWidth
0.0.3
2021-01-27 13:32:19 -08:00
Karoy Lorentey
09ddcdd88d
DoubleWord._readersBitWidth: Switch to using Int.bitWidth
...
This fixes a spurious warning about `arch(arm64_32)` emitted by swift.org compiler builds.
Resolves #19
2021-01-26 17:38:10 -08:00
Karoy Lorentey
df9f811f19
[shims] Remove unnecessary #include
2020-11-18 16:41:58 -08:00
Karoy Lorentey
6535403113
Merge pull request #17 from lorentey/support-5.2
...
Work around some compiler issues in Swift 5.2
2020-11-13 18:32:42 -08:00
Karoy Lorentey
47c88d732f
Work around some compiler issues in Swift 5.2
...
This allows the package to be built with the Swift 5.2.4 toolchain.
Resolves #15
2020-11-09 13:52:03 -08:00
Karoy Lorentey
ccce007d5d
Merge pull request #14 from jpsim/patch-1
...
Fix typo in AtomicMemoryOrderings.swift docstring
2020-10-22 12:43:38 -07:00
JP Simard
55a062c4a8
Fix typo in AtomicMemoryOrderings.swift docstring
2020-10-22 06:03:22 -07:00
Karoy Lorentey
26e346cd64
Merge pull request #12 from lorentey/restore-linux-support
...
Fix Linux compatibility
0.0.2
2020-10-12 12:26:59 -07:00
Karoy Lorentey
7658766e61
Remove LinuxMain.swift
...
This package requires --enable-test-discovery.
2020-10-12 12:08:04 -07:00
Karoy Lorentey
230c1aa676
Add note on portability of double-wide atomics
2020-10-09 17:18:19 -07:00
Karoy Lorentey
ed324ec42e
generate-sources: Don’t invoke —generate-linuxmain
...
SPM’s --generate-linuxmain feature doesn’t support conditionally compiled tests.
To run tests on non-Darwin platforms, use `swift test --enable-test-discovery`.
2020-10-09 14:53:02 -07:00
Karoy Lorentey
9ad914d118
Make double-wide atomics conditional on platform support
...
Linux on x86_64 unfortunately disables support for cmpxchg16 by default, making double-wide atomic operations fall back to using locks. We cannot currently override this on the package level, so stop providing double-wide atomics in this configuration by default.
To enable codegen support for double-wide atomics on Linux/x86_64, compile the package with `-Xcc -mcx16 -Xswiftc -DENABLE_DOUBLEWIDE_ATOMICS`.
2020-10-09 14:52:33 -07:00
Karoy Lorentey
56753d183f
generate-sources: Adjust mktemp invocation for portability
2020-10-09 14:48:50 -07:00
Karoy Lorentey
34caa6fbd5
[test] Split basic tests into 25 separate test cases
...
This prevents an “unable to typecheck in reasonable time” error when compiling the test registry.
1612 tests under one test case is currently too many for swift-corelibs-xctest.
While we’re here, add explicit test cases for UnsafeRawPointer and Optional<UnsafeRawPointer>.
2020-10-09 14:48:50 -07:00
Karoy Lorentey
dc49369e96
Merge pull request #11 from apple/revert-9-fix-implicit-runtime-dependency
...
Revert "[shims] Make retain_n/release_n shims header-only"
2020-10-07 23:58:46 -07:00
Karoy Lorentey
6e09389a3d
Revert "[shims] Make retain_n/release_n shims header-only"
2020-10-07 23:57:38 -07:00
Karoy Lorentey
c6e526aa42
Merge pull request #9 from lorentey/fix-implicit-runtime-dependency
...
[shims] Make retain_n/release_n shims header-only
2020-10-06 18:54:33 -07:00
Karoy Lorentey
40bd3bac4f
[shims] Force-inline new shims
2020-10-06 18:39:11 -07:00
Karoy Lorentey
45fa32a922
[shims] Make retain_n/release_n shims header-only.
...
Resolves issue #8 .
2020-10-06 18:00:10 -07:00
Karoy Lorentey
c6b1ed76a2
Merge pull request #6 from e28eta/patch-1
...
Fix succesOrdering typo in documentation
2020-10-03 17:45:12 -07:00
Daniel Jackson
42691f8636
Commit changes from running generate-sources
2020-10-02 16:29:09 -07:00
Daniel Jackson
778e62b8c6
Fix successOrdering typo in documentation, in the gyb file
2020-10-02 16:28:33 -07:00
Karoy Lorentey
f585014007
Merge pull request #7 from e28eta/patch-2
...
Update documentation typo: double ‘the’
2020-10-02 15:00:01 -07:00
Dan Jackson
ad1fb15167
Update documentation typo: double ‘the’
2020-10-02 09:28:57 -07:00
Karoy Lorentey
d07c2a5c92
Merge pull request #4 from lorentey/regenerate-test-registry
...
Register all tests
2020-10-01 18:34:17 -07:00
Karoy Lorentey
9c8dc27457
Merge pull request #5 from lorentey/readme-edits
...
Minor README updates
2020-10-01 18:33:43 -07:00
Karoy Lorentey
432e5bd9fe
Minor fixes
2020-10-01 18:32:26 -07:00
Karoy Lorentey
4fb7f05a27
Register all tests
2020-10-01 18:25:07 -07:00
Karoy Lorentey
b97750eb18
Initial commit.
0.0.1
2020-10-01 16:57:36 -07:00