---
title: 基本数据类型说明
description: "```"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0022.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0022.html
indexId: 9a7fb0a45766bd69c6540be5478abfabe56f36f7ea6f40f96ddcca5323ed5e1865
---
# 基本数据类型说明

```
typedef unsigned char hi_u8;
typedef signed char hi_s8;
typedef unsigned short hi_u16;
typedef short hi_s16;
typedef unsigned int hi_u32;
typedef int hi_s32;
typedef unsigned long long hi_u64;
typedef long long hi_s64;
typedef char hi_char;
typedef double hi_double;
typedef hi_u32 hi_fr32;
typedef enum {
HI_FALSE = 0,
HI_TRUE = 1,
} hi_bool;
#define hi_void void
#define HI_NULL 0L
#define HI_SUCCESS 0
#define HI_FAILURE (-1)
```
