Closed a74nh closed 2 months ago
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics See info in area-owners.md if you want to be subscribed.
If we're needing signs here as well, then we should remove *16Bit
and instead do *Int16
, *UInt16
, etc. Matching the existing conventions for disambiguating.
This should likely be merged with the proposal asking for Single
/Double
and cover that removal.
If we're needing signs here as well, then we should remove
*16Bit
and instead do*Int16
,*UInt16
, etc. Matching the existing conventions for disambiguating.
Agreed.
This should likely be merged with the proposal asking for
Single
/Double
and cover that removal.
I didn't want to merge initially because I was concerned this would just be rejected outright for adding too many APIs.
I'll close this and merge with the other one.
APIs added to #108233. Closing this.
Background and motivation
Consider:
For the
for
loop we need a 16bitwhilelt
mask. The only way to create this is viaCreateWhileLessThanMask16Bit()
, but this returns aVector<ushort>
. It needs to be aVector<short>
so that it can be used in theconditionalSelect()
.The casting to
Vector<short>
is a little confusing.I suggest we add signed versions of
CreateWhileLessThanMask()
API Proposal
Risks