Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions proposals/128-bit-arithmetic/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ plaininstr_l ::= ...

### Alternative: Overflow Flags

> **Note**: this alternative is the subject of [#6] and this section is intended
> to summarize investigations and results of that issue. See [#6] for more
> in-depth discussion too.

[#6]: https://github.com/WebAssembly/128-bit-arithmetic/issues/6

A major alternative to this proposal is to expose the lower-level primitives
that 128-bit addition/subtraction are themselves built on for the underlying
platforms. This hypothetically would remove the need for `i64.{add,sub}128`. The
Expand Down Expand Up @@ -371,6 +377,10 @@ registers.

### Alternative: Why not add `i64.div128_{u,s}`?

> **Note**: this section is also being discussed in [#15].

[#15]: https://github.com/WebAssembly/128-bit-arithmetic/issues/15

Native ISAs generally do not have support for 128-bit division. The x86-64 ISA
has the ability to divide a 128-bit value by a 64-bit value producing a 64-bit
result, but this doesn't map to the desired semantics of `i64.div128_{u,s}` to
Expand Down