apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Reser <...@reser.org>
Subject Re: apr_atomic functions usage
Date Tue, 28 May 2013 04:57:45 GMT
On Mon, May 27, 2013 at 8:42 PM, kalyan sita <kalyansita22@gmail.com> wrote:
> I see that the below functions have specific assembly implementations for
> os32,ia32 architectures:
> apr_atomic_add32
> apr_atomic_sub32
> apr_atomic_inc32
> apr_atomic_dec32
> apr_atomic_set32
> apr_atomic_cas32
> apr_atomic_casptr
> apr_atomic_xchg32
> apr_atomic_xchgptr
> How frequently are these functions used.
> I am planning to write arm specific code for the above functions in arm.c
> file.
> Can anyone help me where to start ?

You really should direct this at the dev@apr.apache.org list since
it's not part of httpd (granted there's a lot of overlap between the

These are only used if the compiler doesn't provide the atomic builtins:

If HAVE_ATOMIC_BUILTINS is true in include/arch/unix/apr_private.h
then you don't need the ASM versions.

One of the Linux Kernel hackers (Jon Masters) has a blog post up about
ARM atomic operations:

View raw message