From e68fee39847712f9316628e6efe8daa8fc13a5a5 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Fri, 2 Aug 2019 18:53:56 -0400
Subject: [PATCH] docs: add atomicrmw operations list
---
doc/langref.html.in | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/doc/langref.html.in b/doc/langref.html.in
index b5fe464c35..ac381e00b2 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -6330,6 +6330,22 @@ comptime {
TODO right now bool is not accepted. Also I think we could make non powers of 2 work fine, maybe
we can remove this restriction
+
+ Supported operations:
+
+
+ - {#syntax#}.Xchg{#endsyntax#} - stores the operand unmodified.
+ - {#syntax#}.Add{#endsyntax#} - for integers, twos complement wraparound addition.
+ Also supports {#link|Floats#}.
+ - {#syntax#}.Sub{#endsyntax#} - for integers, twos complement wraparound subtraction.
+ Also supports {#link|Floats#}.
+ - {#syntax#}.And{#endsyntax#} - bitwise and
+ - {#syntax#}.Nand{#endsyntax#} - bitwise nand
+ - {#syntax#}.Or{#endsyntax#} - bitwise or
+ - {#syntax#}.Xor{#endsyntax#} - bitwise xor
+ - {#syntax#}.Max{#endsyntax#} - stores the operand if it is larger. Supports integers and floats.
+ - {#syntax#}.Min{#endsyntax#} - stores the operand if it is smaller. Supports integers and floats.
+
{#header_close#}
{#header_open|@bitCast#}
{#syntax#}@bitCast(comptime DestType: type, value: var) DestType{#endsyntax#}