hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * Copyright 2020 Rockchip Electronics Co. LTD
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
 
#ifndef INCLUDE_RT_MPI_RK_TYPE_H_
#define INCLUDE_RT_MPI_RK_TYPE_H_
 
#include <stdint.h>
 
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
 
typedef unsigned char           RK_UCHAR;
typedef uint8_t                 RK_U8;
typedef uint16_t                RK_U16;
typedef uint32_t                RK_U32;
typedef uint32_t                RK_UL;
typedef uintptr_t               RK_UINTPTR_T;
 
typedef char                    RK_CHAR;
typedef int8_t                  RK_S8;
typedef int16_t                 RK_S16;
typedef int32_t                 RK_S32;
typedef int32_t                 RK_SL;
 
typedef float                   RK_FLOAT;
typedef double                  RK_DOUBLE;
 
typedef uint64_t                RK_U64;
typedef int64_t                 RK_S64;
 
typedef uint32_t                RK_SIZE_T;
typedef uint32_t                RK_LENGTH_T;
 
typedef unsigned int            RK_HANDLE;
 
typedef enum {
    RK_FALSE = 0,
    RK_TRUE  = 1,
} RK_BOOL;
 
#ifndef NULL
    #define NULL                0L
#endif
 
#define RK_NULL                 0L
#define RK_SUCCESS              0
#define RK_FAILURE              (-1)
 
#define RK_VOID                 void
 
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
 
#endif  // INCLUDE_RT_MPI_RK_TYPE_H_