Skip to content
  • Henrik Gramner's avatar
    gcc: Enable __sync_fetch_and_add() on x86-64 · 17378b20
    Henrik Gramner authored and Anton Mitrofanov's avatar Anton Mitrofanov committed
    It was previously only enabled on 32-bit x86 for no reason, so 64-bit
    systems had to use a mutex instead of a simple `lock xadd` instruction.
    
    Note that this code is only used in some very specific configurations
    involving sliced threads.
    17378b20