xref: /OK3568_Linux_fs/external/rockit/mpi/sdk/include/rk_type.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* GPL-2.0 WITH Linux-syscall-note OR Apache 2.0 */
2 /* Copyright (c) 2021 Fuzhou Rockchip Electronics Co., Ltd */
3 
4 #ifndef INCLUDE_RT_MPI_RK_TYPE_H_
5 #define INCLUDE_RT_MPI_RK_TYPE_H_
6 #ifndef __BUILD_KO__
7 #include <stdint.h>
8 #endif
9 #ifdef __cplusplus
10 #if __cplusplus
11 extern "C" {
12 #endif
13 #endif /* __cplusplus */
14 
15 typedef unsigned char           RK_UCHAR;
16 typedef uint8_t                 RK_U8;
17 typedef uint16_t                RK_U16;
18 typedef uint32_t                RK_U32;
19 typedef uint32_t                RK_UL;
20 typedef uintptr_t               RK_UINTPTR_T;
21 
22 typedef char                    RK_CHAR;
23 typedef int8_t                  RK_S8;
24 typedef int16_t                 RK_S16;
25 typedef int32_t                 RK_S32;
26 typedef int32_t                 RK_SL;
27 
28 typedef float                   RK_FLOAT;
29 typedef double                  RK_DOUBLE;
30 
31 typedef uint64_t                RK_U64;
32 typedef int64_t                 RK_S64;
33 
34 typedef uint32_t                RK_SIZE_T;
35 typedef uint32_t                RK_LENGTH_T;
36 
37 typedef unsigned int            RK_HANDLE;
38 
39 typedef enum {
40     RK_FALSE = 0,
41     RK_TRUE  = 1,
42 } RK_BOOL;
43 
44 #ifndef NULL
45     #define NULL                0L
46 #endif
47 
48 #define RK_NULL                 0L
49 #define RK_SUCCESS              0
50 #define RK_FAILURE              (-1)
51 
52 #define RK_VOID                 void
53 
54 #ifdef __cplusplus
55 #if __cplusplus
56 }
57 #endif
58 #endif /* __cplusplus */
59 
60 #endif  // INCLUDE_RT_MPI_RK_TYPE_H_
61