Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite5592c6

Browse files
committed
Fix memory barrier support on icc on ia64, 2nd attempt.
Itanium doesn't have the mfence instruction - that's a 386 thing. Use the"mf" instruction instead.This reverts the previous commit to add "#include <emmintrinsic.h>"; theproblem was not with a missing #include.
1 parent6052bce commite5592c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/include/storage/barrier.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ extern slock_t dummy_spinlock;
5353
/*
5454
* icc defines __GNUC__, but doesn't support gcc's inline asm syntax
5555
*/
56-
#include<emmintrin.h>
56+
#if defined(__ia64__)|| defined(__ia64)
57+
#definepg_memory_barrier()__mf()
58+
#elseifdefined(__i386__)||defined(__x86_64__)
5759
#definepg_memory_barrier()_mm_mfence()
60+
#endif
61+
5862
#definepg_compiler_barrier()__memory_barrier()
5963
#elif defined(__GNUC__)
6064

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp