Commit 1c7792f4 authored by zhangyue's avatar zhangyue
Browse files

修改自定义 size_t 和 ptrdiff_t 中基础数据类型

parent 46a15a1a
......@@ -11,14 +11,14 @@
namespace device::kunlun::kernel {
typedef struct _ptrdiff_t {
ptrdiff_t value; // 32 bit
ptrdiff_t padding; // 32 bit
int32_t value; // 32 bit
int32_t padding; // 32 bit
} _ptrdiff_t;
// same as ptrdiff
typedef struct _size_t {
size_t value;
size_t padding;
uint32_t value;
uint32_t padding;
} _size_t;
// Get mask for kunlun xpu 512bit register calculation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment