blob: 213ccf4e7f321590284e2f4a66a499b9e857d74f [file] [log] [blame]
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
#if defined(TARGET_OS_MACOS)
#include "vm/atomic.h"
namespace dart {
uintptr_t AtomicOperations::FetchAndIncrement(uintptr_t* p) {
return __sync_fetch_and_add(p, 1);
}
} // namespace dart
#endif // defined(TARGET_OS_MACOS)