History

tests/tcctest.c: Add support for osx with clang 10

herman ten brugge committed 3 years ago

Commit 95aab7d1 parent e2152351 file · +3 −0Browse files

Unified · Split

tests/tcctest.c+3−0
@@ -3875,9 +3875,12 @@ static void builtin_test_bits(unsigned long long x, int cnt[]) · 3874 unmodified lines
38753875 if ((unsigned long) x) cnt[7] += __builtin_ctzl(x);
38763876 if ((unsigned long long) x) cnt[8] += __builtin_ctzll(x);
38773877
3878+#if CC_NAME != CC_clang || GCC_MAJOR >= 11
3879+/* Apple clang 10 does not have __builtin_clrsb[l[l]] */
38783880 cnt[9] += __builtin_clrsb(x);
38793881 cnt[10] += __builtin_clrsbl(x);
38803882 cnt[11] += __builtin_clrsbll(x);
3883+#endif
38813884
38823885 cnt[12] += __builtin_popcount(x);
38833886 cnt[13] += __builtin_popcountl(x);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t