|
21 | 21 | #if ATOMICS_NATIVE_BUILTINS |
22 | 22 | import Builtin |
23 | 23 |
|
24 | | -#if arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32) |
| 24 | +#if (compiler(>=5.9) && _pointerBitWidth(_32)) || (compiler(<5.9) && (arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32))) |
25 | 25 | @frozen |
26 | 26 | @_alignment(8) |
27 | 27 | public struct DoubleWord { |
@@ -2150,7 +2150,7 @@ extension UnsafeMutablePointer where Pointee == Int64 { |
2150 | 2150 | } |
2151 | 2151 | } |
2152 | 2152 |
|
2153 | | -#if arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32) |
| 2153 | +#if (compiler(>=5.9) && _pointerBitWidth(_32)) || (compiler(<5.9) && (arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32))) |
2154 | 2154 | extension UnsafeMutablePointer where Pointee == Int { |
2155 | 2155 | /// Atomically loads a word starting at this address with the specified |
2156 | 2156 | /// memory ordering. |
@@ -2663,7 +2663,7 @@ extension UnsafeMutablePointer where Pointee == Int { |
2663 | 2663 | } |
2664 | 2664 | } |
2665 | 2665 |
|
2666 | | -#else /* arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32) */ |
| 2666 | +#else /* (compiler(>=5.9) && _pointerBitWidth(_32)) || (compiler(<5.9) && (arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32))) */ |
2667 | 2667 | extension UnsafeMutablePointer where Pointee == Int { |
2668 | 2668 | /// Atomically loads a word starting at this address with the specified |
2669 | 2669 | /// memory ordering. |
@@ -3175,8 +3175,8 @@ extension UnsafeMutablePointer where Pointee == Int { |
3175 | 3175 | } |
3176 | 3176 | } |
3177 | 3177 | } |
3178 | | -#endif /* arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32) */ |
3179 | | -#if arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32) |
| 3178 | +#endif /* (compiler(>=5.9) && _pointerBitWidth(_32)) || (compiler(<5.9) && (arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32))) */ |
| 3179 | +#if (compiler(>=5.9) && _pointerBitWidth(_32)) || (compiler(<5.9) && (arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32))) |
3180 | 3180 | extension UnsafeMutablePointer where Pointee == DoubleWord { |
3181 | 3181 | /// Atomically loads a word starting at this address with the specified |
3182 | 3182 | /// memory ordering. |
@@ -3493,7 +3493,7 @@ extension UnsafeMutablePointer where Pointee == DoubleWord { |
3493 | 3493 |
|
3494 | 3494 | } |
3495 | 3495 |
|
3496 | | -#else /* arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32) */ |
| 3496 | +#else /* (compiler(>=5.9) && _pointerBitWidth(_32)) || (compiler(<5.9) && (arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32))) */ |
3497 | 3497 | extension UnsafeMutablePointer where Pointee == DoubleWord { |
3498 | 3498 | /// Atomically loads a word starting at this address with the specified |
3499 | 3499 | /// memory ordering. |
@@ -3809,5 +3809,5 @@ extension UnsafeMutablePointer where Pointee == DoubleWord { |
3809 | 3809 | } |
3810 | 3810 |
|
3811 | 3811 | } |
3812 | | -#endif /* arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32) */ |
| 3812 | +#endif /* (compiler(>=5.9) && _pointerBitWidth(_32)) || (compiler(<5.9) && (arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32))) */ |
3813 | 3813 | #endif // ATOMICS_NATIVE_BUILTINS |
0 commit comments