Integrated: 8298736: Revisit usages of log10 in compiler code

Damon Fenacci duke at openjdk.org
Mon Dec 19 08:49:58 UTC 2022


On Thu, 15 Dec 2022 07:54:18 GMT, Damon Fenacci <duke at openjdk.org> wrote:

> The use of the Math library `log10` function causes an overloading ambiguity error on SPARC when using it with integer typed parameters.
> 
> * adding a `static_cast<double>` to the parameter
> * using the lib `log10` function (with `static_cast`s) instead of a custom one in `src/hotspot/share/opto/node.cpp`

This pull request has now been integrated.

Changeset: ec959914
Author:    Damon Fenacci <damon.fenacci at oracle.com>
Committer: Tobias Hartmann <thartmann at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ec95991470a99c917f757614fc6d2cd883bdb39b
Stats:     14 lines in 2 files changed: 0 ins; 11 del; 3 mod

8298736: Revisit usages of log10 in compiler code

Reviewed-by: thartmann, chagedorn, epeter

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

PR: https://git.openjdk.org/jdk/pull/11686


More information about the hotspot-compiler-dev mailing list