File tree Expand file tree Collapse file tree 3 files changed +31
-13
lines changed Expand file tree Collapse file tree 3 files changed +31
-13
lines changed Original file line number Diff line number Diff line change 14
14
15
15
#ifdef _WIN32
16
16
#include < windows.h>
17
+
18
+ #include " utils_windows_intrin.h"
19
+
20
+ #pragma intrinsic(_BitScanForward64)
17
21
#else
18
22
#include < pthread.h>
19
23
Original file line number Diff line number Diff line change
1
+ /*
2
+ *
3
+ * Copyright (C) 2024 Intel Corporation
4
+ *
5
+ * Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
6
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ *
8
+ */
9
+
10
+ #ifndef UMF_UTILS_WINDOWS_INTRIN_H
11
+ #define UMF_UTILS_WINDOWS_INTRIN_H 1
12
+
13
+ #ifdef _WIN32
14
+
15
+ // Disable warning 28251: "inconsistent annotation for function" thrown in
16
+ // intrin.h, as we do not want to modify this file.
17
+ #pragma warning(push)
18
+ #pragma warning(disable : 28251)
19
+
20
+ #include <intrin.h>
21
+
22
+ #pragma warning(pop)
23
+
24
+ #endif /* _WIN32 */
25
+
26
+ #endif /* UMF_UTILS_WINDOWS_INTRIN_H */
Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
#include "utils_math.h"
11
-
12
- // disable warning 28251: "inconsistent annotation for function" thrown in
13
- // intrin.h, as we do not want to modify this file
14
- #if defined(_MSC_VER )
15
- #pragma warning(push)
16
- #pragma warning(disable : 28251)
17
- #endif // _MSC_VER
18
-
19
- #include <intrin.h>
20
-
21
- #if defined(_MSC_VER )
22
- #pragma warning(pop)
23
- #endif // _MSC_VER
11
+ #include "utils_windows_intrin.h"
24
12
25
13
#pragma intrinsic(_BitScanReverse)
26
14
You can’t perform that action at this time.
0 commit comments