Stream: git-wasmtime

Topic: wasmtime / PR #3316 Implement `UwidenLow` and `UwidenHigh...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 08 2021 at 13:19):

dheaton-arm opened PR #3316 from implement-uwiden to main:

Implemented UwidenLow and UwidenHigh for the Cranelift interpreter,
doubling the width and halving the number of lanes preserving the low
and high halves respectively. Conversions are performed using unsigned
zero extension.

Copyright (c) 2021, Arm Limited

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Sep 08 2021 at 15:41):

dheaton-arm updated PR #3316 from implement-uwiden to main.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 08 2021 at 17:52):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 08 2021 at 17:52):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 08 2021 at 17:52):

cfallin created PR review comment:

Could we write this with iterator methods (similar to @afonso360's comment in #3314)? Something like:

let new_vec = extractlanes(...).into_iter().take(new_type.lane_count).map(|lane| lane.convert(...)).collect::<Result<Vec<_>>()?

(note that there is a very convenient trait impl in libstd that lets one collect individual Result<T> items into Result<Vec<T>> which takes care of the try operator in the loop!)

view this post on Zulip Wasmtime GitHub notifications bot (Sep 10 2021 at 08:41):

dheaton-arm updated PR #3316 from implement-uwiden to main.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 10 2021 at 08:41):

dheaton-arm updated PR #3316 from implement-uwiden to main.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 10 2021 at 11:25):

afonso360 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 10 2021 at 19:32):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 10 2021 at 19:32):

cfallin merged PR #3316.


Last updated: Dec 23 2024 at 13:07 UTC