Why does we still need StrictMath?
Andrew Haley
aph-open at littlepinkcloud.com
Mon May 9 08:03:37 UTC 2022
On 5/8/22 13:44, Martin Desruisseaux wrote:
> Le 08/05/2022 à 14:15, Victor Williams Stafusa da Silva a écrit :
>
>> Was that using Java 17+, which included JEP 306 delivered?
>>
> No, but my understanding is that JEP 306 does not apply to Math versus
> StrictMath behavior. In my understanding, the strictfp keyword was only
> about the use of extended exponent value set in Pentium 80 bits floating
> point values. It impacts the behavior of arithmetic operations + - * /,
> but my (maybe wrong) understanding is that it does not impact which
> processor instruction is used for implementing Math.sin, cos, etc.
You're right.
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the core-libs-dev
mailing list