diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-12-30 19:19:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-30 19:19:05 -0500 |
| commit | 73e535e1125d76bcd4e85123defea8b76412ab09 (patch) | |
| tree | e347bc78a7ea39a2009b490e3be97074d05f9fcb /doc | |
| parent | cbfd66f68a5a390abcf99e8cc6923d056ee1e4fa (diff) | |
| parent | 2252951066f772ac6b77ab183ad3bc074ae8f09f (diff) | |
| download | zig-73e535e1125d76bcd4e85123defea8b76412ab09.tar.gz zig-73e535e1125d76bcd4e85123defea8b76412ab09.zip | |
Merge pull request #3683 from Vexu/atomic-float
Support floats with some atomic operations
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index d1814ad9a3..3be3131843 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -6699,7 +6699,7 @@ async fn func(y: *i32) void { This builtin function atomically dereferences a pointer and returns the value. </p> <p> - {#syntax#}T{#endsyntax#} must be a pointer type, a {#syntax#}bool{#endsyntax#} + {#syntax#}T{#endsyntax#} must be a pointer type, a {#syntax#}bool{#endsyntax#}, a float, an integer whose bit count meets these requirements: </p> <ul> @@ -6734,7 +6734,7 @@ async fn func(y: *i32) void { Supported operations: </p> <ul> - <li>{#syntax#}.Xchg{#endsyntax#} - stores the operand unmodified.</li> + <li>{#syntax#}.Xchg{#endsyntax#} - stores the operand unmodified. Supports enums, integers and floats.</li> <li>{#syntax#}.Add{#endsyntax#} - for integers, twos complement wraparound addition. Also supports {#link|Floats#}.</li> <li>{#syntax#}.Sub{#endsyntax#} - for integers, twos complement wraparound subtraction. @@ -6753,7 +6753,7 @@ async fn func(y: *i32) void { This builtin function atomically stores a value. </p> <p> - {#syntax#}T{#endsyntax#} must be a pointer type, a {#syntax#}bool{#endsyntax#} + {#syntax#}T{#endsyntax#} must be a pointer type, a {#syntax#}bool{#endsyntax#}, a float, an integer whose bit count meets these requirements: </p> <ul> |
