Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/addnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ const Type* MinHFNode::add_ring(const Type* t0, const Type* t1) const {
}

// As per IEEE 754 specification, floating point comparison consider +ve and -ve
// zeros as equals. Thus, performing signed integral comparison for max value
// zeros as equals. Thus, performing signed integral comparison for min value
// detection.
return (jint_cast(f0) < jint_cast(f1)) ? r0 : r1;
}
Expand Down Expand Up @@ -1620,7 +1620,7 @@ const Type* MaxHFNode::add_ring(const Type* t0, const Type* t1) const {
}

// As per IEEE 754 specification, floating point comparison consider +ve and -ve
// zeros as equals. Thus, performing signed integral comparison for min value
// zeros as equals. Thus, performing signed integral comparison for max value
// detection.
return (jint_cast(f0) > jint_cast(f1)) ? r0 : r1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/opto/divnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ const Type* DivHFNode::Value(PhaseGVN* phase) const {

// If the dividend is a constant zero
// Note: if t1 and t2 are zero then result is NaN (JVMS page 213)
// Test TypeF::ZERO is not sufficient as it could be negative zero
// Test TypeHF::ZERO is not sufficient as it could be negative zero

if (t1 == TypeH::ZERO && !g_isnan(t2->getf()) && t2->getf() != 0.0) {
return TypeH::ZERO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down