diff options
| author | Christopher Serr <christopher.serr@gmail.com> | 2020-06-25 17:05:12 +0200 |
|---|---|---|
| committer | Christopher Serr <christopher.serr@gmail.com> | 2020-07-02 09:32:03 +0200 |
| commit | 94cd4f15d6479756af6e03a31a204bd588805cbd (patch) | |
| tree | d5265786cf5d4b4cae23f24ac84fea1981009d76 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 9491f18c5de3ff1c4bf9c3fdacf52d9859e26f7c (diff) | |
| download | rust-94cd4f15d6479756af6e03a31a204bd588805cbd.tar.gz rust-94cd4f15d6479756af6e03a31a204bd588805cbd.zip | |
Use WASM's saturating casts if they are available
WebAssembly supports saturating floating point to integer casts behind a target feature. The feature is already available on many browsers. Beginning with 1.45 Rust will start defining the behavior of floating point to integer casts to be saturating as well. For this Rust constructs additional checks on top of the `fptoui` / `fptosi` instructions it emits. Here we introduce the possibility for the codegen backend to construct saturating casts itself and only fall back to constructing the checks ourselves if that is not possible.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
