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.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/x64/windows/TypeClass.java
/* * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.internal.foreign.abi.x64.windows; import jdk.incubator.foreign.GroupLayout; import jdk.incubator.foreign.MemoryLayout; import jdk.incubator.foreign.ValueLayout; import jdk.internal.foreign.PlatformLayouts; import static jdk.internal.foreign.PlatformLayouts.Win64.VARARGS_ATTRIBUTE_NAME; enum TypeClass { STRUCT_REGISTER, STRUCT_REFERENCE, POINTER, INTEGER, FLOAT, VARARG_FLOAT; private static TypeClass classifyValueType(ValueLayout type) { // No 128 bit integers in the Windows C ABI. There are __m128(i|d) intrinsic types but they act just // like a struct when passing as an argument (passed by pointer). // https://docs.microsoft.com/en-us/cpp/cpp/m128?view=vs-2019 // x87 is ignored on Windows: // "The x87 register stack is unused, and may be used by the callee, // but must be considered volatile across function calls." // https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention?view=vs-2019 return switch (PlatformLayouts.getKind(type)) { case CHAR, SHORT, INT, LONG, LONG_LONG -> INTEGER; case POINTER -> POINTER; case FLOAT, DOUBLE -> { if (type.attribute(VARARGS_ATTRIBUTE_NAME) .map(Boolean.class::cast).orElse(false)) { yield VARARG_FLOAT; } yield FLOAT; } }; } static boolean isRegisterAggregate(MemoryLayout type) { long size = type.byteSize(); return size == 1 || size == 2 || size == 4 || size == 8; } private static TypeClass classifyStructType(MemoryLayout layout) { if (isRegisterAggregate(layout)) { return STRUCT_REGISTER; } return STRUCT_REFERENCE; } static TypeClass typeClassFor(MemoryLayout type) { if (type instanceof ValueLayout) { return classifyValueType((ValueLayout) type); } else if (type instanceof GroupLayout) { return classifyStructType(type); } else { throw new IllegalArgumentException("Unhandled type " + type); } } }
⏎ jdk/internal/foreign/abi/x64/windows/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, 7150👍, 0💬
Popular Posts:
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...
How to compare performances of various XML parsers with the jaxp\SourceValidator.jav aprovided in th...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module. JDK 11 RMI m...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...