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

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

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