Skip to content

Commit

Permalink
Merge pull request #172 from zakk0610/fp16
Browse files Browse the repository at this point in the history
Draft for adding IEEE half-precision floating-point type.
  • Loading branch information
kito-cheng authored Jul 21, 2021
2 parents 7eabad5 + 2d325eb commit 1942a05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions riscv-elf.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ There are two conventions for C type sizes and alignments.
long long | 8 | 8
__int128 | 16 | 16
void * | 8 | 8
_Float16 | 2 | 2
float | 4 | 4
double | 8 | 8
long double | 16 | 16
Expand All @@ -413,6 +414,7 @@ There are two conventions for C type sizes and alignments.
long | 4 | 4
long long | 8 | 8
void * | 4 | 4
_Float16 | 2 | 2
float | 4 | 4
double | 8 | 8
long double | 16 | 16
Expand All @@ -436,6 +438,8 @@ arguments are either `0` (`false`) or `1` (`true`).

A null pointer (for all types) has the value zero.

`_Float16` is as defined in the C ISO/IEC TS 18661-3 extension.

`_Complex` types have the same layout as a struct containing two fields of the
corresponding real type (`float`, `double`, or `long double`), with the first
member holding the real part and the second member holding the imaginary part.
Expand Down

0 comments on commit 1942a05

Please sign in to comment.