diff options
| author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2023-04-21 12:24:53 +0000 |
|---|---|---|
| committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2023-04-21 12:24:53 +0000 |
| commit | 3f017bc192a3f7f1d9a30b6b06fa9657baa7e087 (patch) | |
| tree | b669398f4ac8c38c5a8355e475ffdcf8269c3123 /atomic/unix/builtins.c | |
| parent | 135debc4acdb7e6d09efc77eda2f3164b287f680 (diff) | |
| download | libapr-3f017bc192a3f7f1d9a30b6b06fa9657baa7e087.tar.gz | |
atomics: Disentangle 32bit and 64bit atomics configuration.
Regardless of --enable-nonportable-atomics setting, 64bit atomic builtins are
disabled for 32bit CPUs/systems (using the generic/mutex implementation), until
we figure out how to properly align apr_uint64_t (at least i[56]86 CPUs which
could work with 64bit builtins actually don't if the data is not 64bit aligned,
assuming the same for other 32bit CPUs is safer).
One can --enable-nonportable-atomics=upto32bit to explicitely enable 32 bit
builtins only (if available in the first place).
Using --enable-nonportable-atomics=no still disables both 64bit and 32bit
builtins, while =yes enables the ones known to exist AND work only (i.e. both,
32bit or none).
Rename NEED_ATOMICS_GENERIC64 to USE_ATOMICS_GENERIC64 for consitency with
32bit atomics.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1909321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic/unix/builtins.c')
0 files changed, 0 insertions, 0 deletions
