RFR: 8376187: [VectorAPI] Define new lane type constants and pass them to intrinsic entries [v2]
Quan Anh Mai
qamai at openjdk.org
Thu Jan 29 11:56:51 UTC 2026
On Thu, 29 Jan 2026 11:47:33 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
>> Please use a separate named type instead of `int`.
>
> It is indeed an integral value which is passed from Java side which is casted to BasicType.
So please cast it in the intrinsics functions in `vectorIntrinsics.cpp` and pass the `LaneType` into this function.
static bool is_primitive_lane_type(int laneType) {
return laneType >= VectorSupport::LT_FLOAT && laneType <= VectorSupport::LT_LONG;
}
This function could return a `LaneType` for you. Also, when do we pass in something that is not a valid value? Should this be an `assert`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29481#discussion_r2741273046
More information about the core-libs-dev
mailing list