Initial pass of porting FDLIBM sinh/cosh/tanh to Java. I do intend to refactor
the regression tests a bit to reduce duplication, but the actual ports should
be ready for review.
Diff'ing the ports as before, original vs transliteration port:
$ diff -w Hyperbolic.c Hyperbolic.translit.java
1c1
On Sat, 4 Feb 2023 15:09:04 GMT, Emily wrote:
>> Tagir F. Valeev has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> Typo in doc fixed
>
> src/java.base/share/classes/java/lang/Math.java line 2209:
>
>> 2207: * @param max maximal
> clamp() methods added to Math and StrictMath
>
> `int clamp(long, int, int)` is somewhat different, as it accepts a `long`
> value and safely clamps it to an `int` range. Other overloads work with a
> particular type (long, float and double). Using similar approach in other
> cases (e.g.
On Sat, 4 Feb 2023 13:24:11 GMT, Tagir F. Valeev wrote:
> clamp() methods added to Math and StrictMath
>
> `int clamp(long, int, int)` is somewhat different, as it accepts a `long`
> value and safely clamps it to an `int` range. Other overloads work with a
> particular type (long, float and
clamp() methods added to Math and StrictMath
`int clamp(long, int, int)` is somewhat different, as it accepts a `long` value
and safely clamps it to an `int` range. Other overloads work with a particular
type (long, float and double). Using similar approach in other cases (e.g.
`float