@@ -6728,17 +6728,8 @@ async fn func(y: *i32) void {
6728
6728
This builtin function atomically dereferences a pointer and returns the value.
6729
6729
</p>
6730
6730
<p>
6731
- {#syntax#}T{#endsyntax#} must be a pointer type, a {#syntax#}bool{#endsyntax#}, a float,
6732
- an integer whose bit count meets these requirements:
6733
- </p>
6734
- <ul>
6735
- <li>At least 8</li>
6736
- <li>At most the same as usize</li>
6737
- <li>Power of 2</li>
6738
- </ul> or an enum with a valid integer tag type.
6739
- <p>
6740
- TODO right now bool is not accepted. Also I think we could make non powers of 2 work fine, maybe
6741
- we can remove this restriction
6731
+ {#syntax#}T{#endsyntax#} must be a {#syntax#}bool{#endsyntax#}, a float,
6732
+ an integer or an enum.
6742
6733
</p>
6743
6734
{#header_close#}
6744
6735
{#header_open|@atomicRmw#}
@@ -6747,17 +6738,8 @@ async fn func(y: *i32) void {
6747
6738
This builtin function atomically modifies memory and then returns the previous value.
6748
6739
</p>
6749
6740
<p>
6750
- {#syntax#}T{#endsyntax#} must be a pointer type, a {#syntax#}bool{#endsyntax#},
6751
- or an integer whose bit count meets these requirements:
6752
- </p>
6753
- <ul>
6754
- <li>At least 8</li>
6755
- <li>At most the same as usize</li>
6756
- <li>Power of 2</li>
6757
- </ul>
6758
- <p>
6759
- TODO right now bool is not accepted. Also I think we could make non powers of 2 work fine, maybe
6760
- we can remove this restriction
6741
+ {#syntax#}T{#endsyntax#} must be a {#syntax#}bool{#endsyntax#}, a float,
6742
+ an integer or an enum.
6761
6743
</p>
6762
6744
<p>
6763
6745
Supported operations:
@@ -6782,17 +6764,8 @@ async fn func(y: *i32) void {
6782
6764
This builtin function atomically stores a value.
6783
6765
</p>
6784
6766
<p>
6785
- {#syntax#}T{#endsyntax#} must be a pointer type, a {#syntax#}bool{#endsyntax#}, a float,
6786
- an integer whose bit count meets these requirements:
6787
- </p>
6788
- <ul>
6789
- <li>At least 8</li>
6790
- <li>At most the same as usize</li>
6791
- <li>Power of 2</li>
6792
- </ul> or an enum with a valid integer tag type.
6793
- <p>
6794
- TODO right now bool is not accepted. Also I think we could make non powers of 2 work fine, maybe
6795
- we can remove this restriction
6767
+ {#syntax#}T{#endsyntax#} must be a {#syntax#}bool{#endsyntax#}, a float,
6768
+ an integer or an enum.
6796
6769
</p>
6797
6770
{#header_close#}
6798
6771
{#header_open|@bitCast#}
@@ -7108,7 +7081,8 @@ fn cmpxchgStrongButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_v
7108
7081
more efficiently in machine instructions.
7109
7082
</p>
7110
7083
<p>
7111
- {#syntax#}AtomicOrder{#endsyntax#} can be found with {#syntax#}@import("builtin").AtomicOrder{#endsyntax#}.
7084
+ {#syntax#}T{#endsyntax#} must be a {#syntax#}bool{#endsyntax#}, a float,
7085
+ an integer or an enum.
7112
7086
</p>
7113
7087
<p>{#syntax#}@TypeOf(ptr).alignment{#endsyntax#} must be {#syntax#}>= @sizeOf(T).{#endsyntax#}</p>
7114
7088
{#see_also|Compile Variables|cmpxchgWeak#}
@@ -7136,7 +7110,8 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
7136
7110
However if you need a stronger guarantee, use {#link|@cmpxchgStrong#}.
7137
7111
</p>
7138
7112
<p>
7139
- {#syntax#}AtomicOrder{#endsyntax#} can be found with {#syntax#}@import("builtin").AtomicOrder{#endsyntax#}.
7113
+ {#syntax#}T{#endsyntax#} must be a {#syntax#}bool{#endsyntax#}, a float,
7114
+ an integer or an enum.
7140
7115
</p>
7141
7116
<p>{#syntax#}@TypeOf(ptr).alignment{#endsyntax#} must be {#syntax#}>= @sizeOf(T).{#endsyntax#}</p>
7142
7117
{#see_also|Compile Variables|cmpxchgStrong#}
0 commit comments