< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorIntrinsics.java

Print this page
rev 49509 : [vector] Intrinsic support for resize

*** 205,224 **** return defaultImpl.apply(v, i); } /* ============================================================================ */ ! interface VectorRebracketOp<VT, VF> { VT apply(VF v, Class<?> elementType); } @HotSpotIntrinsicCandidate static <VT, VF> ! VT rebracket(Class<VF> fromVectorClass, Class<?> fromElementType, int fromVLen, ! Class<?> toElementType, VF v, ! VectorRebracketOp<VT,VF> defaultImpl) { return defaultImpl.apply(v, toElementType); } /* ============================================================================ */ --- 205,224 ---- return defaultImpl.apply(v, i); } /* ============================================================================ */ ! interface VectorReinterpretOp<VT, VF> { VT apply(VF v, Class<?> elementType); } @HotSpotIntrinsicCandidate static <VT, VF> ! VT reinterpret(Class<VF> fromVectorClass, Class<?> fromElementType, int fromVLen, ! Class<?> toElementType, int toVLen, VF v, ! VectorReinterpretOp<VT,VF> defaultImpl) { return defaultImpl.apply(v, toElementType); } /* ============================================================================ */
< prev index next >