Simple way to get declarations for the used GCC intrinsics.

master
Nicky 2015-04-21 00:35:12 +02:00
parent 49283dd735
commit bc9ca3d813
1 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,15 @@
#include "stdtypes.h"
#ifdef ND_DECL_GCC_INTRINSICS
U32 __sync_val_compare_and_swap( volatile U32*, U32, U32 );
void* __sync_val_compare_and_swap( void volatile * aLoc, void *aCmp, void *aVal );
void __sync_add_and_fetch( volatile U32* aLoc, U32 );
U32 __sync_sub_and_fetch( volatile U32 *aLoc, U32 );
#endif
namespace nd
{
namespace intrin