Ruby: include/ruby/internal/compiler_is/intel.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

intel.h
Go to the documentation of this file.
1#ifndef RBIMPL_COMPILER_IS_INTEL_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_COMPILER_IS_INTEL_H
23#if ! defined(__INTEL_COMPILER)
24# define RBIMPL_COMPILER_IS_Intel 0
25
26#elif ! defined(__INTEL_COMPILER_UPDATE)
27# define RBIMPL_COMPILER_IS_Intel 1
28# /* __INTEL_COMPILER = XXYZ */
29# define RBIMPL_COMPILER_VERSION_MAJOR (__INTEL_COMPILER / 100)
30# define RBIMPL_COMPILER_VERSION_MINOR (__INTEL_COMPILER % 100 / 10)
31# define RBIMPL_COMPILER_VERSION_PATCH (__INTEL_COMPILER % 10)
32
33#else
34# define RBIMPL_COMPILER_IS_Intel 1
35# /* __INTEL_COMPILER = XXYZ */
36# define RBIMPL_COMPILER_VERSION_MAJOR (__INTEL_COMPILER / 100)
37# define RBIMPL_COMPILER_VERSION_MINOR (__INTEL_COMPILER % 100 / 10)
38# define RBIMPL_COMPILER_VERSION_PATCH __INTEL_COMPILER_UPDATE
39#endif
40
41#endif /* RBIMPL_COMPILER_IS_INTEL_H */