Comments (4)
Hi Matthew,
Sat, 8 Sep 2012 11:37:14 -0700 Matthew Wilson [email protected]:
The header says "All operations operate on unsigned AO_t, which is the natural word size, and usually unsigned long".
This should be refined, I think. AO_t is typically size_t which should be (normally) the same size of pointer.
Also, there could be atomic operations defined for other types (like char, short, int) on some platforms.
Does this mean it can't CAS a pointer, or that it can? The APR has apratomic_casptr (see http://apr.apache.org/docs/apr/trunk/group__apr__atomic.html), which works for me on 64-bit. But I'm looking at using this library instead for the atomic operations because of the memory barrier precision. So I'm just wondering whether this library will let me CAS pointers on 64-bit.
Yes, cast between a pointer type and AO_t is valid both on 32- and 64-bit targets.
Thanks again!
—
Reply to this email directly or view it on GitHub.
Regards,
Ivan
from libatomic_ops.
excellent; thanks
from libatomic_ops.
AO_compare_and_swap seems not to be implemented on msvc 32-bit. (tested with vs2010). Is it supposed to be?
from libatomic_ops.
oops, reopened the wrong one
from libatomic_ops.
Related Issues (20)
- How can I get libatomic_ops.a ? HOT 3
- coredump with '__atomic_fetch_add' function on aarch64 HOT 2
- [x86 gcc] Missing dx side effect in AO_compare_double_and_swap_double_full HOT 10
- SIGSEGV in test_malloc on Alpine linux/s390x HOT 12
- test_stack fail on linux/arm64 (clang) HOT 13
- FTBFS in the testsuite on riscv64 HOT 6
- Incorrect use of sizeof operator to verify alignment HOT 5
- Downstream libatomic_ops releases (Sep 2021) HOT 26
- Explore existing changes in forks (Nov 2021) HOT 3
- test_malloc abort on sparc HOT 3
- Downstream libatomic_ops releases (Aug 2022) HOT 18
- Outdated config.guess Files HOT 3
- Downstream libatomic_ops release (Mar 2023) HOT 24
- Undefined reference to AO_pt_lock on Ubuntu 22.04 when building with configure and clang-16 HOT 2
- test_atomic fail with 'Saw release store out of order' on ppc64 HOT 11
- test_stack fail on E2K in 64-bit mode HOT 11
- configure AC_FUNC_MMAP does not detect mmap on CheriBSD HOT 2
- Support protected mode of E2K HOT 1
- Downstream libatomic_ops v7.8.2 HOT 10
- Invalid instruction in test_stack on E2K-v5 in protected mode HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libatomic_ops.