mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
runtime: add critical-section fallbacks for atomic And and Or
This commit is contained in:
@@ -145,6 +145,8 @@ func __atomic_{{$opname}}_fetch_{{$bytes}}(ptr *{{$type}}, value {{$type}}, orde
|
||||
{{template "cas" .}}
|
||||
{{template "swap" .}}
|
||||
{{template "rmw" (tuple "add" . false "new = old + value")}}
|
||||
{{template "rmw" (tuple "and" . false "new = old & value")}}
|
||||
{{template "rmw" (tuple "or" . false "new = old | value")}}
|
||||
|
||||
{{- end}}
|
||||
{{template "atomics" 2 -}}
|
||||
|
||||
Reference in New Issue
Block a user