#ifndef WASM_ATOMICOP_UTILS_H
#define WASM_ATOMICOP_UTILS_H
#include "test/cctest/cctest.h"
#include "test/cctest/wasm/wasm-run-utils.h"
#include "test/common/value-helper.h"
namespace v8 {
namespace internal {
namespace wasm {
#define WASM_ATOMIC_OPERATION_LIST(V) …
Uint64BinOp;
Uint32BinOp;
Uint16BinOp;
Uint8BinOp;
template <typename T>
T Add(T a, T b) { … }
template <typename T>
T Sub(T a, T b) { … }
template <typename T>
T And(T a, T b) { … }
template <typename T>
T Or(T a, T b) { … }
template <typename T>
T Xor(T a, T b) { … }
template <typename T>
T Exchange(T a, T b) { … }
template <typename T>
T CompareExchange(T initial, T a, T b) { … }
}
}
}
#endif