From 8bb1e0444951b7b83254277c52534c7ab58fd135 Mon Sep 17 00:00:00 2001 From: Vexu Date: Tue, 17 Dec 2019 00:28:17 +0200 Subject: [PATCH] support some atomic operations with floats --- doc/langref.html.in | 6 +++--- src/codegen.cpp | 12 +++++++----- src/ir.cpp | 20 +++++++++++++++++++- test/compile_errors.zig | 20 ++++++++++++++++++++ test/stage1/behavior/atomics.zig | 15 +++++++++++++++ 5 files changed, 64 insertions(+), 9 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 5894810555..5536d2492f 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -6695,7 +6695,7 @@ async fn func(y: *i32) void { This builtin function atomically dereferences a pointer and returns the value.

- {#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: