|
2 | 2 | // |
3 | 3 | // This source file is part of the Swift Atomics open source project |
4 | 4 | // |
5 | | -// Copyright (c) 2020 Apple Inc. and the Swift project authors |
| 5 | +// Copyright (c) 2020-2021 Apple Inc. and the Swift project authors |
6 | 6 | // Licensed under Apache License v2.0 with Runtime Library Exception |
7 | 7 | // |
8 | 8 | // See https://swift.org/LICENSE.txt for license information |
|
20 | 20 | import _AtomicsShims |
21 | 21 |
|
22 | 22 | extension Int: AtomicValue { |
| 23 | + @frozen |
23 | 24 | public struct AtomicRepresentation { |
24 | 25 | public typealias Value = Int |
25 | 26 |
|
@@ -512,6 +513,7 @@ extension Int.AtomicRepresentation: AtomicIntegerStorage { |
512 | 513 | } |
513 | 514 |
|
514 | 515 | extension Int64: AtomicValue { |
| 516 | + @frozen |
515 | 517 | public struct AtomicRepresentation { |
516 | 518 | public typealias Value = Int64 |
517 | 519 |
|
@@ -1004,6 +1006,7 @@ extension Int64.AtomicRepresentation: AtomicIntegerStorage { |
1004 | 1006 | } |
1005 | 1007 |
|
1006 | 1008 | extension Int32: AtomicValue { |
| 1009 | + @frozen |
1007 | 1010 | public struct AtomicRepresentation { |
1008 | 1011 | public typealias Value = Int32 |
1009 | 1012 |
|
@@ -1496,6 +1499,7 @@ extension Int32.AtomicRepresentation: AtomicIntegerStorage { |
1496 | 1499 | } |
1497 | 1500 |
|
1498 | 1501 | extension Int16: AtomicValue { |
| 1502 | + @frozen |
1499 | 1503 | public struct AtomicRepresentation { |
1500 | 1504 | public typealias Value = Int16 |
1501 | 1505 |
|
@@ -1988,6 +1992,7 @@ extension Int16.AtomicRepresentation: AtomicIntegerStorage { |
1988 | 1992 | } |
1989 | 1993 |
|
1990 | 1994 | extension Int8: AtomicValue { |
| 1995 | + @frozen |
1991 | 1996 | public struct AtomicRepresentation { |
1992 | 1997 | public typealias Value = Int8 |
1993 | 1998 |
|
@@ -2480,6 +2485,7 @@ extension Int8.AtomicRepresentation: AtomicIntegerStorage { |
2480 | 2485 | } |
2481 | 2486 |
|
2482 | 2487 | extension UInt: AtomicValue { |
| 2488 | + @frozen |
2483 | 2489 | public struct AtomicRepresentation { |
2484 | 2490 | public typealias Value = UInt |
2485 | 2491 |
|
@@ -2972,6 +2978,7 @@ extension UInt.AtomicRepresentation: AtomicIntegerStorage { |
2972 | 2978 | } |
2973 | 2979 |
|
2974 | 2980 | extension UInt64: AtomicValue { |
| 2981 | + @frozen |
2975 | 2982 | public struct AtomicRepresentation { |
2976 | 2983 | public typealias Value = UInt64 |
2977 | 2984 |
|
@@ -3464,6 +3471,7 @@ extension UInt64.AtomicRepresentation: AtomicIntegerStorage { |
3464 | 3471 | } |
3465 | 3472 |
|
3466 | 3473 | extension UInt32: AtomicValue { |
| 3474 | + @frozen |
3467 | 3475 | public struct AtomicRepresentation { |
3468 | 3476 | public typealias Value = UInt32 |
3469 | 3477 |
|
@@ -3956,6 +3964,7 @@ extension UInt32.AtomicRepresentation: AtomicIntegerStorage { |
3956 | 3964 | } |
3957 | 3965 |
|
3958 | 3966 | extension UInt16: AtomicValue { |
| 3967 | + @frozen |
3959 | 3968 | public struct AtomicRepresentation { |
3960 | 3969 | public typealias Value = UInt16 |
3961 | 3970 |
|
@@ -4448,6 +4457,7 @@ extension UInt16.AtomicRepresentation: AtomicIntegerStorage { |
4448 | 4457 | } |
4449 | 4458 |
|
4450 | 4459 | extension UInt8: AtomicValue { |
| 4460 | + @frozen |
4451 | 4461 | public struct AtomicRepresentation { |
4452 | 4462 | public typealias Value = UInt8 |
4453 | 4463 |
|
@@ -4943,6 +4953,7 @@ extension UInt8.AtomicRepresentation: AtomicIntegerStorage { |
4943 | 4953 | // on Linux distributions, and we cannot currently enable them automatically. |
4944 | 4954 | #if !(os(Linux) && arch(x86_64)) || ENABLE_DOUBLEWIDE_ATOMICS |
4945 | 4955 | extension DoubleWord: AtomicValue { |
| 4956 | + @frozen |
4946 | 4957 | public struct AtomicRepresentation { |
4947 | 4958 | public typealias Value = DoubleWord |
4948 | 4959 |
|
|
0 commit comments