VSF Documented
x86_compiler.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __USE_X86_COMPILER_H_PART_1__
19#define __USE_X86_COMPILER_H_PART_1__
20
21/*============================ INCLUDES ======================================*/
22
23/*============================ MACROS ========================================*/
24
25#ifdef __CPU_X64__
26# define __VSF64__
27#endif
28
30
31#endif /* end of __USE_X86_COMPILER_H_PART_1__ */
32
33/*========================== Multiple-Entry Start ============================*/
34
35#ifndef __VSF_HEADER_ONLY_SHOW_COMPILER_INFO__
36# include "./type.h"
37#endif
38#include "../__common/__compiler.h"
39
40/*========================== Multiple-Entry End ==============================*/
41
42#ifndef __USE_X86_COMPILER_H_PART_2__
43#define __USE_X86_COMPILER_H_PART_2__
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49/* ----------------- Start of section using anonymous unions -------------- */
50
52#if __IS_COMPILER_LLVM__
53# pragma clang diagnostic ignored "-Wcast-align"
54#elif __IS_COMPILER_GCC__
55# pragma GCC diagnostic ignored "-Wcast-align"
56#endif
57
58/*============================ MACROS ========================================*/
59
60/*----------------------------------------------------------------------------*
61 * Startup Source Code *
62 *----------------------------------------------------------------------------*/
63
64#define vsf_stdio_init(...)
65
66/*============================ TYPES =========================================*/
67/*============================ PROTOTYPES ====================================*/
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* end of __USE_X86_COMPILER_H_PART_2__ */