You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cd6cf73
Browse filesBrowse the repository at this point in the historyBrowse files
[typed_data] Implement Float32x4 and Float64x2 clamp with min and max
clamp is exactly a min followed by a max, so no backend needs an
implementation of its own. The VM drops its intrinsic, and on dart2js,
DDC and dart2wasm clamp stops unpacking the lanes into doubles, so on
wasm it now lowers to f32x4.min and f32x4.max.
That fixes clamp, which dropped NaNs and picked the wrong zero on a tie.
Tests added for both.
TEST=lib/typed_data/float32x4_clamp_test lib/typed_data/float64x2_clamp_test lib/typed_data/float32x4_test
Fixes: #40426
Issue: #64170
Issue: #63962
Change-Id: Id8c92c5021dc28af5c34a2000dd696aefad329dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/549060
Reviewed-by: Martin Kustermann <kustermann@google.com>
Auto-Submit: Modestas Valauskas <valauskasmodestas@gmail.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
0 commit comments