This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaymo_cc.h
68 lines (49 loc) · 1.57 KB
/
aymo_cc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
AYMO - Accelerated YaMaha Operator
Copyright (c) 2023 Andrea Zoppi.
This file is part of AYMO.
AYMO is free software: you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free
Software Foundation, either version 2.1 of the License, or (at your option)
any later version.
AYMO is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
more details.
You should have received a copy of the GNU Lesser General Public License
along with AYMO. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef include_aymo_cc_h_
#define include_aymo_cc_h_
#include <stddef.h>
#ifndef _MSC_VER
#define __forceinline
#define __declspec(x)
#endif
#if (defined(_DEBUG) && !defined(NDEBUG))
#define AYMO_DEBUG
#endif
#ifndef AYMO_STATIC
#define AYMO_STATIC static
#endif
#ifndef AYMO_INLINE
#define AYMO_INLINE static inline __forceinline
#endif
#ifndef AYMO_API
#define AYMO_API __stdcall
#endif
#ifndef AYMO_ALIGN
#define AYMO_ALIGN(n) __declspec(align(n))
#endif
#ifndef AYMO_PRAGMA_PACK_PUSH_1
#define AYMO_PRAGMA_PACK_PUSH_1 _Pragma("pack(push, 1)")
#endif
#ifndef AYMO_PRAGMA_PACK_POP
#define AYMO_PRAGMA_PACK_POP _Pragma("pack(pop)")
#endif
#ifndef CONFIG_AYMO_YMF262_X86_AVX2_GATHER16_STRATEGY
#define CONFIG_AYMO_YMF262_X86_AVX2_GATHER16_STRATEGY 2
#endif
#undef AYMO_ALIGN_V16
#define AYMO_ALIGN_V16 AYMO_ALIGN(64)
#endif // include_aymo_cc_h_