RFR: 8346914: UB issue in scalbnA

David Holmes dholmes at openjdk.org
Tue Jun 17 07:00:31 UTC 2025


On Tue, 10 Jun 2025 03:54:31 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> The JBS issue also talks about `copysignA` and suggests we should just use `copysign` if we're keeping `scalbnA`. Please either address that here or file a new issue for `copysignA`.

It doesn't really suggest that it simply says "is there a reason to prefer copysignA over the <math.h> copysign? ". I don't have an answer to that any more than I can answer the scalbnA versus scalbn question. You need to a libmath expert to answer those types of questions. All I have tried to do here is address the UB that was spotted.

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

PR Comment: https://git.openjdk.org/jdk/pull/25656#issuecomment-2979166886


More information about the hotspot-dev mailing list