We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab897c commit 77bd39aCopy full SHA for 77bd39a
ext/standard/crc32.c
@@ -64,9 +64,13 @@ static inline int has_crc32_insn() {
64
# endif
65
}
66
67
-# if defined(__GNUC__) && !defined(__clang__)
68
-# pragma GCC push_options
69
-# pragma GCC target ("+nothing+crc")
+# if defined(__GNUC__)
+# if!defined(__clang__)
+# pragma GCC push_options
70
+# pragma GCC target ("+nothing+crc")
71
+# else
72
+# pragma clang attribute push(__attribute__((target("+nothing+crc"))), apply_to=function)
73
+# endif
74
75
static uint32_t crc32_aarch64(uint32_t crc, const char *p, size_t nr) {
76
while (nr >= sizeof(uint64_t)) {
@@ -89,8 +93,12 @@ static uint32_t crc32_aarch64(uint32_t crc, const char *p, size_t nr) {
89
93
90
94
return crc;
91
95
92
-# pragma GCC pop_options
96
97
+# if !defined(__clang__)
98
+# pragma GCC pop_options
99
100
+# pragma clang attribute pop
101
102
103
#endif
104
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments