Clang doesn't support the Lock Prefix. How shall I workaround?
Assume this code:

      static inline void inc(int64_t* atomic)
      {
        __asm__ __volatile__
        (
          "lock incq %0\n"
            : "=m" (*atomic)
            : "m" (*atomic)
        );
      }

The Clang compiler doesn't support the lock prefix (yet?). What shall I do now?
Clang doesn't support the Lock Prefix. How shall I workaround?
===

Assume this code:

      static inline void inc(int64_t* atomic)
      {
        __asm__ __volatile__
        (
          "lock incq %0\n"
            : "=m" (*atomic)
            : "m" (*atomic)
        );
      }

The Clang compiler doesn't support the lock prefix (yet?). What shall I do now?