mojo
mojo copied to clipboard
[stdlib] Constrain `simd.bool()` to `size == 1`
Use explicit reduce_or()
/reduce_and()
instead
see https://github.com/modularml/mojo/pull/2412
Actually, I wish they were called any
and all
.
i was thinking the same thing, but they can be separate to avoid bitwise ambiguity
Just a quick update here: this has been approved internally, but I need to go fix up more uses internally this breaks before we can land it.
I was about to try adding any
/all
functions, but my Internet connection just died, so if anyone wants something todo
edit: I did it anyway, but can't open the pr till I get online...
I thought there was something else that should get done before any
/all
, but I can't remember now
✅🟣 This contribution has been merged 🟣✅
Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the nightly branch during the next Mojo nightly release, typically within the next 24-48 hours.
We use Copybara to merge external contributions, click here to learn more.
Landed in a31a0e6c3a1f8bc8df5583d1cbc4f23c8e0bf7d3! Thank you for your contribution 🎉