mirror of
https://github.com/openjdk/jdk18u.git
synced 2025-12-11 03:33:57 -06:00
8284992: Fix misleading Vector API doc for LSHR operator
Backport-of: e54f26aa3d5d44264e052bc51d3d819a8da5d1e7
This commit is contained in:
parent
0b9bee7169
commit
b5bf90dac2
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -68,6 +68,8 @@ import jdk.internal.vm.vector.VectorSupport;
|
|||||||
*
|
*
|
||||||
* <li>{@code ESIZE} — the size in bytes of the operand type
|
* <li>{@code ESIZE} — the size in bytes of the operand type
|
||||||
*
|
*
|
||||||
|
* <li>{@code EMASK} — the bit mask of the operand type, where {@code EMASK=(1<<(ESIZE*8))-1}
|
||||||
|
*
|
||||||
* <li>{@code intVal}, {@code byteVal}, etc. — the operand of a
|
* <li>{@code intVal}, {@code byteVal}, etc. — the operand of a
|
||||||
* conversion, with the indicated type
|
* conversion, with the indicated type
|
||||||
* </ul>
|
* </ul>
|
||||||
@ -548,7 +550,7 @@ public abstract class VectorOperators {
|
|||||||
public static final /*bitwise*/ Binary LSHL = binary("LSHL", "<<", VectorSupport.VECTOR_OP_LSHIFT, VO_SHIFT);
|
public static final /*bitwise*/ Binary LSHL = binary("LSHL", "<<", VectorSupport.VECTOR_OP_LSHIFT, VO_SHIFT);
|
||||||
/** Produce {@code a>>(n&(ESIZE*8-1))}. Integral only. */
|
/** Produce {@code a>>(n&(ESIZE*8-1))}. Integral only. */
|
||||||
public static final /*bitwise*/ Binary ASHR = binary("ASHR", ">>", VectorSupport.VECTOR_OP_RSHIFT, VO_SHIFT);
|
public static final /*bitwise*/ Binary ASHR = binary("ASHR", ">>", VectorSupport.VECTOR_OP_RSHIFT, VO_SHIFT);
|
||||||
/** Produce {@code a>>>(n&(ESIZE*8-1))}. Integral only. */
|
/** Produce {@code (a&EMASK)>>>(n&(ESIZE*8-1))}. Integral only. */
|
||||||
public static final /*bitwise*/ Binary LSHR = binary("LSHR", ">>>", VectorSupport.VECTOR_OP_URSHIFT, VO_SHIFT);
|
public static final /*bitwise*/ Binary LSHR = binary("LSHR", ">>>", VectorSupport.VECTOR_OP_URSHIFT, VO_SHIFT);
|
||||||
/** Produce {@code rotateLeft(a,n)}. Integral only. */
|
/** Produce {@code rotateLeft(a,n)}. Integral only. */
|
||||||
public static final /*bitwise*/ Binary ROL = binary("ROL", "rotateLeft", VectorSupport.VECTOR_OP_LROTATE, VO_SHIFT);
|
public static final /*bitwise*/ Binary ROL = binary("ROL", "rotateLeft", VectorSupport.VECTOR_OP_LROTATE, VO_SHIFT);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user