Skip to content

Commit 111324d

Browse files
committed
Define size_t and ptrdiff_t
Close #376
1 parent 93af141 commit 111324d

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
@@ -426,6 +426,10 @@ A null pointer (for all types) has the value zero.
426426
corresponding real type (`float`, `double`, or `long double`), with the first
427427
member holding the real part and the second member holding the imaginary part.
428428

429+
The type `size_t` is defined as `unsigned int` for RV32 and `unsigned long` for RV64.
430+
431+
The type `ptrdiff_t` is defined as `int` for RV32 and `long` for RV64.
432+
429433
=== va_list, va_start, and va_arg
430434

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

0 commit comments

Comments
 (0)