This commit is contained in:
ipecter
2024-05-20 11:21:56 +09:00
parent adfd1d2db5
commit b38ea6b56b
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ index ab5fea0b03224bf249352ce340e94704ff713345..1c9835f0b54398f7707763a49dd953ad
public static boolean canEnable(Logger logger) { public static boolean canEnable(Logger logger) {
try { try {
- if (SIMDDetection.getJavaVersion() != 17 && SIMDDetection.getJavaVersion() != 18 && SIMDDetection.getJavaVersion() != 19) { - if (SIMDDetection.getJavaVersion() != 17 && SIMDDetection.getJavaVersion() != 18 && SIMDDetection.getJavaVersion() != 19) {
+ if (SIMDDetection.getJavaVersion() >= 17) { // Plazma - SIMD Java 17+ + if (SIMDDetection.getJavaVersion() < 17) { // Plazma - SIMD Java 17+
return false; return false;
} else { } else {
SIMDDetection.testRun = true; SIMDDetection.testRun = true;

View File

@@ -13,7 +13,7 @@ index 78bd9082366ea678c1ee4107b69845062eeede86..661a21e97dfaa23dd4cee7571bb486ea
try { try {
SIMDDetection.isEnabled = SIMDDetection.canEnable(PufferfishLogger.LOGGER); SIMDDetection.isEnabled = SIMDDetection.canEnable(PufferfishLogger.LOGGER);
- SIMDDetection.versionLimited = SIMDDetection.getJavaVersion() != 17 && SIMDDetection.getJavaVersion() != 18 && SIMDDetection.getJavaVersion() != 19; - SIMDDetection.versionLimited = SIMDDetection.getJavaVersion() != 17 && SIMDDetection.getJavaVersion() != 18 && SIMDDetection.getJavaVersion() != 19;
+ SIMDDetection.versionLimited = SIMDDetection.getJavaVersion() >= 17; // Plazma - SIMD Java 17+ + SIMDDetection.versionLimited = SIMDDetection.getJavaVersion() < 17; // Plazma - SIMD Java 17+
} catch (NoClassDefFoundError | Exception ignored) { } catch (NoClassDefFoundError | Exception ignored) {
ignored.printStackTrace(); ignored.printStackTrace();
} }