Debian Codegraph @

lang-maps/libbm/include/libbmcpuid.h

raw
1 #ifndef LIBBMCPUID_INCLUDED_H__
2 #define LIBBMCPUID_INCLUDED_H__
3 /*
4 BitMagic Library License
5
6 Copyright(c) 2002-2017 Anatoliy Kuznetsov(anatoliy_kuznetsov at yahoo.com)
7
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19
20 For more information please visit: http://bitmagic.io
21 */
22
23 #include <stddef.h>
24
25 #define SIMD_SSE 0x1
26 #define SIMD_SSE2 0x2
27 #define SIMD_SSE3 0x4
28 #define SIMD_SSE4_1 0x8
29 #define SIMD_SSE4_2 0x10
30 #define SIMD_AVX 0x20
31 #define SIMD_AVX2 0x40
32 #define SIMD_AVX512F 0x80
33
34 #ifdef _WIN32
35 #ifdef BMDLLEXPORTS
36 # define BM_API_EXPORT __declspec(dllexport)
37 #else
38 # define BM_API_EXPORT __declspec(dllimport)
39 #endif
40 #else
41 # define BM_API_EXPORT
42 #endif
43
44 #ifdef __cplusplus
45 extern "C" {
46 #endif /* __cplusplus */
47
48 BM_API_EXPORT unsigned BM_x86_simd(void);
49
50 #ifdef __cplusplus
51 }
52 #endif /* __cplusplus */
53
54
55 #endif