apple / swift-atomics

Low-level atomic operations for Swift
Apache License 2.0
1.08k stars 51 forks source link

Reorganize sources for future work #101

Closed lorentey closed 1 year ago

lorentey commented 1 year ago

This is a standalone PR for some of the code organization changes in #94. This makes it slightly easier to navigate the project, and prepares for the introduction of struct Atomic later.

Mostly NFC, although I did slip in a drive-by @inline(__always)@_transparent adjustment. This PR also embraces _pointerBitWidth in Swift 5.9+, instead of unwieldy and fragile arch disjunctions.

Checklist

lorentey commented 1 year ago

@swift-ci test