__sync Builtins (Using the GNU Compiler Collection (GCC))
gcc.gnu.org · 987 words · saved by 1 readers
__sync Builtins (Using the GNU Compiler Collection (GCC))
7.9.2 Legacy __sync Built-in Functions for Atomic Memory Access ¶ The following built-in functions are intended to be compatible with those described in the Intel Itanium Processor-specific Application Binary Interface, section 7.4. As such, they depart from normal GCC practice by not using the ‘__builtin_’ prefix and also by being overloaded so that they work on multiple types. The definition given in the Intel documentation allows only for the use of the types int, long, long long or their unsigned counterparts. GCC allows any scalar type that is 1, 2, 4 or 8 bytes in size other than the…
related reading
- std::sync::atomic - Rustdoc.rust-lang.org
- Compare-and-swap - Wikipediaen.wikipedia.org
- C++11 Memory Modelpeople.cs.pitt.edu
- sync package - sync - Go Packagespkg.go.dev
- Linux kernel memory barriers — The Linux Kernel documentationdocs.kernel.org
- Memory Barriers Are Like Source Control Operationspreshing.com
- The Go Memory Model - The Go Programming Languagego.dev
- Who ordered memory fences on an x86? | Bartosz Milewski's Programming Cafebartoszmilewski.com
- The Aggregate Magic Algorithmsaggregate.org
- Implementing a GPU's Programming Model on a CPUlitherum.blogspot.com
- CUDA C++ Programming Guide (Legacy) — CUDA C++ Programming Guidedocs.nvidia.com
- GitHub - adam-maj/tiny-gpu: A minimal GPU design in Verilog to learn how GPUs work from the ground up · GitHubgithub.com