NMSIS-Core  Version 1.4.0
NMSIS-Core support for Nuclei processor-based devices
core_feature_bitmanip.h
1 /*
2  * Copyright (c) 2019 Nuclei Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Licensed under the Apache License, Version 2.0 (the License); you may
7  * not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #ifndef __CORE_FEATURE_BITMANIP__
19 #define __CORE_FEATURE_BITMANIP__
20 
25 /*
26  * Bitmanipulation Feature Configuration Macro:
27  * 1. __BITMANIP_PRESENT: Define whether Bitmanipulation Unit is present or not
28  * * 0: Not present
29  * * 1: Present
30  */
31 #ifdef __cplusplus
32  extern "C" {
33 #endif
34 
35 #include "core_feature_base.h"
36 
37 #if defined(__BITMANIP_PRESENT) && (__BITMANIP_PRESENT == 1)
38 
39 /* ########################### CPU Bitmanipulation Intrinsic Functions ########################### */ /* End of Doxygen Group NMSIS_Core_Bitmanip_Intrinsic */
57 
58 #if defined(__INC_INTRINSIC_API) && (__INC_INTRINSIC_API == 1)
59 // deleted in gcc13, you can directly use b extension intrinisc api
60 //#include <rvintrin.h>
61 #endif
62 
63 #endif /* defined(__BITMANIP_PRESENT) && (__BITMANIP_PRESENT == 1) */
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif /* __CORE_FEATURE_BITMANIP__ */