[haiku-commits] Re: haiku: hrev46132 - in src/system/libroot/os: . arch/arm

  • From: Adrien Destugues <pulkomandy@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 29 Sep 2013 20:17:01 +0200

On 2013-09-29 at 19:47:42 [+0200], revol@xxxxxxx wrote:
> hrev46132 adds 1 changeset to branch 'master'
> old head: 48ea3fca49c8abfdf80bc242575a71a8518d9333
> new head: 75453edc01ab20bce7bf2a264da91433bb1b3576
> overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=75453ed+%5E48ea3fc
> 
> ----------------------------------------------------------------------------
> 
> 75453ed: ARM: Add a C version of __sync_fetch_and_add_4()
>   
>   It just calls atomic_add().
>   
>   No need for the asm version, it doesn't need to depend on defines.

This should be provided by the compiler, but they changed the function set to 
follow C++11. They now use __atomic_* family of functions, and this has 
support for ARMv5 and up.

http://fedoraproject.org/wiki/Architectures/ARM/GCCBuiltInAtomicOperations

-- 
Adrien.

Other related posts: