Skip to content

Commit f02d646

Browse files
committed
bthread: fix simd memory align issue
1 parent 0e7c644 commit f02d646

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bthread/task_group.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ AtomicInteger128::Value AtomicInteger128::load() const {
105105
#endif // __x86_64__ || __ARM_NEON
106106
}
107107

108-
void AtomicInteger128::store(Value value) {
108+
void AtomicInteger128::store(Value BAIDU_CACHELINE_ALIGNMENT value) {
109109
#if __x86_64__
110110
__m128i v = _mm_load_si128(reinterpret_cast<__m128i*>(&value));
111111
_mm_store_si128(reinterpret_cast<__m128i*>(&_value), v);

0 commit comments

Comments
 (0)