Skip to content

Commit 8f729f7

Browse files
committed
feat: auto-detect intrinsics
1 parent 93f984b commit 8f729f7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

highs/HConfig.h.bazel.in

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@
88
#define HiGHSRELEASE
99
/* #undef HIGHSINT64 */
1010
/* #undef HIGHS_HAVE_MM_PAUSE */
11+
#ifdef __has_builtin
12+
#if __has_builtin(__builtin_clz) && __has_builtin(__builtin_clzll)
1113
#define HIGHS_HAVE_BUILTIN_CLZ
12-
/* #undef HIGHS_HAVE_BITSCAN_REVERSE */
14+
#endif
15+
#endif
16+
17+
#ifdef _MSC_VER
18+
#define HIGHS_HAVE_BITSCAN_REVERSE
19+
#endif
1320

1421
#define HIGHS_GITHASH "bdf95f2e0"
1522
#define HIGHS_VERSION_MAJOR 1

0 commit comments

Comments
 (0)