Skip to content

Commit

Permalink
Add floating-point data model
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeFlyingSheep committed Mar 8, 2022
1 parent 1e4fdb5 commit afe2d2c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/LoongArch-ELF-ABI-CN.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,18 @@ v1.00
|指针类型
|8
|8

|`float`
|4
|4

|`double`
|8
|8

|`long double`
|16
|16
|===

.ILP32 数据模型 (对应基础 ABI 类型:`ilp32d` `ilp32f` `ilp32s`)
Expand Down Expand Up @@ -201,6 +213,18 @@ v1.00
|指针类型
|4
|4

|`float`
|4
|4

|`double`
|8
|8

|`long double`
|16
|16
|===

对于任何<<base-abi-type-marks, 基础 ABI 类型>>,`char` 默认是有符号类型。
Expand Down
24 changes: 24 additions & 0 deletions docs/LoongArch-ELF-ABI-EN.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,18 @@ For the components not yet upstream, and not interacting with other components t
|pointer types
|8
|8

|`float`
|4
|4

|`double`
|8
|8

|`long double`
|16
|16
|===

.ILP32 Data Model (base ABI types: `ilp32d` `ilp32f` `ilp32s`)
Expand Down Expand Up @@ -201,6 +213,18 @@ For the components not yet upstream, and not interacting with other components t
|pointer types
|4
|4

|`float`
|4
|4

|`double`
|8
|8

|`long double`
|16
|16
|===

For all base ABI types of LoongArch, the `char` datatype is signed by default.
Expand Down

0 comments on commit afe2d2c

Please sign in to comment.