Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
1c7792f4
Commit
1c7792f4
authored
Aug 07, 2025
by
zhangyue
Browse files
修改自定义 size_t 和 ptrdiff_t 中基础数据类型
parent
46a15a1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/infiniop/devices/kunlun/kunlun_kernel_common.h
src/infiniop/devices/kunlun/kunlun_kernel_common.h
+4
-4
No files found.
src/infiniop/devices/kunlun/kunlun_kernel_common.h
View file @
1c7792f4
...
@@ -11,14 +11,14 @@
...
@@ -11,14 +11,14 @@
namespace
device
::
kunlun
::
kernel
{
namespace
device
::
kunlun
::
kernel
{
typedef
struct
_ptrdiff_t
{
typedef
struct
_ptrdiff_t
{
ptrdiff
_t
value
;
// 32 bit
int32
_t
value
;
// 32 bit
ptrdiff
_t
padding
;
// 32 bit
int32
_t
padding
;
// 32 bit
}
_ptrdiff_t
;
}
_ptrdiff_t
;
// same as ptrdiff
// same as ptrdiff
typedef
struct
_size_t
{
typedef
struct
_size_t
{
size
_t
value
;
uint32
_t
value
;
size
_t
padding
;
uint32
_t
padding
;
}
_size_t
;
}
_size_t
;
// Get mask for kunlun xpu 512bit register calculation
// Get mask for kunlun xpu 512bit register calculation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment