equal
deleted
inserted
replaced
880 } else if (UseSHA256Intrinsics) { |
880 } else if (UseSHA256Intrinsics) { |
881 warning("Intrinsics for SHA-224 and SHA-256 crypto hash functions not available on this CPU."); |
881 warning("Intrinsics for SHA-224 and SHA-256 crypto hash functions not available on this CPU."); |
882 FLAG_SET_DEFAULT(UseSHA256Intrinsics, false); |
882 FLAG_SET_DEFAULT(UseSHA256Intrinsics, false); |
883 } |
883 } |
884 |
884 |
885 if (UseSHA) { |
885 if (UseSHA && supports_avx2() && supports_bmi2()) { |
886 if (FLAG_IS_DEFAULT(UseSHA512Intrinsics)) { |
886 if (FLAG_IS_DEFAULT(UseSHA512Intrinsics)) { |
887 FLAG_SET_DEFAULT(UseSHA512Intrinsics, true); |
887 FLAG_SET_DEFAULT(UseSHA512Intrinsics, true); |
888 } |
888 } |
889 } else if (UseSHA512Intrinsics) { |
889 } else if (UseSHA512Intrinsics) { |
890 warning("Intrinsics for SHA-384 and SHA-512 crypto hash functions not available on this CPU."); |
890 warning("Intrinsics for SHA-384 and SHA-512 crypto hash functions not available on this CPU."); |