On Mon, May 27, 2013 at 8:42 PM, kalyan sita <kalyansit...@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 d...@apr.apache.org list since
it's not part of httpd (granted there's a lot of overlap between the
projects).

These are only used if the compiler doesn't provide the atomic builtins:
http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/_005f_005fsync-Builtins.html#_005f_005fsync-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:
http://www.jonmasters.org/blog/2012/11/13/arm-atomic-operations/

Reply via email to