Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 17 jdk.incubator.vector.jmod - JDK Incubator Vector
JDK 17 jdk.incubator.vector.jmod is the JMOD file for JDK 17 HTTP Server module.
JDK 17 Incubator Vector module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.incubator.vector.jmod.
JDK 17 Incubator Vector module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Incubator Vector module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.incubator.vector.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/incubator/vector/VectorIntrinsics.java
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package jdk.incubator.vector;
import jdk.internal.vm.annotation.ForceInline;
import java.util.Objects;
/*non-public*/ class VectorIntrinsics {
static final int VECTOR_ACCESS_OOB_CHECK = Integer.getInteger("jdk.incubator.vector.VECTOR_ACCESS_OOB_CHECK", 2);
@ForceInline
static void requireLength(int haveLength, int length) {
if (haveLength != length) {
throw requireLengthFailed(haveLength, length);
}
}
static IllegalArgumentException requireLengthFailed(int haveLength, int length) {
String msg = String.format("Length check failed: "+
"length %d should have been %s",
haveLength, length);
return new IllegalArgumentException(msg);
}
@ForceInline
static int checkFromIndexSize(int ix, int vlen, int length) {
switch (VectorIntrinsics.VECTOR_ACCESS_OOB_CHECK) {
case 0: return ix; // no range check
case 1: return Objects.checkFromIndexSize(ix, vlen, length);
case 2: return Objects.checkIndex(ix, length - (vlen - 1));
default: throw new InternalError();
}
}
@ForceInline
static IntVector checkIndex(IntVector vix, int length) {
switch (VectorIntrinsics.VECTOR_ACCESS_OOB_CHECK) {
case 0: return vix; // no range check
case 1: // fall-through
case 2:
if (vix.compare(VectorOperators.LT, 0)
.or(vix.compare(VectorOperators.GE, length))
.anyTrue()) {
throw checkIndexFailed(vix, length);
}
return vix;
default: throw new InternalError();
}
}
private static
IndexOutOfBoundsException checkIndexFailed(IntVector vix, int length) {
String msg = String.format("Range check failed: vector %s out of bounds for length %d", vix, length);
return new IndexOutOfBoundsException(msg);
}
// If the index is not already a multiple of size,
// round it down to the next smaller multiple of size.
// It is an error if size is less than zero.
@ForceInline
static int roundDown(int index, int size) {
if ((size & (size - 1)) == 0) {
// Size is zero or a power of two, so we got this.
return index & ~(size - 1);
} else {
return roundDownNPOT(index, size);
}
}
private static int roundDownNPOT(int index, int size) {
if (index >= 0) {
return index - (index % size);
} else {
return index - Math.floorMod(index, Math.abs(size));
}
}
@ForceInline
static int wrapToRange(int index, int size) {
if ((size & (size - 1)) == 0) {
// Size is zero or a power of two, so we got this.
return index & (size - 1);
} else {
return wrapToRangeNPOT(index, size);
}
}
private static int wrapToRangeNPOT(int index, int size) {
if (index >= 0) {
return (index % size);
} else {
return Math.floorMod(index, Math.abs(size));
}
}
}
⏎ jdk/incubator/vector/VectorIntrinsics.java
Or download all of them as a single archive file:
File name: jdk.incubator.vector-17.0.5-src.zip File size: 350622 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.internal.ed.jmod - Internal Editor Module
2023-10-04, ≈12🔥, 0💬
Popular Posts:
jTDS JDBC Driver Source Code Files are provided in the source package file, jtds-1.3.1-fyi.zip. You ...
JDK 17 java.rmi.jmod is the JMOD file for JDK 17 RMI (Remote Method Invocation) module. JDK 17 RMI m...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
itextpdf.jar is a component in iText 5 Java library to provide core functionalities. iText Java libr...