OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_RUNTIME_RUNTIME_ATOMICS_X64_H_ |
| 6 #define V8_RUNTIME_RUNTIME_ATOMICS_X64_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 namespace v8 { |
| 11 namespace internal { |
| 12 namespace atomics { |
| 13 |
| 14 uint8_t LoadSeqCst(uint8_t* p); |
| 15 int8_t LoadSeqCst(int8_t* p); |
| 16 uint16_t LoadSeqCst(uint16_t* p); |
| 17 int16_t LoadSeqCst(int16_t* p); |
| 18 uint32_t LoadSeqCst(uint32_t* p); |
| 19 int32_t LoadSeqCst(int32_t* p); |
| 20 void StoreSeqCst(uint8_t* p, uint8_t value); |
| 21 void StoreSeqCst(int8_t* p, int8_t value); |
| 22 void StoreSeqCst(uint16_t* p, uint16_t value); |
| 23 void StoreSeqCst(int16_t* p, int16_t value); |
| 24 void StoreSeqCst(uint32_t* p, uint32_t value); |
| 25 void StoreSeqCst(int32_t* p, int32_t value); |
| 26 uint8_t AddSeqCst(uint8_t* p, uint8_t value); |
| 27 int8_t AddSeqCst(int8_t* p, int8_t value); |
| 28 uint16_t AddSeqCst(uint16_t* p, uint16_t value); |
| 29 int16_t AddSeqCst(int16_t* p, int16_t value); |
| 30 uint32_t AddSeqCst(uint32_t* p, uint32_t value); |
| 31 int32_t AddSeqCst(int32_t* p, int32_t value); |
| 32 uint8_t SubSeqCst(uint8_t* p, uint8_t value); |
| 33 int8_t SubSeqCst(int8_t* p, int8_t value); |
| 34 uint16_t SubSeqCst(uint16_t* p, uint16_t value); |
| 35 int16_t SubSeqCst(int16_t* p, int16_t value); |
| 36 uint32_t SubSeqCst(uint32_t* p, uint32_t value); |
| 37 int32_t SubSeqCst(int32_t* p, int32_t value); |
| 38 uint8_t ExchangeSeqCst(uint8_t* p, uint8_t value); |
| 39 int8_t ExchangeSeqCst(int8_t* p, int8_t value); |
| 40 uint16_t ExchangeSeqCst(uint16_t* p, uint16_t value); |
| 41 int16_t ExchangeSeqCst(int16_t* p, int16_t value); |
| 42 uint32_t ExchangeSeqCst(uint32_t* p, uint32_t value); |
| 43 int32_t ExchangeSeqCst(int32_t* p, int32_t value); |
| 44 uint8_t CompareExchangeSeqCst(uint8_t* p, uint8_t oldval, uint8_t newval); |
| 45 int8_t CompareExchangeSeqCst(int8_t* p, int8_t oldval, int8_t newval); |
| 46 uint16_t CompareExchangeSeqCst(uint16_t* p, uint16_t oldval, uint16_t newval); |
| 47 int16_t CompareExchangeSeqCst(int16_t* p, int16_t oldval, int16_t newval); |
| 48 uint32_t CompareExchangeSeqCst(uint32_t* p, uint32_t oldval, uint32_t newval); |
| 49 int32_t CompareExchangeSeqCst(int32_t* p, int32_t oldval, int32_t newval); |
| 50 uint8_t AndSeqCst(uint8_t* p, uint8_t value); |
| 51 int8_t AndSeqCst(int8_t* p, int8_t value); |
| 52 uint16_t AndSeqCst(uint16_t* p, uint16_t value); |
| 53 int16_t AndSeqCst(int16_t* p, int16_t value); |
| 54 uint32_t AndSeqCst(uint32_t* p, uint32_t value); |
| 55 int32_t AndSeqCst(int32_t* p, int32_t value); |
| 56 uint8_t OrSeqCst(uint8_t* p, uint8_t value); |
| 57 int8_t OrSeqCst(int8_t* p, int8_t value); |
| 58 uint16_t OrSeqCst(uint16_t* p, uint16_t value); |
| 59 int16_t OrSeqCst(int16_t* p, int16_t value); |
| 60 uint32_t OrSeqCst(uint32_t* p, uint32_t value); |
| 61 int32_t OrSeqCst(int32_t* p, int32_t value); |
| 62 uint8_t XorSeqCst(uint8_t* p, uint8_t value); |
| 63 int8_t XorSeqCst(int8_t* p, int8_t value); |
| 64 uint16_t XorSeqCst(uint16_t* p, uint16_t value); |
| 65 int16_t XorSeqCst(int16_t* p, int16_t value); |
| 66 uint32_t XorSeqCst(uint32_t* p, uint32_t value); |
| 67 int32_t XorSeqCst(int32_t* p, int32_t value); |
| 68 |
| 69 } // namespace atomics |
| 70 } // namespace internal |
| 71 } // namespace v8 |
| 72 |
| 73 #endif // V8_RUNTIME_RUNTIME_ATOMICS_X64_H_ |
OLD | NEW |