• Matt Stancliff's avatar
    Allow __powerpc__ to define HAVE_ATOMIC too · a3e7a665
    Matt Stancliff authored
    From mailing list post https://groups.google.com/forum/#!topic/redis-db/D3k7KmJmYgM
    
    In the file “config.h”, the definition HAVE_ATOMIC is used to indicate
    if an architecture on which redis is implemented supports atomic
    synchronization primitives.  Powerpc  supports atomic synchronization
    primitives, however, it is not listed as one of the architectures
    supported in config.h. This patch  adds the __powerpc__ to the list of
    architectures supporting these primitives. The improvement of redis
    due to the atomic synchronization on powerpc is significant,
    around 30% to 40%, over the default implementation using pthreads.
    
    This proposal adds __powerpc__ to the list of architectures designated
    to support atomic builtins.
    a3e7a665
config.h 6.12 KB