RFR: 8280457: Duplicate implementation of dprecision_rounding and dstore_rounding [v2]

David Holmes dholmes at openjdk.java.net
Mon Jan 24 12:52:11 UTC 2022


On Mon, 24 Jan 2022 09:28:51 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>>> Isn't the reference to "strict" here and in the cpp file no longer applicable?
>> 
>> 
>>   // Advertise here if the CPU requires explicit rounding operations to implement strictfp mode.
>> #ifdef _LP64
>>   static const bool strict_fp_requires_explicit_rounding = false;
>> #else
>>   static const bool strict_fp_requires_explicit_rounding = true;
>> #endif
>> 
>> It seems that only x86_32 needs explicit rounding for strict_fp operations.
>
> Yup, "strict" is still meaningful on x86_32 FPU. It might be confusing due to fact that JDK 17 is now strictfp-by-default, but rounding to support strictfp is still needed for some awkward arches.

My point was that the now deleted function claimed it was the rounding function for non-strict, while the function that has been kept is described as being for strict. But now there is only one function that has to cater for both so using "strict" in its description seems inappropriate.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7176


More information about the hotspot-compiler-dev mailing list