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

Ruby 3.4.1p0 (2024-12-25 revision 48d4efcb85000e1ebae42004e963b5d0cedddcf2)

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 */