: core-libs-dev@openjdk.org; Viswanathan, Sandhya
Subject: Re: Vector (and integer) API: unsigned min/max
Hi David,
It’s not at all outlandish, but would caution it's more work than one might
initially think.
Could you describe a little more about your use case? that can be helpful to
under
On Apr 17, 2024, at 7:14 AM, David Lloyd wrote:
>
> 2. Add .MIN_VALUE, min/max with a value or vector also offset by
> .MIN_VALUE, and then subtract the offset again
I think that’s the path of least resistance. It’s just a vxor on each operand,
with a constant mask. That can be done in Java co
Presently, I'm implementing operations for a WASM emulator/runtime, so it's
more a case of transitively acquiring use cases from WASM, though I'm also
doing this specifically to practice accomplishing useful things with the
vector API.
Regarding saturating arithmetic: WASM has operations for that
Hi David,
It’s not at all outlandish, but would caution it's more work than one might
initially think.
Could you describe a little more about your use case? that can be helpful to
understand the larger picture and demand. Using unsigned comparison would be my
recommended approach with the curr
I've been trying the the incubating Vector API and one thing I've missed on
integer-typed vectors is having unsigned min/max operations. There is a
signed min/max operation, and unsigned comparison, but no unsigned min/max.
I guess this is for symmetry with `Math`, which only has signed
`min`/`max