Skip to content

Commit cfed71f

Browse files
authored
Merge pull request #377 from MaskRay/size_t
Define size_t and ptrdiff_t
2 parents a484e84 + 111324d commit cfed71f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

riscv-cc.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ A null pointer (for all types) has the value zero.
493493
corresponding real type (`float`, `double`, or `long double`), with the first
494494
member holding the real part and the second member holding the imaginary part.
495495

496+
The type `size_t` is defined as `unsigned int` for RV32 and `unsigned long` for RV64.
497+
498+
The type `ptrdiff_t` is defined as `int` for RV32 and `long` for RV64.
499+
496500
=== va_list, va_start, and va_arg
497501

498502
The `va_list` type is `void*`. A callee with variadic arguments is responsible

0 commit comments

Comments
 (0)