Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
Collections:
Other Resources:
JDK 17 jdk.incubator.foreign.jmod - JDK Incubator Foreign
JDK 17 jdk.incubator.foreign.jmod is the JMOD file for JDK 17 HTTP Server module.
JDK 17 Incubator Foreign module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.incubator.foreign.jmod.
JDK 17 Incubator Foreign module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Incubator Foreign module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.incubator.foreign.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/internal/foreign/abi/aarch64/TypeClass.java
/* * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2020, 2021, Arm Limited. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.internal.foreign.abi.aarch64; import jdk.incubator.foreign.GroupLayout; import jdk.incubator.foreign.MemoryLayout; import jdk.incubator.foreign.SequenceLayout; import jdk.incubator.foreign.ValueLayout; import jdk.internal.foreign.PlatformLayouts; public enum TypeClass { STRUCT_REGISTER, STRUCT_REFERENCE, STRUCT_HFA, POINTER, INTEGER, FLOAT; private static final int MAX_AGGREGATE_REGS_SIZE = 2; private static TypeClass classifyValueType(ValueLayout type) { return switch (PlatformLayouts.getKind(type)) { case CHAR, SHORT, INT, LONG, LONG_LONG -> INTEGER; case POINTER -> POINTER; case FLOAT, DOUBLE -> FLOAT; }; } static boolean isRegisterAggregate(MemoryLayout type) { return type.bitSize() <= MAX_AGGREGATE_REGS_SIZE * 64; } static boolean isHomogeneousFloatAggregate(MemoryLayout type) { if (!(type instanceof GroupLayout)) return false; GroupLayout groupLayout = (GroupLayout)type; final int numElements = groupLayout.memberLayouts().size(); if (numElements > 4 || numElements == 0) return false; MemoryLayout baseType = groupLayout.memberLayouts().get(0); if (!(baseType instanceof ValueLayout)) return false; TypeClass baseArgClass = classifyValueType((ValueLayout) baseType); if (baseArgClass != FLOAT) return false; for (MemoryLayout elem : groupLayout.memberLayouts()) { if (!(elem instanceof ValueLayout)) return false; TypeClass argClass = classifyValueType((ValueLayout) elem); if (elem.bitSize() != baseType.bitSize() || elem.bitAlignment() != baseType.bitAlignment() || baseArgClass != argClass) { return false; } } return true; } private static TypeClass classifyStructType(MemoryLayout layout) { if (isHomogeneousFloatAggregate(layout)) { return TypeClass.STRUCT_HFA; } else if (isRegisterAggregate(layout)) { return TypeClass.STRUCT_REGISTER; } return TypeClass.STRUCT_REFERENCE; } public static TypeClass classifyLayout(MemoryLayout type) { if (type instanceof ValueLayout) { return classifyValueType((ValueLayout) type); } else if (type instanceof GroupLayout) { return classifyStructType(type); } else if (type instanceof SequenceLayout) { return TypeClass.INTEGER; } else { throw new IllegalArgumentException("Unhandled type " + type); } } }
⏎ jdk/internal/foreign/abi/aarch64/TypeClass.java
Or download all of them as a single archive file:
File name: jdk.incubator.foreign-17.0.5-src.zip File size: 168767 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.incubator.vector.jmod - JDK Incubator Vector
2023-10-04, 5923👍, 0💬
Popular Posts:
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
The Web Services Description Language for Java Toolkit (WSDL4J), Release 1.6.2, allows the creation,...
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...
JDK 11 jdk.dynalink.jmod is the JMOD file for JDK 11 Dynamic Linking module. JDK 11 Dynamic Linking ...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.1? The if you...