Skip to content

Commit 339016a

Browse files
luhenryVladimir Kozlov
authored and
Vladimir Kozlov
committedAug 5, 2020
8250902: Implement MD5 Intrinsics on x86
Reviewed-by: kvn, vdeshpande, ascarpino
1 parent 1394683 commit 339016a

File tree

53 files changed

+1108
-386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1108
-386
lines changed
 

‎src/hotspot/cpu/aarch64/vm_version_aarch64.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ void VM_Version::get_processor_features() {
358358
FLAG_SET_DEFAULT(UseFMA, true);
359359
}
360360

361+
if (UseMD5Intrinsics) {
362+
warning("MD5 intrinsics are not available on this CPU");
363+
FLAG_SET_DEFAULT(UseMD5Intrinsics, false);
364+
}
365+
361366
if (auxv & (HWCAP_SHA1 | HWCAP_SHA2)) {
362367
if (FLAG_IS_DEFAULT(UseSHA)) {
363368
FLAG_SET_DEFAULT(UseSHA, true);

‎src/hotspot/cpu/arm/vm_version_arm_32.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -209,6 +209,11 @@ void VM_Version::initialize() {
209209
FLAG_SET_DEFAULT(UseFMA, false);
210210
}
211211

212+
if (UseMD5Intrinsics) {
213+
warning("MD5 intrinsics are not available on this CPU");
214+
FLAG_SET_DEFAULT(UseMD5Intrinsics, false);
215+
}
216+
212217
if (UseSHA) {
213218
warning("SHA instructions are not available on this CPU");
214219
FLAG_SET_DEFAULT(UseSHA, false);

0 commit comments

Comments
 (0)
Please sign in to comment.