Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Zhang Na 2022
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_ARCHITECTURE_LOONGARCH_H
0009 #define BOOST_PREDEF_ARCHITECTURE_LOONGARCH_H
0010 
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013 
0014 /* tag::reference[]
0015 = `BOOST_ARCH_LOONGARCH`
0016 
0017 [options="header"]
0018 |===
0019 | {predef_symbol} | {predef_version}
0020 
0021 | `+__loongarch__+` | {predef_detection}
0022 |===
0023 */ // end::reference[]
0024 
0025 #define BOOST_ARCH_LOONGARCH BOOST_VERSION_NUMBER_NOT_AVAILABLE
0026 
0027 #if defined(__loongarch__)
0028 #   undef BOOST_ARCH_LOONGARCH
0029 #   define BOOST_ARCH_LOONGARCH BOOST_VERSION_NUMBER_AVAILABLE
0030 #endif
0031 
0032 #if BOOST_ARCH_LOONGARCH
0033 #   define BOOST_ARCH_LOONGARCH_AVAILABLE
0034 #endif
0035 
0036 #define BOOST_ARCH_LOONGARCH_NAME "LoongArch"
0037 
0038 #endif
0039 
0040 #include <boost/predef/detail/test.h>
0041 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_LOONGARCH,BOOST_ARCH_LOONGARCH_NAME)